Commit d64f178 1 parent 61e10cb commit d64f178 Copy full SHA for d64f178
File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,16 @@ rules:
24
24
- apiGroups : [""]
25
25
resources : ["namespaces"]
26
26
verbs : ["get", "patch"]
27
+ {{- if eq .Values.Azure.Cluster.Distribution "openshift" }}
28
+ - apiGroups :
29
+ - security.openshift.io
30
+ resourceNames :
31
+ - anyuid
32
+ resources :
33
+ - securitycontextconstraints
34
+ verbs :
35
+ - use
36
+ {{- end }}
27
37
---
28
38
kind : RoleBinding
29
39
apiVersion : rbac.authorization.k8s.io/v1
@@ -88,14 +98,18 @@ metadata:
88
98
" helm.sh/hook-weight " : " 35"
89
99
" helm.sh/hook " : pre-install
90
100
" helm.sh/hook-delete-policy " : before-hook-creation,hook-succeeded
101
+ {{- if (ne .Values.Azure.Cluster.Distribution "openshift") }}
91
102
seccomp.security.alpha.kubernetes.io/pod : runtime/default
103
+ {{- end }}
92
104
spec :
93
105
template :
94
106
metadata :
95
107
labels :
96
108
app : osm-label
109
+ {{- if (ne .Values.Azure.Cluster.Distribution "openshift") }}
97
110
annotations :
98
111
seccomp.security.alpha.kubernetes.io/pod : runtime/default
112
+ {{- end }}
99
113
spec :
100
114
serviceAccountName : osm-label-account
101
115
automountServiceAccountToken : true
Original file line number Diff line number Diff line change 2
2
# This is a YAML-formatted file.
3
3
# Declare variables to be passed into your templates.
4
4
5
+ # # Values populated by Azure Arc K8s RP during the installation of the extension
6
+ Azure :
7
+ Cluster :
8
+ Distribution : <cluster_distribution>
9
+
5
10
OpenServiceMesh :
6
11
ignoreNamespaces : " kube-system azure-arc arc-osm-system"
7
12
You can’t perform that action at this time.
0 commit comments