Skip to content

Commit

Permalink
Always create sshPortal authorization resources and add a service acc…
Browse files Browse the repository at this point in the history
…ount token resource
  • Loading branch information
rocketeerbkw committed Sep 7, 2023
1 parent a756ae4 commit 7848a59
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions charts/lagoon-remote/templates/ssh-portal.clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.sshPortal.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down Expand Up @@ -42,4 +41,3 @@ rules:
- pods/exec
verbs:
- create
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.sshPortal.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -13,4 +12,3 @@ roleRef:
kind: ClusterRole
name: {{ include "lagoon-remote.sshPortal.fullname" . }}
apiGroup: rbac.authorization.k8s.io
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
type: kubernetes.io/service-account-token
metadata:
name: {{ include "lagoon-remote.sshPortal.fullname" . }}-token
labels:
{{- include "lagoon-remote.sshPortal.labels" . | nindent 4 }}
annotations:
kubernetes.io/service-account.name: {{ include "lagoon-remote.sshPortal.serviceAccountName" . }}
2 changes: 0 additions & 2 deletions charts/lagoon-remote/templates/ssh-portal.serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.sshPortal.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -9,4 +8,3 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

0 comments on commit 7848a59

Please sign in to comment.