@@ -2,7 +2,9 @@ apiVersion: v1
2
2
kind : Namespace
3
3
metadata :
4
4
labels :
5
- control-plane : controller-manager
5
+ app.kubernetes.io/component : controller
6
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
7
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
6
8
name : mongodb-atlas-system
7
9
---
8
10
apiVersion : apiextensions.k8s.io/v1
@@ -11,6 +13,10 @@ metadata:
11
13
annotations :
12
14
controller-gen.kubebuilder.io/version : v0.4.1
13
15
creationTimestamp : null
16
+ labels :
17
+ app.kubernetes.io/component : controller
18
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
19
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
14
20
name : atlasclusters.atlas.mongodb.com
15
21
spec :
16
22
group : atlas.mongodb.com
@@ -479,6 +485,10 @@ metadata:
479
485
annotations :
480
486
controller-gen.kubebuilder.io/version : v0.4.1
481
487
creationTimestamp : null
488
+ labels :
489
+ app.kubernetes.io/component : controller
490
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
491
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
482
492
name : atlasdatabaseusers.atlas.mongodb.com
483
493
spec :
484
494
group : atlas.mongodb.com
@@ -658,17 +668,20 @@ spec:
658
668
- type
659
669
type : object
660
670
type : array
661
- connectionSecrets :
662
- additionalProperties :
663
- type : string
664
- type : object
671
+ name :
672
+ description : UserName is the current name of database user.
673
+ type : string
665
674
observedGeneration :
666
675
description : ObservedGeneration indicates the generation of the resource
667
676
specification that the Atlas Operator is aware of. The Atlas Operator
668
677
updates this field to the 'metadata.generation' as soon as it starts
669
678
reconciliation of the resource.
670
679
format : int64
671
680
type : integer
681
+ passwordVersion :
682
+ description : PasswordVersion is the 'ResourceVersion' of the password
683
+ Secret that the Atlas Operator is aware of
684
+ type : string
672
685
required :
673
686
- conditions
674
687
type : object
@@ -690,6 +703,10 @@ metadata:
690
703
annotations :
691
704
controller-gen.kubebuilder.io/version : v0.4.1
692
705
creationTimestamp : null
706
+ labels :
707
+ app.kubernetes.io/component : controller
708
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
709
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
693
710
name : atlasprojects.atlas.mongodb.com
694
711
spec :
695
712
group : atlas.mongodb.com
@@ -854,9 +871,23 @@ status:
854
871
conditions : []
855
872
storedVersions : []
856
873
---
874
+ apiVersion : v1
875
+ kind : ServiceAccount
876
+ metadata :
877
+ labels :
878
+ app.kubernetes.io/component : controller
879
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
880
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
881
+ name : mongodb-atlas-operator
882
+ namespace : mongodb-atlas-system
883
+ ---
857
884
apiVersion : rbac.authorization.k8s.io/v1
858
885
kind : Role
859
886
metadata :
887
+ labels :
888
+ app.kubernetes.io/component : controller
889
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
890
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
860
891
name : mongodb-atlas-leader-election-role
861
892
namespace : mongodb-atlas-system
862
893
rules :
@@ -886,6 +917,10 @@ apiVersion: rbac.authorization.k8s.io/v1
886
917
kind : ClusterRole
887
918
metadata :
888
919
creationTimestamp : null
920
+ labels :
921
+ app.kubernetes.io/component : controller
922
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
923
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
889
924
name : mongodb-atlas-manager-role
890
925
rules :
891
926
- apiGroups :
@@ -964,16 +999,10 @@ rules:
964
999
apiVersion : rbac.authorization.k8s.io/v1
965
1000
kind : ClusterRole
966
1001
metadata :
967
- name : mongodb-atlas-metrics-reader
968
- rules :
969
- - nonResourceURLs :
970
- - /metrics
971
- verbs :
972
- - get
973
- ---
974
- apiVersion : rbac.authorization.k8s.io/v1
975
- kind : ClusterRole
976
- metadata :
1002
+ labels :
1003
+ app.kubernetes.io/component : controller
1004
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1005
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
977
1006
name : mongodb-atlas-proxy-role
978
1007
rules :
979
1008
- apiGroups :
@@ -992,6 +1021,10 @@ rules:
992
1021
apiVersion : rbac.authorization.k8s.io/v1
993
1022
kind : RoleBinding
994
1023
metadata :
1024
+ labels :
1025
+ app.kubernetes.io/component : controller
1026
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1027
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
995
1028
name : mongodb-atlas-leader-election-rolebinding
996
1029
namespace : mongodb-atlas-system
997
1030
roleRef :
@@ -1000,40 +1033,50 @@ roleRef:
1000
1033
name : mongodb-atlas-leader-election-role
1001
1034
subjects :
1002
1035
- kind : ServiceAccount
1003
- name : default
1036
+ name : mongodb-atlas-operator
1004
1037
namespace : mongodb-atlas-system
1005
1038
---
1006
1039
apiVersion : rbac.authorization.k8s.io/v1
1007
1040
kind : ClusterRoleBinding
1008
1041
metadata :
1042
+ labels :
1043
+ app.kubernetes.io/component : controller
1044
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1045
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
1009
1046
name : mongodb-atlas-manager-rolebinding
1010
1047
roleRef :
1011
1048
apiGroup : rbac.authorization.k8s.io
1012
1049
kind : ClusterRole
1013
1050
name : mongodb-atlas-manager-role
1014
1051
subjects :
1015
1052
- kind : ServiceAccount
1016
- name : default
1053
+ name : mongodb-atlas-operator
1017
1054
namespace : mongodb-atlas-system
1018
1055
---
1019
1056
apiVersion : rbac.authorization.k8s.io/v1
1020
1057
kind : ClusterRoleBinding
1021
1058
metadata :
1059
+ labels :
1060
+ app.kubernetes.io/component : controller
1061
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1062
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
1022
1063
name : mongodb-atlas-proxy-rolebinding
1023
1064
roleRef :
1024
1065
apiGroup : rbac.authorization.k8s.io
1025
1066
kind : ClusterRole
1026
1067
name : mongodb-atlas-proxy-role
1027
1068
subjects :
1028
1069
- kind : ServiceAccount
1029
- name : default
1070
+ name : mongodb-atlas-operator
1030
1071
namespace : mongodb-atlas-system
1031
1072
---
1032
1073
apiVersion : v1
1033
1074
kind : Service
1034
1075
metadata :
1035
1076
labels :
1036
- control-plane : controller-manager
1077
+ app.kubernetes.io/component : controller
1078
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1079
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
1037
1080
name : mongodb-atlas-controller-manager-metrics-service
1038
1081
namespace : mongodb-atlas-system
1039
1082
spec :
@@ -1042,32 +1085,40 @@ spec:
1042
1085
port : 8443
1043
1086
targetPort : https
1044
1087
selector :
1045
- control-plane : controller-manager
1088
+ app.kubernetes.io/component : controller
1089
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1090
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
1046
1091
---
1047
1092
apiVersion : apps/v1
1048
1093
kind : Deployment
1049
1094
metadata :
1050
1095
labels :
1051
- control-plane : operator
1096
+ app.kubernetes.io/component : controller
1097
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1098
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
1052
1099
name : mongodb-atlas-operator
1053
1100
namespace : mongodb-atlas-system
1054
1101
spec :
1055
1102
replicas : 1
1056
1103
selector :
1057
1104
matchLabels :
1058
- control-plane : controller-manager
1105
+ app.kubernetes.io/component : controller
1106
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1107
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
1059
1108
template :
1060
1109
metadata :
1061
1110
labels :
1062
- control-plane : controller-manager
1111
+ app.kubernetes.io/component : controller
1112
+ app.kubernetes.io/instance : mongodb-atlas-kubernetes-operator
1113
+ app.kubernetes.io/name : mongodb-atlas-kubernetes-operator
1063
1114
spec :
1064
1115
containers :
1065
1116
- args :
1066
1117
- --secure-listen-address=0.0.0.0:8443
1067
1118
- --upstream=http://127.0.0.1:8080/
1068
1119
- --logtostderr=true
1069
1120
- --v=10
1070
- image : gcr.io/kubebuilder/kube-rbac-proxy:v0.5 .0
1121
+ image : gcr.io/kubebuilder/kube-rbac-proxy:v0.8 .0
1071
1122
name : kube-rbac-proxy
1072
1123
ports :
1073
1124
- containerPort : 8443
@@ -1088,7 +1139,7 @@ spec:
1088
1139
valueFrom :
1089
1140
fieldRef :
1090
1141
fieldPath : metadata.namespace
1091
- image : mongodb/mongodb-atlas-kubernetes-operator:0.4 .0
1142
+ image : mongodb/mongodb-atlas-kubernetes-operator:0.5 .0
1092
1143
imagePullPolicy : Always
1093
1144
livenessProbe :
1094
1145
httpGet :
@@ -1105,14 +1156,15 @@ spec:
1105
1156
periodSeconds : 10
1106
1157
resources :
1107
1158
limits :
1108
- cpu : 100m
1109
- memory : 100Mi
1159
+ cpu : 500m
1160
+ memory : 256Mi
1110
1161
requests :
1111
1162
cpu : 100m
1112
- memory : 20Mi
1163
+ memory : 50Mi
1113
1164
securityContext :
1114
1165
allowPrivilegeEscalation : false
1115
1166
securityContext :
1116
1167
runAsNonRoot : true
1117
1168
runAsUser : 2000
1169
+ serviceAccountName : mongodb-atlas-operator
1118
1170
terminationGracePeriodSeconds : 10
0 commit comments