File tree Expand file tree Collapse file tree 11 files changed +75
-65
lines changed Expand file tree Collapse file tree 11 files changed +75
-65
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ ARG TAG
40
40
RUN cd config/manager \
41
41
&& kustomize edit set image controller=${REGISTRY_AND_USERNAME}/${NAME}:${TAG} \
42
42
&& cd - \
43
- && kubectl kustomize config >/release.yaml
43
+ && kubectl kustomize config/default >/release.yaml
44
44
FROM scratch AS release
45
45
COPY --from=release-build /release.yaml /release.yaml
46
46
Original file line number Diff line number Diff line change
1
+ apiVersion : kustomize.config.k8s.io/v1beta1
2
+ kind : Kustomization
3
+
1
4
# Adds namespace to all resources.
2
- namespace : tmp -system
5
+ namespace : cabpt -system
3
6
4
7
# Value of this field is prepended to the
5
8
# names of all resources, e.g. a deployment named
6
9
# "wordpress" becomes "alices-wordpress".
7
10
# Note that it should also match with the prefix (text before '-') of the namespace
8
11
# field above.
9
- namePrefix : tmp -
12
+ namePrefix : cabpt -
10
13
11
14
# Labels to add to all resources and selectors.
12
- # commonLabels:
13
- # someName: someValue
15
+ commonLabels :
16
+ control-plane : cabpt-controller-manager
14
17
15
18
bases :
16
19
- ../crd
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 28
28
args :
29
29
- --enable-leader-election
30
30
image : controller:latest
31
+ imagePullPolicy : Always
31
32
name : manager
32
33
resources :
33
34
limits :
Original file line number Diff line number Diff line change 1
1
apiVersion : rbac.authorization.k8s.io/v1
2
2
kind : ClusterRole
3
3
metadata :
4
- name : proxy-role
4
+ name : controller-manager- proxy-role
5
5
rules :
6
- - apiGroups : [" authentication.k8s.io" ]
7
- resources :
8
- - tokenreviews
9
- verbs : [" create" ]
10
- - apiGroups : [" authorization.k8s.io" ]
11
- resources :
12
- - subjectaccessreviews
13
- verbs : [" create" ]
6
+ - apiGroups : [' authentication.k8s.io' ]
7
+ resources :
8
+ - tokenreviews
9
+ verbs : [' create' ]
10
+ - apiGroups : [' authorization.k8s.io' ]
11
+ resources :
12
+ - subjectaccessreviews
13
+ verbs : [' create' ]
Original file line number Diff line number Diff line change 1
1
apiVersion : rbac.authorization.k8s.io/v1
2
2
kind : ClusterRoleBinding
3
3
metadata :
4
- name : proxy-rolebinding
4
+ name : controller-manager- proxy-rolebinding
5
5
roleRef :
6
6
apiGroup : rbac.authorization.k8s.io
7
7
kind : ClusterRole
8
- name : proxy-role
8
+ name : controller-manager- proxy-role
9
9
subjects :
10
- - kind : ServiceAccount
11
- name : default
12
- namespace : system
10
+ - kind : ServiceAccount
11
+ name : default
12
+ namespace : system
Original file line number Diff line number Diff line change 1
1
resources :
2
2
- role.yaml
3
+ - talosconfig_editor_role.yaml
3
4
- role_binding.yaml
4
5
- leader_election_role.yaml
5
6
- leader_election_role_binding.yaml
Original file line number Diff line number Diff line change 2
2
apiVersion : rbac.authorization.k8s.io/v1
3
3
kind : Role
4
4
metadata :
5
- name : leader-election-role
5
+ name : controller-manager- leader-election-role
6
6
rules :
7
- - apiGroups :
8
- - " "
9
- resources :
10
- - configmaps
11
- verbs :
12
- - get
13
- - list
14
- - watch
15
- - create
16
- - update
17
- - patch
18
- - delete
19
- - apiGroups :
20
- - " "
21
- resources :
22
- - configmaps/status
23
- verbs :
24
- - get
25
- - update
26
- - patch
27
- - apiGroups :
28
- - " "
29
- resources :
30
- - events
31
- verbs :
32
- - create
7
+ - apiGroups :
8
+ - ' '
9
+ resources :
10
+ - configmaps
11
+ verbs :
12
+ - get
13
+ - list
14
+ - watch
15
+ - create
16
+ - update
17
+ - patch
18
+ - delete
19
+ - apiGroups :
20
+ - ' '
21
+ resources :
22
+ - configmaps/status
23
+ verbs :
24
+ - get
25
+ - update
26
+ - patch
27
+ - apiGroups :
28
+ - ' '
29
+ resources :
30
+ - events
31
+ verbs :
32
+ - create
Original file line number Diff line number Diff line change 1
1
apiVersion : rbac.authorization.k8s.io/v1
2
2
kind : RoleBinding
3
3
metadata :
4
- name : leader-election-rolebinding
4
+ name : controller-manager- leader-election-rolebinding
5
5
roleRef :
6
6
apiGroup : rbac.authorization.k8s.io
7
7
kind : Role
8
- name : leader-election-role
8
+ name : controller-manager- leader-election-role
9
9
subjects :
10
- - kind : ServiceAccount
11
- name : default
12
- namespace : system
10
+ - kind : ServiceAccount
11
+ name : default
12
+ namespace : system
Original file line number Diff line number Diff line change 1
1
apiVersion : rbac.authorization.k8s.io/v1
2
2
kind : ClusterRoleBinding
3
3
metadata :
4
- name : manager-rolebinding
4
+ name : controller- manager-rolebinding
5
5
roleRef :
6
6
apiGroup : rbac.authorization.k8s.io
7
7
kind : ClusterRole
8
- name : manager-role
8
+ name : controller- manager-role
9
9
subjects :
10
- - kind : ServiceAccount
11
- name : default
12
- namespace : system
10
+ - kind : ServiceAccount
11
+ name : default
12
+ namespace : system
13
+ ---
14
+ apiVersion : rbac.authorization.k8s.io/v1
15
+ kind : ClusterRoleBinding
16
+ metadata :
17
+ name : talosconfig-editor-rolebinding
18
+ roleRef :
19
+ apiGroup : rbac.authorization.k8s.io
20
+ kind : ClusterRole
21
+ name : talosconfig-editor-role
22
+ subjects :
23
+ - kind : ServiceAccount
24
+ name : default
25
+ namespace : system
You can’t perform that action at this time.
0 commit comments