Skip to content

Commit 068d15a

Browse files
authored
Merge pull request #69 from jetstack/main
2 parents c207a93 + dba97bb commit 068d15a

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{- if .Values.startupapicheck.enabled -}}
2+
{{- if .Values.global.podSecurityPolicy.enabled }}
3+
kind: ClusterRole
4+
apiVersion: rbac.authorization.k8s.io/v1
5+
metadata:
6+
name: {{ template "startupapicheck.fullname" . }}-psp
7+
labels:
8+
app: {{ include "startupapicheck.name" . }}
9+
app.kubernetes.io/name: {{ include "startupapicheck.name" . }}
10+
app.kubernetes.io/instance: {{ .Release.Name }}
11+
app.kubernetes.io/component: "startupapicheck"
12+
{{- include "labels" . | nindent 4 }}
13+
{{- if .Values.startupapicheck.rbac.annotations }}
14+
annotations:
15+
{{ toYaml .Values.startupapicheck.rbac.annotations | nindent 4 }}
16+
{{- end }}
17+
rules:
18+
- apiGroups: ['policy']
19+
resources: ['podsecuritypolicies']
20+
verbs: ['use']
21+
resourceNames:
22+
- {{ template "startupapicheck.fullname" . }}
23+
{{- end }}
24+
{{- end }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{{- if .Values.startupapicheck.enabled -}}
2+
{{- if .Values.global.podSecurityPolicy.enabled }}
3+
apiVersion: rbac.authorization.k8s.io/v1
4+
kind: ClusterRoleBinding
5+
metadata:
6+
name: {{ template "startupapicheck.fullname" . }}-psp
7+
labels:
8+
app: {{ include "startupapicheck.name" . }}
9+
app.kubernetes.io/name: {{ include "startupapicheck.name" . }}
10+
app.kubernetes.io/instance: {{ .Release.Name }}
11+
app.kubernetes.io/component: "startupapicheck"
12+
{{- include "labels" . | nindent 4 }}
13+
{{- if .Values.startupapicheck.rbac.annotations }}
14+
annotations:
15+
{{ toYaml .Values.startupapicheck.rbac.annotations | nindent 4 }}
16+
{{- end }}
17+
roleRef:
18+
apiGroup: rbac.authorization.k8s.io
19+
kind: ClusterRole
20+
name: {{ template "startupapicheck.fullname" . }}-psp
21+
subjects:
22+
- kind: ServiceAccount
23+
name: {{ template "startupapicheck.serviceAccountName" . }}
24+
namespace: {{ .Release.Namespace }}
25+
{{- end }}
26+
{{- end }}

schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ x-google-marketplace:
1111
# We are not "truely" following semver.org since we use a "-" for a final
1212
# release ("-" is meant for pre-releases). This is due to a Docker
1313
# limitation: https://github.com/distribution/distribution/issues/1201
14-
publishedVersion: 1.5.3-gcm.0
14+
publishedVersion: 1.5.4-gcm.0
1515
publishedVersionMetadata:
1616
releaseNote: >-
1717
Initial release.

0 commit comments

Comments
 (0)