Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: release helm chart failing due to invalid token #209

Merged
merged 7 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/stable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
with:
app-id: ${{ vars.ACTIONS_APP_ID }}
private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }}
repositories: charts

- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
Expand Down
9 changes: 9 additions & 0 deletions deployments/nimbus-kyverno/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ app.kubernetes.io/name: {{ include "nimbus-kyverno.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
ClusterRoleSelector labels
*/}}
{{- define "nimbus-kyverno.clusterRoleSelectorLabels" -}}
app.kubernetes.io/component: background-controller
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}-kyverno
{{- end }}

{{/*
Create the name of the service account to use
*/}}
Expand Down
4 changes: 1 addition & 3 deletions deployments/nimbus-kyverno/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app.kubernetes.io/component: background-controller
app.kubernetes.io/instance: nimbus-kyverno
app.kubernetes.io/part-of: nimbus-kyverno
{{- include "nimbus-kyverno.clusterRoleSelectorLabels" . | nindent 4 }}
name: nimbus-kyverno:update-resources
rules:
- apiGroups:
Expand Down
5 changes: 5 additions & 0 deletions deployments/nimbus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ dependencies:
version: ">= 0.1.0"
repository: https://5gsec.github.io/charts
condition: autoDeploy.kyverno

- name: nimbus-k8tls
version: ">= 0.1.0"
repository: https://5gsec.github.io/charts
condition: autoDeploy.k8tls
1 change: 1 addition & 0 deletions deployments/nimbus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ autoDeploy:
kubearmor: true
netpol: true
kyverno: true
k8tls: true

replicaCount: 1

Expand Down
Loading