Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongos
- appProtocol: mongo
name: mongos
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongos
- appProtocol: mongo
name: mongos
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongos
- appProtocol: mongo
name: mongos
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongos
- appProtocol: mongo
name: mongos
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongos
- appProtocol: mongo
name: mongos
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
name: another-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
3 changes: 2 additions & 1 deletion e2e-tests/init-deploy/compare/service_some-name-rs0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ metadata:
name: monitoring
spec:
ports:
- name: mongos
- appProtocol: mongo
name: mongos
port: 27019
protocol: TCP
targetPort: 27019
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
name: monitoring
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27019
protocol: TCP
targetPort: 27019
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ metadata:
name: monitoring-pmm3
spec:
ports:
- name: mongos
- appProtocol: mongo
name: mongos
port: 27019
protocol: TCP
targetPort: 27019
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
name: monitoring-pmm3
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27019
protocol: TCP
targetPort: 27019
Expand Down
3 changes: 2 additions & 1 deletion e2e-tests/one-pod/compare/service_one-pod-rs0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ metadata:
name: one-pod
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ metadata:
name: cluster-ip
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ metadata:
spec:
externalTrafficPolicy: Local
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ metadata:
spec:
externalTrafficPolicy: Cluster
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ metadata:
spec:
externalTrafficPolicy: Cluster
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ metadata:
name: some-name
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
protocol: TCP
targetPort: 27017
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/perconaservermongodb/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestReconcileReplsetServices(t *testing.T) {
for i := range svcList.Items {
svcList.Items[i].APIVersion = "v1"
svcList.Items[i].Kind = "Service"
delete(svcList.Items[i].Annotations, "percona.com/last-config-hash")
}

yamlCompare(t, ns, filename, svcList)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ items:
- apiVersion: v1
kind: Service
metadata:
annotations:
percona.com/last-config-hash: eyJwb3J0cyI6W3sibmFtZSI6Im1vbmdvZGIiLCJwb3J0IjoyNzAxNywidGFyZ2V0UG9ydCI6MjcwMTd9XSwic2VsZWN0b3IiOnsiYXBwLmt1YmVybmV0ZXMuaW8vaW5zdGFuY2UiOiJycy1zdmMiLCJhcHAua3ViZXJuZXRlcy5pby9tYW5hZ2VkLWJ5IjoicGVyY29uYS1zZXJ2ZXItbW9uZ29kYi1vcGVyYXRvciIsImFwcC5rdWJlcm5ldGVzLmlvL25hbWUiOiJwZXJjb25hLXNlcnZlci1tb25nb2RiIiwiYXBwLmt1YmVybmV0ZXMuaW8vcGFydC1vZiI6InBlcmNvbmEtc2VydmVyLW1vbmdvZGIiLCJhcHAua3ViZXJuZXRlcy5pby9yZXBsc2V0IjoicnMwIn0sImNsdXN0ZXJJUCI6Ik5vbmUifQ==
labels:
app.kubernetes.io/instance: rs-svc
app.kubernetes.io/managed-by: percona-server-mongodb-operator
Expand All @@ -22,7 +20,8 @@ items:
spec:
clusterIP: None
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
targetPort: 27017
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ items:
- apiVersion: v1
kind: Service
metadata:
annotations:
percona.com/last-config-hash: eyJwb3J0cyI6W3sibmFtZSI6Im1vbmdvZGIiLCJwb3J0IjoyNzAxNywidGFyZ2V0UG9ydCI6MjcwMTd9XSwic2VsZWN0b3IiOnsiYXBwLmt1YmVybmV0ZXMuaW8vaW5zdGFuY2UiOiJycy1zdmMiLCJhcHAua3ViZXJuZXRlcy5pby9tYW5hZ2VkLWJ5IjoicGVyY29uYS1zZXJ2ZXItbW9uZ29kYi1vcGVyYXRvciIsImFwcC5rdWJlcm5ldGVzLmlvL25hbWUiOiJwZXJjb25hLXNlcnZlci1tb25nb2RiIiwiYXBwLmt1YmVybmV0ZXMuaW8vcGFydC1vZiI6InBlcmNvbmEtc2VydmVyLW1vbmdvZGIiLCJhcHAua3ViZXJuZXRlcy5pby9yZXBsc2V0IjoicnMwIn0sImNsdXN0ZXJJUCI6Ik5vbmUifQ==
labels:
app.kubernetes.io/instance: rs-svc
app.kubernetes.io/managed-by: percona-server-mongodb-operator
Expand All @@ -22,7 +20,8 @@ items:
spec:
clusterIP: None
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
targetPort: 27017
selector:
Expand All @@ -36,8 +35,6 @@ items:
- apiVersion: v1
kind: Service
metadata:
annotations:
percona.com/last-config-hash: eyJwb3J0cyI6W3sibmFtZSI6Im1vbmdvZGIiLCJwb3J0IjoyNzAxNywidGFyZ2V0UG9ydCI6MjcwMTd9XSwic2VsZWN0b3IiOnsic3RhdGVmdWxzZXQua3ViZXJuZXRlcy5pby9wb2QtbmFtZSI6InJzLXN2Yy1yczAtMCJ9LCJ0eXBlIjoiQ2x1c3RlcklQIiwicHVibGlzaE5vdFJlYWR5QWRkcmVzc2VzIjp0cnVlfQ==
labels:
app.kubernetes.io/component: external-service
app.kubernetes.io/instance: rs-svc
Expand All @@ -56,7 +53,8 @@ items:
resourceVersion: "1"
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
targetPort: 27017
publishNotReadyAddresses: true
Expand All @@ -68,8 +66,6 @@ items:
- apiVersion: v1
kind: Service
metadata:
annotations:
percona.com/last-config-hash: eyJwb3J0cyI6W3sibmFtZSI6Im1vbmdvZGIiLCJwb3J0IjoyNzAxNywidGFyZ2V0UG9ydCI6MjcwMTd9XSwic2VsZWN0b3IiOnsic3RhdGVmdWxzZXQua3ViZXJuZXRlcy5pby9wb2QtbmFtZSI6InJzLXN2Yy1yczAtMSJ9LCJ0eXBlIjoiQ2x1c3RlcklQIiwicHVibGlzaE5vdFJlYWR5QWRkcmVzc2VzIjp0cnVlfQ==
labels:
app.kubernetes.io/component: external-service
app.kubernetes.io/instance: rs-svc
Expand All @@ -88,7 +84,8 @@ items:
resourceVersion: "1"
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
targetPort: 27017
publishNotReadyAddresses: true
Expand All @@ -100,8 +97,6 @@ items:
- apiVersion: v1
kind: Service
metadata:
annotations:
percona.com/last-config-hash: eyJwb3J0cyI6W3sibmFtZSI6Im1vbmdvZGIiLCJwb3J0IjoyNzAxNywidGFyZ2V0UG9ydCI6MjcwMTd9XSwic2VsZWN0b3IiOnsic3RhdGVmdWxzZXQua3ViZXJuZXRlcy5pby9wb2QtbmFtZSI6InJzLXN2Yy1yczAtMiJ9LCJ0eXBlIjoiQ2x1c3RlcklQIiwicHVibGlzaE5vdFJlYWR5QWRkcmVzc2VzIjp0cnVlfQ==
labels:
app.kubernetes.io/component: external-service
app.kubernetes.io/instance: rs-svc
Expand All @@ -120,7 +115,8 @@ items:
resourceVersion: "1"
spec:
ports:
- name: mongodb
- appProtocol: mongo
name: mongodb
port: 27017
targetPort: 27017
publishNotReadyAddresses: true
Expand Down
Loading
Loading