Skip to content

Commit 8904208

Browse files
authored
Merge pull request #308 from anynines/a8s_2017_update_operator_sdk_version_of_a8s_service_binding_controller_repository
A8s 2017 update operator sdk version of a8s service binding controller repository
2 parents 5e62a3b + 23f088b commit 8904208

File tree

2 files changed

+128
-39
lines changed

2 files changed

+128
-39
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/).
1414
### Updated
1515

1616
* Bump Operator-SDK version to v1.34.2 for postgresql-operator
17+
* Bump Operator-SDK version to v1.34.2 for a8s-service-binding-controller
1718

1819
## [1.1.0] - 2024-06-05
1920

deploy/a8s/manifests/service-binding-controller.yaml

Lines changed: 127 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.4.1
5+
controller-gen.kubebuilder.io/version: v0.14.0
66
name: servicebindings.servicebindings.anynines.com
77
spec:
88
group: servicebindings.anynines.com
@@ -24,14 +24,19 @@ spec:
2424
description: ServiceBinding is the Schema for the servicebindings API
2525
properties:
2626
apiVersion:
27-
description: 'APIVersion defines the versioned schema of this representation
28-
of an object. Servers should convert recognized schemas to the latest
29-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
27+
description: |-
28+
APIVersion defines the versioned schema of this representation of an object.
29+
Servers should convert recognized schemas to the latest internal value, and
30+
may reject unrecognized values.
31+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
3032
type: string
3133
kind:
32-
description: 'Kind is a string value representing the REST resource this
33-
object represents. Servers may infer this from the endpoint the client
34-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
34+
description: |-
35+
Kind is a string value representing the REST resource this object represents.
36+
Servers may infer this from the endpoint the client submits requests to.
37+
Cannot be updated.
38+
In CamelCase.
39+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3540
type: string
3641
metadata:
3742
type: object
@@ -43,9 +48,9 @@ spec:
4348
ServiceBinding binds to.
4449
properties:
4550
apiVersion:
46-
description: APIVersion is the <api_group>/<version> of the referenced
47-
Data Service Instance, e.g. "postgresql.anynines.com/v1beta3"
48-
or "redis.anynines.com/v1alpha1".
51+
description: |-
52+
APIVersion is the <api_group>/<version> of the referenced Data Service Instance,
53+
e.g. "postgresql.anynines.com/v1beta3" or "redis.anynines.com/v1alpha1".
4954
type: string
5055
kind:
5156
description: Kind is the Kubernetes API Kind of the referenced
@@ -54,8 +59,9 @@ spec:
5459
name:
5560
type: string
5661
namespace:
57-
description: Namepace of the Instance, if not provided the same
58-
namespace as the service bindings will be used
62+
description: |-
63+
Namepace of the Instance, if not provided the same namespace as the service bindings
64+
will be used
5965
type: string
6066
required:
6167
- apiVersion
@@ -69,29 +75,31 @@ spec:
6975
description: ServiceBindingStatus defines the observed state of the ServiceBinding.
7076
properties:
7177
error:
72-
description: Error is a message explaining why the service binding
73-
could not be implemented if that's the case.
78+
description: |-
79+
Error is a message explaining why the service binding could not be implemented if that's the
80+
case.
7481
type: string
7582
implemented:
76-
description: Implemented is `true` if and only if the service binding
77-
has been implemented by creating a user with the appropriate permissions
78-
in the bound Data Service Instance. Users can safely consume the
79-
service binding secret identified by `Secret` IF AND ONLY IF `Implemented`
80-
is true. In other words, even if the secret identified by `Secret`
81-
gets created before `Implemented` becomes true, users MUST NOT consume
82-
that secret before `Implemented` has become true.
83+
description: |-
84+
Implemented is `true` if and only if the service binding has been implemented by creating
85+
a user with the appropriate permissions in the bound Data Service Instance.
86+
Users can safely consume the service binding secret identified by `Secret` IF AND ONLY IF
87+
`Implemented` is true. In other words, even if the secret identified by `Secret` gets created
88+
before `Implemented` becomes true, users MUST NOT consume that secret before `Implemented`
89+
has become true.
8390
type: boolean
8491
secret:
85-
description: Secret contains the namespace and name of the Kubernetes
86-
API secret that stores the credentials and information (e.g. URL)
87-
associated to the service binding to access the bound Data Service
88-
Instance.
92+
description: |-
93+
Secret contains the namespace and name of the Kubernetes API secret that stores the
94+
credentials and information (e.g. URL) associated to the service binding to access the bound
95+
Data Service Instance.
8996
properties:
9097
name:
9198
type: string
9299
namespace:
93-
description: Namepace of the Instance, if not provided the same
94-
namespace as the service bindings will be used
100+
description: |-
101+
Namepace of the Instance, if not provided the same namespace as the service bindings
102+
will be used
95103
type: string
96104
required:
97105
- name
@@ -102,30 +110,44 @@ spec:
102110
storage: true
103111
subresources:
104112
status: {}
105-
status:
106-
acceptedNames:
107-
kind: ""
108-
plural: ""
109-
conditions: []
110-
storedVersions: []
111113
---
112114
apiVersion: v1
113115
kind: ServiceAccount
114116
metadata:
117+
labels:
118+
app.kubernetes.io/managed-by: kustomize
119+
app.kubernetes.io/name: a8s-service-binding-controller
115120
name: service-binding-manager-account
116121
namespace: a8s-system
117122
---
118123
apiVersion: rbac.authorization.k8s.io/v1
119124
kind: Role
120125
metadata:
126+
labels:
127+
app.kubernetes.io/component: rbac
128+
app.kubernetes.io/created-by: a8s-service-binding-controller
129+
app.kubernetes.io/instance: leader-election-role
130+
app.kubernetes.io/managed-by: kustomize
131+
app.kubernetes.io/name: role
132+
app.kubernetes.io/part-of: a8s-service-binding
121133
name: service-binding-leader-election-role
122134
namespace: a8s-system
123135
rules:
124136
- apiGroups:
125137
- ""
126-
- coordination.k8s.io
127138
resources:
128139
- configmaps
140+
verbs:
141+
- get
142+
- list
143+
- watch
144+
- create
145+
- update
146+
- patch
147+
- delete
148+
- apiGroups:
149+
- coordination.k8s.io
150+
resources:
129151
- leases
130152
verbs:
131153
- get
@@ -146,7 +168,6 @@ rules:
146168
apiVersion: rbac.authorization.k8s.io/v1
147169
kind: ClusterRole
148170
metadata:
149-
creationTimestamp: null
150171
name: service-binding-manager-role
151172
rules:
152173
- apiGroups:
@@ -212,6 +233,13 @@ rules:
212233
apiVersion: rbac.authorization.k8s.io/v1
213234
kind: ClusterRole
214235
metadata:
236+
labels:
237+
app.kubernetes.io/component: kube-rbac-proxy
238+
app.kubernetes.io/created-by: a8s-service-binding-controller
239+
app.kubernetes.io/instance: metrics-reader
240+
app.kubernetes.io/managed-by: kustomize
241+
app.kubernetes.io/name: clusterrole
242+
app.kubernetes.io/part-of: a8s-service-binding
215243
name: service-binding-metrics-reader
216244
rules:
217245
- nonResourceURLs:
@@ -222,6 +250,13 @@ rules:
222250
apiVersion: rbac.authorization.k8s.io/v1
223251
kind: ClusterRole
224252
metadata:
253+
labels:
254+
app.kubernetes.io/component: kube-rbac-proxy
255+
app.kubernetes.io/created-by: a8s-service-binding-controller
256+
app.kubernetes.io/instance: proxy-role
257+
app.kubernetes.io/managed-by: kustomize
258+
app.kubernetes.io/name: clusterrole
259+
app.kubernetes.io/part-of: a8s-service-binding
225260
name: service-binding-proxy-role
226261
rules:
227262
- apiGroups:
@@ -240,6 +275,13 @@ rules:
240275
apiVersion: rbac.authorization.k8s.io/v1
241276
kind: RoleBinding
242277
metadata:
278+
labels:
279+
app.kubernetes.io/component: rbac
280+
app.kubernetes.io/created-by: a8s-service-binding-controller
281+
app.kubernetes.io/instance: leader-election-rolebinding
282+
app.kubernetes.io/managed-by: kustomize
283+
app.kubernetes.io/name: rolebinding
284+
app.kubernetes.io/part-of: a8s-service-binding
243285
name: service-binding-leader-election-rolebinding
244286
namespace: a8s-system
245287
roleRef:
@@ -254,6 +296,13 @@ subjects:
254296
apiVersion: rbac.authorization.k8s.io/v1
255297
kind: ClusterRoleBinding
256298
metadata:
299+
labels:
300+
app.kubernetes.io/component: rbac
301+
app.kubernetes.io/created-by: a8s-service-binding-controller
302+
app.kubernetes.io/instance: manager-rolebinding
303+
app.kubernetes.io/managed-by: kustomize
304+
app.kubernetes.io/name: clusterrolebinding
305+
app.kubernetes.io/part-of: a8s-service-binding
257306
name: service-binding-manager-rolebinding
258307
roleRef:
259308
apiGroup: rbac.authorization.k8s.io
@@ -267,6 +316,13 @@ subjects:
267316
apiVersion: rbac.authorization.k8s.io/v1
268317
kind: ClusterRoleBinding
269318
metadata:
319+
labels:
320+
app.kubernetes.io/component: kube-rbac-proxy
321+
app.kubernetes.io/created-by: a8s-service-binding-controller
322+
app.kubernetes.io/instance: proxy-rolebinding
323+
app.kubernetes.io/managed-by: kustomize
324+
app.kubernetes.io/name: clusterrolebinding
325+
app.kubernetes.io/part-of: a8s-service-binding
270326
name: service-binding-proxy-rolebinding
271327
roleRef:
272328
apiGroup: rbac.authorization.k8s.io
@@ -301,27 +357,37 @@ kind: Service
301357
metadata:
302358
labels:
303359
app.kubernetes.io/component: controller-manager
360+
app.kubernetes.io/created-by: a8s-service-binding-controller
361+
app.kubernetes.io/instance: controller-manager-metrics-service
362+
app.kubernetes.io/managed-by: kustomize
304363
app.kubernetes.io/name: service-binding-controller-manager
305364
app.kubernetes.io/part-of: a8s-service-binding
365+
control-plane: controller-manager
306366
name: service-binding-controller-manager-metrics-service
307367
namespace: a8s-system
308368
spec:
309369
ports:
310370
- name: https
311371
port: 8443
372+
protocol: TCP
312373
targetPort: https
313374
selector:
314375
app.kubernetes.io/component: controller-manager
315376
app.kubernetes.io/name: service-binding-controller-manager
316377
app.kubernetes.io/part-of: a8s-service-binding
378+
control-plane: controller-manager
317379
---
318380
apiVersion: apps/v1
319381
kind: Deployment
320382
metadata:
321383
labels:
322384
app.kubernetes.io/component: controller-manager
385+
app.kubernetes.io/created-by: a8s-service-binding-controller
386+
app.kubernetes.io/instance: controller-manager
387+
app.kubernetes.io/managed-by: kustomize
323388
app.kubernetes.io/name: service-binding-controller-manager
324389
app.kubernetes.io/part-of: a8s-service-binding
390+
control-plane: controller-manager
325391
name: service-binding-controller-manager
326392
namespace: a8s-system
327393
spec:
@@ -331,24 +397,29 @@ spec:
331397
app.kubernetes.io/component: controller-manager
332398
app.kubernetes.io/name: service-binding-controller-manager
333399
app.kubernetes.io/part-of: a8s-service-binding
400+
control-plane: controller-manager
334401
template:
335402
metadata:
336403
annotations:
404+
kubectl.kubernetes.io/default-container: manager
337405
prometheus.io/port: "8443"
338406
prometheus.io/scrape: "true"
339407
labels:
340408
app.kubernetes.io/component: controller-manager
341409
app.kubernetes.io/name: service-binding-controller-manager
342410
app.kubernetes.io/part-of: a8s-service-binding
411+
control-plane: controller-manager
343412
spec:
344413
containers:
345414
- args:
346-
- --config=/config/controller_manager_config.yaml
415+
- --health-probe-bind-address=:8081
416+
- --metrics-bind-address=127.0.0.1:8080
417+
- --leader-elect
347418
command:
348419
- ./manager
349420
- --postgresql-root-role=a9s_user
350421
- --postgresql-default-database=a9s_apps_default_db
351-
image: public.ecr.aws/w5n9a2g2/a9s-ds-for-k8s/dev/service-binding-controller:a3f2694dc93e7ace07829cb1b8a3b5f6s4d1527c
422+
image: public.ecr.aws/w5n9a2g2/a9s-ds-for-k8s/dev/service-binding-controller:0caabf0e1a159662c3830a042c94da36995d221a
352423
livenessProbe:
353424
httpGet:
354425
path: /healthz
@@ -371,6 +442,9 @@ spec:
371442
memory: 100Mi
372443
securityContext:
373444
allowPrivilegeEscalation: false
445+
capabilities:
446+
drop:
447+
- ALL
374448
volumeMounts:
375449
- mountPath: /config/controller_manager_config.yaml
376450
name: manager-config
@@ -379,12 +453,25 @@ spec:
379453
- --secure-listen-address=0.0.0.0:8443
380454
- --upstream=http://127.0.0.1:8080/
381455
- --logtostderr=true
382-
- --v=7
383-
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
456+
- --v=0
457+
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.15.0
384458
name: kube-rbac-proxy
385459
ports:
386460
- containerPort: 8443
387461
name: https
462+
protocol: TCP
463+
resources:
464+
limits:
465+
cpu: 500m
466+
memory: 128Mi
467+
requests:
468+
cpu: 5m
469+
memory: 64Mi
470+
securityContext:
471+
allowPrivilegeEscalation: false
472+
capabilities:
473+
drop:
474+
- ALL
388475
securityContext:
389476
runAsUser: 65532
390477
serviceAccountName: service-binding-manager-account
@@ -393,3 +480,4 @@ spec:
393480
- configMap:
394481
name: service-binding-manager-config
395482
name: manager-config
483+

0 commit comments

Comments
 (0)