From 1441b9af42df9232ba27ef43b14476bc74aacfa2 Mon Sep 17 00:00:00 2001 From: patrick-stephens <6388272+patrick-stephens@users.noreply.github.com> Date: Thu, 4 Jul 2024 11:58:46 +0000 Subject: [PATCH] ci: update Core Operator chart from latest version internally Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- charts/core-crd/Chart.yaml | 4 +- charts/core-crd/README.md | 36 -------- charts/core-instance/Chart.yaml | 4 +- charts/core-instance/values.yaml | 4 +- charts/core-operator/Chart.yaml | 4 +- charts/core-operator/test.sh | 142 +------------------------------ charts/core-operator/values.yaml | 2 +- 7 files changed, 10 insertions(+), 186 deletions(-) delete mode 100644 charts/core-crd/README.md mode change 100755 => 120000 charts/core-operator/test.sh diff --git a/charts/core-crd/Chart.yaml b/charts/core-crd/Chart.yaml index a042703..a0c00eb 100644 --- a/charts/core-crd/Chart.yaml +++ b/charts/core-crd/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: core-crd description: A Helm chart for Kubernetes type: application -version: 2.14.0 -appVersion: "v2.14.0" +version: 3.0.0 +appVersion: "v3.0.0" maintainers: - name: Calyptia email: hello@calyptia.com diff --git a/charts/core-crd/README.md b/charts/core-crd/README.md deleted file mode 100644 index 4c2be10..0000000 --- a/charts/core-crd/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# First time running the chart - -``` -HELM_EXPERIMENTAL_OCI=1 helm dependency build core-crd/ -``` - -#Convert raw CRD to templates - -``` -git clone https://github.com/calyptia/core-operator -cd core-operator -make manifests -make build-manifests - -cat config/crd | yq 'select(documentIndex == 0)' > ingest_checks.yaml -cat config/crd | yq 'select(documentIndex == 1)' > pipelines.yaml -``` - -Add templates for pipeline CRD - -``` -cat core-crd/templates/pipelines.yaml | yq '.spec.versions.[0].schema.openAPIV3Schema.properties.spec.properties.hotReloadImage.default |= "{{ template \"hotReload.image\" . }}"' > pipelines.yaml && mv pipelines.yaml core-crd/templates/pipelines.yaml -cat core-crd/templates/pipelines.yaml | yq '.spec.versions.[0].schema.openAPIV3Schema.properties.spec.properties.image.default |= "{{ template \"fluentBit.image\" . }}"' > pipelines.yaml && mv pipelines.yaml core-crd/templates/pipelines.yaml -``` - -Add templates for ingest_checks CRD - -``` -cat core-crd/templates/ingest_checks.yaml | yq '.spec.versions.[0].schema.openAPIV3Schema.properties.spec.properties.fluentBitImage.default |= "{{ template \"fluentBit.image\" . }}"' > ingest_checks.yaml && mv ingest_checks.yaml core-crd/templates/ingest_checks.yaml -cat core-crd/templates/ingest_checks.yaml | yq '.spec.versions.[0].schema.openAPIV3Schema.properties.spec.properties.ingestCheckSidecarImage.default |= "{{ template \"ingestCheck.image\" . }}"' > ingest_checks.yaml && mv ingest_checks.yaml core-crd/templates/ingest_checks.yaml -cat core-crd/templates/ingest_checks.yaml | yq '.spec.versions.[0].schema.openAPIV3Schema.properties.spec.properties.cloudAPI.properties.url.default |= "{{ default \"https://cloud-api.calyptia.com\" .Values.cloudUrl }}"' > ingest_checks.yaml && mv ingest_checks.yaml core-crd/templates/ingest_checks.yaml - -``` - - -{{ default "https://cloud-api.calyptia.com" .Values.cloudUrl | quote }} \ No newline at end of file diff --git a/charts/core-instance/Chart.yaml b/charts/core-instance/Chart.yaml index a87870e..f628f8b 100644 --- a/charts/core-instance/Chart.yaml +++ b/charts/core-instance/Chart.yaml @@ -4,8 +4,8 @@ description: Calyptia Core Instance chart home: https://calyptia.com/products/core/ icon: https://storage.googleapis.com/calyptia_public_resources_bucket/logo-darkmode.svg type: application -version: 2.14.0 -appVersion: "v2.14.0" +version: 3.0.0 +appVersion: "v3.0.0" maintainers: - name: Calyptia email: hello@calyptia.com diff --git a/charts/core-instance/values.yaml b/charts/core-instance/values.yaml index 23eda6b..1c449ce 100644 --- a/charts/core-instance/values.yaml +++ b/charts/core-instance/values.yaml @@ -20,12 +20,12 @@ images: fromCloud: registry: ghcr.io repository: calyptia/core-operator/sync-from-cloud - tag: 2.14.0 + tag: 3.0.0 pullSecrets: [] toCloud: registry: ghcr.io repository: calyptia/core-operator/sync-to-cloud - tag: 2.14.0 + tag: 3.0.0 pullSecrets: [] hotReload: registry: ghcr.io diff --git a/charts/core-operator/Chart.yaml b/charts/core-operator/Chart.yaml index 5194de2..e21ffb9 100644 --- a/charts/core-operator/Chart.yaml +++ b/charts/core-operator/Chart.yaml @@ -4,8 +4,8 @@ description: Calyptia Core Operator chart home: https://calyptia.com/products/core/ icon: https://storage.googleapis.com/calyptia_public_resources_bucket/logo-darkmode.svg type: application -version: 2.14.0 -appVersion: "v2.14.0" +version: 3.0.0 +appVersion: "v3.0.0" maintainers: - name: Calyptia email: hello@calyptia.com diff --git a/charts/core-operator/test.sh b/charts/core-operator/test.sh deleted file mode 100755 index accd241..0000000 --- a/charts/core-operator/test.sh +++ /dev/null @@ -1,141 +0,0 @@ -#!/bin/sh -set -eu -export NAMESPACE="${NAMESPACE:-default}" -export PIPELINE_NAME="${PIPELINE_NAME:-test-pipeline}" -export MAX_ITERATIONS="${MAX_ITERATIONS:-10}" -export RETRY_TIMEOUT="${RETRY_TIMEOUT:-2s}" - - -echo "Creating a pipeline" -if kubectl create -f - <