Skip to content

Commit

Permalink
feat: optional installation of crds
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Johansson <[email protected]>
  • Loading branch information
illrill authored and yorugac committed Nov 23, 2023
1 parent 3d253f1 commit 9df1f7b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/k6-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.0.11"
description: A Helm chart to install the k6-operator
name: k6-operator
version: 3.0.0
version: 3.1.0
kubeVersion: ">=1.16.0-0"
home: https://k6.io
sources:
Expand Down
5 changes: 4 additions & 1 deletion charts/k6-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# k6-operator

![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![AppVersion: 0.0.11](https://img.shields.io/badge/AppVersion-0.0.11-informational?style=flat-square)
![Version: 3.1.0](https://img.shields.io/badge/Version-3.1.0-informational?style=flat-square) ![AppVersion: 0.0.11](https://img.shields.io/badge/AppVersion-0.0.11-informational?style=flat-square)

A Helm chart to install the k6-operator

Expand Down Expand Up @@ -34,12 +34,14 @@ Kubernetes: `>=1.16.0-0`
| authProxy.resources | object | `{}` | rbac-proxy resource limitation/request |
| customAnnotations | object | `{}` | Custom Annotations to be applied on all resources |
| customLabels | object | `{}` | Custom Label to be applied on all resources |
| installCRDs | bool | `true` | Installs CRDs as part of the release |
| manager.env | object | `{}` | Environment variables to be applied on the controller |
| manager.image.name | string | `"ghcr.io/grafana/k6-operator"` | controller-manager image name |
| manager.image.pullPolicy | string | `"Always"` | pull policy for the image possible values Always, Never, IfNotPresent (default: Always) |
| manager.image.tag | string | `"controller-v0.0.11"` | controller-manager image tag |
| manager.livenessProbe | object | `{}` | Liveness probe in Probe format |
| manager.readinessProbe | object | `{}` | Readiness probe in Probe format |
| manager.replicas | int | `1` | number of controller-manager replicas (default: 1) |
| manager.resources | object | `{"limits":{"cpu":"100m","memory":"100Mi"},"requests":{"cpu":"100m","memory":"50Mi"}}` | controller-manager Resources definition |
| manager.resources.limits.cpu | string | `"100m"` | controller-manager CPU limit (Max) |
| manager.resources.limits.memory | string | `"100Mi"` | controller-manager Memory limit (Max) |
Expand All @@ -49,6 +51,7 @@ Kubernetes: `>=1.16.0-0`
| manager.serviceAccount.name | string | `"k6-operator-controller"` | kubernetes service account for the k6 manager |
| namespace.create | bool | `true` | create the namespace (default: true) |
| nodeSelector | object | `{}` | Node Selector to be applied on all containers |
| podLabels | object | `{}` | Custom Label to be applied on all pods |
| prometheus.enabled | bool | `false` | enables the prometheus metrics scraping (default: false) |
| tolerations | object | `{}` | Tolerations to be applied on all containers |

Expand Down
4 changes: 3 additions & 1 deletion charts/k6-operator/templates/crds/k6.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.installCRDs -}}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Expand Down Expand Up @@ -4899,4 +4900,5 @@ status:
kind: ""
plural: ""
conditions: []
storedVersions: []
storedVersions: []
{{- end -}}
2 changes: 2 additions & 0 deletions charts/k6-operator/templates/crds/plz.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.installCRDs -}}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Expand Down Expand Up @@ -100,3 +101,4 @@ status:
plural: ""
conditions: []
storedVersions: []
{{- end -}}
2 changes: 2 additions & 0 deletions charts/k6-operator/templates/crds/testrun.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

{{- if .Values.installCRDs -}}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -4902,3 +4903,4 @@ status:
plural: ""
conditions: []
storedVersions: []
{{- end -}}
3 changes: 3 additions & 0 deletions charts/k6-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ affinity: {}
# tolerations -- Tolerations to be applied on all containers
tolerations: {}

# installCRDs -- Installs CRDs as part of the release
installCRDs: true

namespace:
# namespace.create -- create the namespace (default: true)
create: true
Expand Down

0 comments on commit 9df1f7b

Please sign in to comment.