diff --git a/charts/apps/k8s-ycl/Chart.yaml b/charts/apps/k8s-ycl/Chart.yaml index b15f56ef..60524aea 100644 --- a/charts/apps/k8s-ycl/Chart.yaml +++ b/charts/apps/k8s-ycl/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 description: Kubernetes admission controller to remove CPU limits from Pods. name: k8s-ycl -version: 1.2.3 +version: 1.2.4 appVersion: v0.2.0 kubeVersion: ">=1.22.0-0" sources: @@ -19,12 +19,12 @@ maintainers: dependencies: - name: common repository: https://bjw-s.github.io/helm-charts - version: 2.6.0 + version: 3.0.2 annotations: artifacthub.io/changes: |- - kind: changed description: | - Restructure Helm helpers / includes + Update common library to latest version artifacthub.io/links: | - name: "source" url: "https://github.com/bjw-s/k8s-ycl" diff --git a/charts/apps/k8s-ycl/README.md b/charts/apps/k8s-ycl/README.md new file mode 100644 index 00000000..4622df1c --- /dev/null +++ b/charts/apps/k8s-ycl/README.md @@ -0,0 +1,69 @@ +# k8s-ycl + +![Version: 1.2.4](https://img.shields.io/badge/Version-1.2.4-informational?style=flat-square) ![AppVersion: v0.2.0](https://img.shields.io/badge/AppVersion-v0.2.0-informational?style=flat-square) + +Kubernetes admission controller to remove CPU limits from Pods. + +## Maintainers + +| Name | Email | Url | +| ---- | ------ | --- | +| bjw-s | | | + +## Source Code + +* + +## Requirements + +Kubernetes: `>=1.22.0-0` + +| Repository | Name | Version | +|------------|------|---------| +| https://bjw-s.github.io/helm-charts | common | 3.0.2 | + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| controllers.main.containers.main.image.pullPolicy | string | `"Always"` | | +| controllers.main.containers.main.image.repository | string | `"ghcr.io/bjw-s/k8s-ycl"` | | +| controllers.main.containers.main.image.tag | string | `"{{ .Chart.AppVersion }}"` | | +| controllers.main.containers.main.probes.liveness.custom | bool | `true` | | +| controllers.main.containers.main.probes.liveness.enabled | bool | `true` | | +| controllers.main.containers.main.probes.liveness.spec.failureThreshold | int | `3` | | +| controllers.main.containers.main.probes.liveness.spec.httpGet.path | string | `"/healthz"` | | +| controllers.main.containers.main.probes.liveness.spec.httpGet.port | int | `8081` | | +| controllers.main.containers.main.probes.liveness.spec.initialDelaySeconds | int | `0` | | +| controllers.main.containers.main.probes.liveness.spec.periodSeconds | int | `10` | | +| controllers.main.containers.main.probes.liveness.spec.timeoutSeconds | int | `1` | | +| controllers.main.containers.main.probes.readiness.custom | bool | `true` | | +| controllers.main.containers.main.probes.readiness.enabled | bool | `true` | | +| controllers.main.containers.main.probes.readiness.spec.failureThreshold | int | `3` | | +| controllers.main.containers.main.probes.readiness.spec.httpGet.path | string | `"/readyz"` | | +| controllers.main.containers.main.probes.readiness.spec.httpGet.port | int | `8081` | | +| controllers.main.containers.main.probes.readiness.spec.initialDelaySeconds | int | `0` | | +| controllers.main.containers.main.probes.readiness.spec.periodSeconds | int | `10` | | +| controllers.main.containers.main.probes.readiness.spec.timeoutSeconds | int | `1` | | +| controllers.main.containers.main.probes.startup.custom | bool | `true` | | +| controllers.main.containers.main.probes.startup.enabled | bool | `true` | | +| controllers.main.containers.main.probes.startup.spec.failureThreshold | int | `30` | | +| controllers.main.containers.main.probes.startup.spec.httpGet.path | string | `"/healthz"` | | +| controllers.main.containers.main.probes.startup.spec.httpGet.port | int | `8081` | | +| controllers.main.containers.main.probes.startup.spec.periodSeconds | int | `10` | | +| controllers.main.strategy | string | `"RollingUpdate"` | | +| persistence.certs.globalMounts[0].path | string | `"/tls"` | | +| persistence.certs.name | string | `"{{ include \"k8s-ycl.servingCertificate\" . }}"` | | +| persistence.certs.type | string | `"secret"` | | +| service.main.controller | string | `"main"` | | +| service.main.nameOverride | string | `"webhook"` | | +| service.main.ports.http.port | int | `9443` | | +| service.main.ports.metrics.port | int | `8080` | | +| service.main.ports.probe.port | int | `8081` | | +| serviceAccount.create | bool | `true` | | +| webhook.ignoreOwnNamespace | bool | `true` | | +| webhook.ignoredNamespaces[0] | string | `"kube-system"` | | +| webhook.path | string | `"/mutate--v1-pod"` | | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.12.0](https://github.com/norwoodj/helm-docs/releases/v1.12.0) diff --git a/charts/apps/k8s-ycl/templates/_hardcodedValues.tpl b/charts/apps/k8s-ycl/templates/_hardcodedValues.tpl index 7ac53d06..204c7e7d 100644 --- a/charts/apps/k8s-ycl/templates/_hardcodedValues.tpl +++ b/charts/apps/k8s-ycl/templates/_hardcodedValues.tpl @@ -1,64 +1,2 @@ {{- define "k8s-ycl.hardcodedValues" -}} -controllers: - main: - containers: - main: - probes: - liveness: - enabled: true - custom: true - spec: - httpGet: - path: /healthz - port: 8081 - initialDelaySeconds: 0 - periodSeconds: 10 - timeoutSeconds: 1 - failureThreshold: 3 - readiness: - enabled: true - custom: true - spec: - httpGet: - path: /readyz - port: 8081 - initialDelaySeconds: 0 - periodSeconds: 10 - timeoutSeconds: 1 - failureThreshold: 3 - startup: - enabled: true - custom: true - spec: - httpGet: - path: /healthz - port: 8081 - failureThreshold: 30 - periodSeconds: 10 - -service: - main: - enabled: true - nameOverride: webhook - ports: - http: - enabled: true - port: 9443 - metrics: - enabled: true - port: 8080 - probe: - enabled: true - port: 8081 - -serviceAccount: - create: true - -persistence: - certs: - enabled: true - type: secret - name: {{ include "k8s-ycl.servingCertificate" . }} - globalMounts: - - path: /tls {{- end -}} diff --git a/charts/apps/k8s-ycl/values.schema.json b/charts/apps/k8s-ycl/values.schema.json new file mode 100644 index 00000000..501476d4 --- /dev/null +++ b/charts/apps/k8s-ycl/values.schema.json @@ -0,0 +1,3 @@ +{ + "$ref": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.0.2/charts/library/common/values.schema.json" +} diff --git a/charts/apps/k8s-ycl/values.yaml b/charts/apps/k8s-ycl/values.yaml index a712f88d..c45d0c92 100644 --- a/charts/apps/k8s-ycl/values.yaml +++ b/charts/apps/k8s-ycl/values.yaml @@ -1,13 +1,69 @@ --- +# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/app-template-3.0.2/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json controllers: main: + strategy: RollingUpdate containers: main: - strategy: RollingUpdate image: repository: ghcr.io/bjw-s/k8s-ycl tag: "{{ .Chart.AppVersion }}" pullPolicy: Always + probes: + liveness: + enabled: true + custom: true + spec: + httpGet: + path: /healthz + port: 8081 + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + readiness: + enabled: true + custom: true + spec: + httpGet: + path: /readyz + port: 8081 + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + startup: + enabled: true + custom: true + spec: + httpGet: + path: /healthz + port: 8081 + failureThreshold: 30 + periodSeconds: 10 + +persistence: + certs: + type: secret + name: >- + {{ include "k8s-ycl.servingCertificate" . }} + globalMounts: + - path: /tls + +service: + main: + controller: main + nameOverride: webhook + ports: + http: + port: 9443 + metrics: + port: 8080 + probe: + port: 8081 + +serviceAccount: + create: true webhook: path: /mutate--v1-pod