This repository was archived by the owner on Apr 17, 2025. It is now read-only.
File tree 9 files changed +133
-4
lines changed
9 files changed +133
-4
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ kind: ClusterRole
3
3
metadata :
4
4
labels :
5
5
rbac.authorization.k8s.io/aggregate-to-admin : " true"
6
- name : ' {{ include "hnc.fullname" . }}-admin-role '
6
+ name : ' {{ include "hnc.fullname" . }}-admin'
7
7
rules :
8
8
- apiGroups :
9
9
- hnc.x-k8s.io
10
10
resources :
11
- - ' *'
11
+ - hierarchicalresourcequotas
12
+ - subnamespaceanchors
13
+ - hierarchyconfigurations
12
14
verbs :
13
15
- ' *'
Original file line number Diff line number Diff line change 23
23
{{- if .Values.hrq.enabled }}
24
24
- --enable-hrq
25
25
{{- end }}
26
+ {{- if $hncIncludeNamespacesRegex}}
27
+ - --included-namespace-regex={{ $hncIncludeNamespacesRegex }}
28
+ {{- end }}
26
29
{{- range $hncExcludeNamespace := .Values.hncExcludeNamespaces}}
27
30
- --excluded-namespace={{ $hncExcludeNamespace }}
28
31
{{- end }}
Original file line number Diff line number Diff line change 22
22
{{- if .Values.hrq.enabled }}
23
23
- --enable-hrq
24
24
{{- end }}
25
+ {{- if $hncIncludeNamespacesRegex}}
26
+ - --included-namespace-regex={{ $hncIncludeNamespacesRegex }}
27
+ {{- end }}
25
28
{{- range $hncExcludeNamespace := .Values.hncExcludeNamespaces}}
26
29
- --excluded-namespace={{ $hncExcludeNamespace }}
27
30
{{- end }}
Original file line number Diff line number Diff line change
1
+ apiVersion : rbac.authorization.k8s.io/v1
2
+ kind : ClusterRole
3
+ metadata :
4
+ labels :
5
+ rbac.authorization.k8s.io/aggregate-to-edit : " true"
6
+ name : ' {{ include "hnc.fullname" . }}-edit'
7
+ rules :
8
+ - apiGroups :
9
+ - hnc.x-k8s.io
10
+ resources :
11
+ - hierarchicalresourcequotas
12
+ - subnamespaceanchors
13
+ verbs :
14
+ - ' *'
Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ labels :
5
+ app : resourcelist-apiextension
6
+ name : {{ include "hnc.fullname" . }}-resourcelist-apiextension
7
+ namespace : {{ include "hnc.namespace" . }}
8
+ spec :
9
+ replicas : 1
10
+ selector :
11
+ matchLabels :
12
+ app : resourcelist-apiextension
13
+ template :
14
+ metadata :
15
+ labels :
16
+ app : resourcelist-apiextension
17
+ spec :
18
+ containers :
19
+ - args :
20
+ {{- if .Values.hrq.enabled }}
21
+ - --enable-hrq
22
+ {{- end }}
23
+ {{- if $hncIncludeNamespacesRegex}}
24
+ - --included-namespace-regex={{ $hncIncludeNamespacesRegex }}
25
+ {{- end }}
26
+ {{- range $hncExcludeNamespace := .Values.hncExcludeNamespaces}}
27
+ - --excluded-namespace={{ $hncExcludeNamespace }}
28
+ {{- end }}
29
+ - --cert=/certs/tls.crt
30
+ - --key=/certs/tls.key
31
+ command :
32
+ - /apiextension
33
+ image : hnc-manager:latest
34
+ {{- with .Values.imagePullPolicy }}
35
+ imagePullPolicy : IfNotPresent
36
+ {{- end }}
37
+ name : resourcelist
38
+ ports :
39
+ - containerPort : 7443
40
+ name : server
41
+ protocol : TCP
42
+ securityContext :
43
+ allowPrivilegeEscalation : false
44
+ capabilities :
45
+ drop :
46
+ - ALL
47
+ readOnlyRootFilesystem : true
48
+ runAsNonRoot : true
49
+ seccompProfile :
50
+ type : RuntimeDefault
51
+ volumeMounts :
52
+ - mountPath : /certs
53
+ name : certs
54
+ securityContext :
55
+ fsGroup : 2000
56
+ runAsNonRoot : true
57
+ runAsUser : 1000
58
+ volumes :
59
+ - name : certs
60
+ secret :
61
+ defaultMode : 420
62
+ secretName : hnc-resourcelist-apiextension
63
+ nodeSelector : {{- toYaml . | nindent 8}}
64
+ affinity : {{- toYaml . | nindent 8}}
65
+ tolerations : {{- toYaml . | nindent 8}}
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service
3
+ metadata :
4
+ labels :
5
+ app : resourcelist
6
+ name : ' {{ include "hnc.fullname" . }}-resourcelist'
7
+ namespace : ' {{ include "hnc.namespace" . }}'
8
+ spec :
9
+ ports :
10
+ - port : 7443
11
+ protocol : TCP
12
+ targetPort : 7443
13
+ selector :
14
+ app : resourcelist
Original file line number Diff line number Diff line change
1
+ apiVersion : rbac.authorization.k8s.io/v1
2
+ kind : ClusterRole
3
+ metadata :
4
+ labels :
5
+ rbac.authorization.k8s.io/aggregate-to-view : " true"
6
+ name : ' {{ include "hnc.fullname" . }}-view'
7
+ rules :
8
+ - apiGroups :
9
+ - hnc.x-k8s.io
10
+ resources :
11
+ - ' *'
12
+ verbs :
13
+ - get
14
+ - list
15
+ - watch
Original file line number Diff line number Diff line change
1
+ apiVersion : apiregistration.k8s.io/v1
2
+ kind : APIService
3
+ metadata :
4
+ name : ' {{ include "hnc.fullname" . }}-v1alpha2.resources.hnc.x-k8s.io'
5
+ spec :
6
+ group : resources.hnc.x-k8s.io
7
+ groupPriorityMinimum : 10
8
+ service :
9
+ name : hnc-resourcelist
10
+ namespace : hnc-system
11
+ port : 7443
12
+ version : v1alpha2
13
+ versionPriority : 10
Original file line number Diff line number Diff line change 1
1
image :
2
- repository : gcr.io/k8s-staging-multitenancy /hnc-manager
3
- tag : v1.1.0
2
+ repository : /hnc-manager
3
+ tag : latest
4
4
imagePullPolicy : {}
5
5
# Regex of namespaces for HNC to manage
6
6
# example include everything except openshift.*
You can’t perform that action at this time.
0 commit comments