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
20 changes: 20 additions & 0 deletions charts/k6-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
appVersion: "0.0.18"
description: A Helm chart to install the k6-operator CRDs
name: k6-crds
version: 3.10.1
kubeVersion: ">=1.16.0-0"
home: https://k6.io
sources:
- https://github.com/grafana/k6-operator
keywords:
- load-testing
- smoke-testing
- stress-testing
- soak-testing
- kubernetes
- distributed-testing
maintainers:
- name: yorugac
email: [email protected]
icon: https://raw.githubusercontent.com/grafana/k6-docs/main/static/images/icon.png
50 changes: 50 additions & 0 deletions charts/k6-crds/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "k6-crds.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "k6-crds.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "k6-crds.labels" -}}
helm.sh/chart: {{ include "k6-crds.chart" . }}
{{ include "k6-crds.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: k6-operator
{{- end }}

{{/*
Selector labels
*/}}
{{- define "k6-crds.selectorLabels" -}}
app.kubernetes.io/name: {{ include "k6-crds.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{- define "k6-crds.customLabels" -}}
{{- if .Values.customLabels }}
{{- with .Values.customLabels }}
{{- toYaml . }}
{{- end }}
{{- end }}
{{- end -}}

{{- define "k6-crds.customAnnotations" -}}
{{- if .Values.customAnnotations }}
{{- with .Values.customAnnotations }}
{{- toYaml . }}
{{- end }}
{{- end }}
{{- end -}}
Loading
Loading