Skip to content
Open
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: 0 additions & 1 deletion .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
linting: off
charts_dir: charts-tmp
app_version: ${{ steps.semver.outputs.fullversion }}
chart_version: ${{ steps.semver.outputs.fullversion }}
# - name: Login to GitHub Container Registry
# run: |
Expand Down
1 change: 1 addition & 0 deletions charts/kyverno-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
apiVersion: v2
name: kyverno-api
version: v0.0.0
appVersion: v1.19.0
2 changes: 1 addition & 1 deletion charts/kyverno-api/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kyverno-api

![Version: v0.0.0](https://img.shields.io/badge/Version-v0.0.0-informational?style=flat-square)
![Version: v0.0.0](https://img.shields.io/badge/Version-v0.0.0-informational?style=flat-square) ![AppVersion: v1.19.0](https://img.shields.io/badge/AppVersion-v1.19.0-informational?style=flat-square)

## About

Expand Down
23 changes: 22 additions & 1 deletion charts/kyverno-api/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,28 @@
{{- end -}}

{{- define "kyverno-api.labels" -}}
{{- tpl (toYaml .Values.labels) . -}}
{{- $customLabels := .Values.labels | default dict -}}
{{- if not (hasKey $customLabels "helm.sh/chart") }}
helm.sh/chart: {{ .Chart.Name }}-{{ include "kyverno-api.chartVersion" . }}
Comment thread
Suhani95 marked this conversation as resolved.
Comment thread
aerosouund marked this conversation as resolved.
{{- end }}
{{- if not (hasKey $customLabels "app.kubernetes.io/component") }}
app.kubernetes.io/component: kyverno-api
{{- end }}
{{- if not (hasKey $customLabels "app.kubernetes.io/instance") }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{- if not (hasKey $customLabels "app.kubernetes.io/managed-by") }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{- if not (hasKey $customLabels "app.kubernetes.io/part-of") }}
app.kubernetes.io/part-of: kyverno-api
{{- end }}
{{- if not (hasKey $customLabels "app.kubernetes.io/version") }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
Comment thread
Suhani95 marked this conversation as resolved.
{{- with .Values.labels }}
{{- tpl (toYaml .) $ -}}
{{- end }}
Comment thread
Suhani95 marked this conversation as resolved.
{{- end -}}

{{- define "kyverno-api.annotations" -}}
Expand Down