From c8c30284c5907e8f32c2e677a8db689c174fc2ee Mon Sep 17 00:00:00 2001 From: Kautilya Tripathi Date: Mon, 3 Jun 2024 14:38:37 +0530 Subject: [PATCH 1/2] charts: Add example docs for ingress Fixes: #1936 Signed-off-by: Kautilya Tripathi --- charts/headlamp/values.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/headlamp/values.yaml b/charts/headlamp/values.yaml index 9b306b2475..1a33c00922 100644 --- a/charts/headlamp/values.yaml +++ b/charts/headlamp/values.yaml @@ -167,10 +167,13 @@ ingress: ingressClassName: "" # -- Hostname(s) for the Ingress resource + # Please refer to https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec for more information. hosts: [] # - host: chart-example.local - # paths: [] + # paths: + # path: / + # type: ImplementationSpecifichosts # -- Ingress TLS configuration tls: [] # - secretName: chart-example-tls From 195730b1cd3df107947531988f7dcfc9bc913a7a Mon Sep 17 00:00:00 2001 From: Kautilya Tripathi Date: Mon, 3 Jun 2024 11:38:03 +0200 Subject: [PATCH 2/2] charts: Fix template test version Signed-off-by: Kautilya Tripathi --- .../tests/expected_templates/extra-args.yaml | 18 +++++++++--------- .../expected_templates/oidc-create-secret.yaml | 18 +++++++++--------- .../expected_templates/oidc-directly-env.yaml | 18 +++++++++--------- .../expected_templates/oidc-directly.yaml | 18 +++++++++--------- .../oidc-external-secret.yaml | 18 +++++++++--------- .../expected_templates/volumes-added.yaml | 18 +++++++++--------- 6 files changed, 54 insertions(+), 54 deletions(-) diff --git a/charts/headlamp/tests/expected_templates/extra-args.yaml b/charts/headlamp/tests/expected_templates/extra-args.yaml index a842da9cf6..3aa7e44287 100644 --- a/charts/headlamp/tests/expected_templates/extra-args.yaml +++ b/charts/headlamp/tests/expected_templates/extra-args.yaml @@ -5,10 +5,10 @@ kind: ServiceAccount metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm --- # Source: headlamp/templates/secret.yaml @@ -25,10 +25,10 @@ kind: ClusterRoleBinding metadata: name: headlamp-admin labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm roleRef: apiGroup: rbac.authorization.k8s.io @@ -45,10 +45,10 @@ kind: Service metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP @@ -70,10 +70,10 @@ kind: Deployment metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 @@ -97,7 +97,7 @@ spec: runAsGroup: 101 runAsNonRoot: true runAsUser: 100 - image: "ghcr.io/headlamp-k8s/headlamp:v0.23.2" + image: "ghcr.io/headlamp-k8s/headlamp:v0.24.0" imagePullPolicy: IfNotPresent env: diff --git a/charts/headlamp/tests/expected_templates/oidc-create-secret.yaml b/charts/headlamp/tests/expected_templates/oidc-create-secret.yaml index 8baec98ef3..a6e659f9cc 100644 --- a/charts/headlamp/tests/expected_templates/oidc-create-secret.yaml +++ b/charts/headlamp/tests/expected_templates/oidc-create-secret.yaml @@ -5,10 +5,10 @@ kind: ServiceAccount metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm --- # Source: headlamp/templates/secret.yaml @@ -29,10 +29,10 @@ kind: ClusterRoleBinding metadata: name: headlamp-admin labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm roleRef: apiGroup: rbac.authorization.k8s.io @@ -49,10 +49,10 @@ kind: Service metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP @@ -74,10 +74,10 @@ kind: Deployment metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 @@ -101,7 +101,7 @@ spec: runAsGroup: 101 runAsNonRoot: true runAsUser: 100 - image: "ghcr.io/headlamp-k8s/headlamp:v0.23.2" + image: "ghcr.io/headlamp-k8s/headlamp:v0.24.0" imagePullPolicy: IfNotPresent env: diff --git a/charts/headlamp/tests/expected_templates/oidc-directly-env.yaml b/charts/headlamp/tests/expected_templates/oidc-directly-env.yaml index f8246552e4..0c1f3410c8 100644 --- a/charts/headlamp/tests/expected_templates/oidc-directly-env.yaml +++ b/charts/headlamp/tests/expected_templates/oidc-directly-env.yaml @@ -5,10 +5,10 @@ kind: ServiceAccount metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm --- # Source: headlamp/templates/secret.yaml @@ -25,10 +25,10 @@ kind: ClusterRoleBinding metadata: name: headlamp-admin labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm roleRef: apiGroup: rbac.authorization.k8s.io @@ -45,10 +45,10 @@ kind: Service metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP @@ -70,10 +70,10 @@ kind: Deployment metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 @@ -97,7 +97,7 @@ spec: runAsGroup: 101 runAsNonRoot: true runAsUser: 100 - image: "ghcr.io/headlamp-k8s/headlamp:v0.23.2" + image: "ghcr.io/headlamp-k8s/headlamp:v0.24.0" imagePullPolicy: IfNotPresent env: diff --git a/charts/headlamp/tests/expected_templates/oidc-directly.yaml b/charts/headlamp/tests/expected_templates/oidc-directly.yaml index 7fc974ab3d..2a3a1b1adc 100644 --- a/charts/headlamp/tests/expected_templates/oidc-directly.yaml +++ b/charts/headlamp/tests/expected_templates/oidc-directly.yaml @@ -5,10 +5,10 @@ kind: ServiceAccount metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm --- # Source: headlamp/templates/clusterrolebinding.yaml @@ -17,10 +17,10 @@ kind: ClusterRoleBinding metadata: name: headlamp-admin labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm roleRef: apiGroup: rbac.authorization.k8s.io @@ -37,10 +37,10 @@ kind: Service metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP @@ -62,10 +62,10 @@ kind: Deployment metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 @@ -89,7 +89,7 @@ spec: runAsGroup: 101 runAsNonRoot: true runAsUser: 100 - image: "ghcr.io/headlamp-k8s/headlamp:v0.23.2" + image: "ghcr.io/headlamp-k8s/headlamp:v0.24.0" imagePullPolicy: IfNotPresent env: diff --git a/charts/headlamp/tests/expected_templates/oidc-external-secret.yaml b/charts/headlamp/tests/expected_templates/oidc-external-secret.yaml index 97450d0007..88ac3fec0f 100644 --- a/charts/headlamp/tests/expected_templates/oidc-external-secret.yaml +++ b/charts/headlamp/tests/expected_templates/oidc-external-secret.yaml @@ -5,10 +5,10 @@ kind: ServiceAccount metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm --- # Source: headlamp/templates/clusterrolebinding.yaml @@ -17,10 +17,10 @@ kind: ClusterRoleBinding metadata: name: headlamp-admin labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm roleRef: apiGroup: rbac.authorization.k8s.io @@ -37,10 +37,10 @@ kind: Service metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP @@ -62,10 +62,10 @@ kind: Deployment metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 @@ -89,7 +89,7 @@ spec: runAsGroup: 101 runAsNonRoot: true runAsUser: 100 - image: "ghcr.io/headlamp-k8s/headlamp:v0.23.2" + image: "ghcr.io/headlamp-k8s/headlamp:v0.24.0" imagePullPolicy: IfNotPresent env: diff --git a/charts/headlamp/tests/expected_templates/volumes-added.yaml b/charts/headlamp/tests/expected_templates/volumes-added.yaml index e3f1fedc52..c7b022d52b 100644 --- a/charts/headlamp/tests/expected_templates/volumes-added.yaml +++ b/charts/headlamp/tests/expected_templates/volumes-added.yaml @@ -5,10 +5,10 @@ kind: ServiceAccount metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm --- # Source: headlamp/templates/secret.yaml @@ -25,10 +25,10 @@ kind: ClusterRoleBinding metadata: name: headlamp-admin labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm roleRef: apiGroup: rbac.authorization.k8s.io @@ -45,10 +45,10 @@ kind: Service metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP @@ -70,10 +70,10 @@ kind: Deployment metadata: name: headlamp labels: - helm.sh/chart: headlamp-0.21.0 + helm.sh/chart: headlamp-0.22.0 app.kubernetes.io/name: headlamp app.kubernetes.io/instance: headlamp - app.kubernetes.io/version: "0.23.2" + app.kubernetes.io/version: "0.24.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 @@ -97,7 +97,7 @@ spec: runAsGroup: 101 runAsNonRoot: true runAsUser: 100 - image: "ghcr.io/headlamp-k8s/headlamp:v0.23.2" + image: "ghcr.io/headlamp-k8s/headlamp:v0.24.0" imagePullPolicy: IfNotPresent env: