From 4cc82eef0931dbd3e28806a75c19d1c766207746 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Sun, 6 Oct 2024 22:57:52 +0200 Subject: [PATCH] (fix): continue to ship old versions of CRDs --- charts/bitwarden-crd-operator/Chart.yaml | 12 +- .../crds/bitwarden-secrets.yaml | 120 ++++++++++++++++++ .../crds/bitwarden-templates.yaml | 81 ++++++++++++ .../crds/registry-credentials.yaml | 99 +++++++++++++++ 4 files changed, 303 insertions(+), 9 deletions(-) diff --git a/charts/bitwarden-crd-operator/Chart.yaml b/charts/bitwarden-crd-operator/Chart.yaml index 9cc541a..ad6c6d5 100644 --- a/charts/bitwarden-crd-operator/Chart.yaml +++ b/charts/bitwarden-crd-operator/Chart.yaml @@ -4,7 +4,7 @@ description: Deploy the Bitwarden CRD Operator type: application -version: "v0.15.0" +version: "v0.15.1" appVersion: "0.14.0" @@ -112,14 +112,8 @@ annotations: artifacthub.io/operator: "true" artifacthub.io/containsSecurityUpdates: "false" artifacthub.io/changes: | - - kind: changed - description: "BitwardenTemplate can now handle multiple files" - - kind: changed - description: "Removed long deprecated versions" - - kind: changed - description: "Update kubernetes from v29.0.0 to v30.1.0" - - kind: changed - description: "Update alpine from 3.20.2 to 3.20.3" + - kind: fixed + description: "Revert Removed long deprecated versions" artifacthub.io/images: | - name: bitwarden-crd-operator image: ghcr.io/lerentis/bitwarden-crd-operator:0.14.0 diff --git a/charts/bitwarden-crd-operator/crds/bitwarden-secrets.yaml b/charts/bitwarden-crd-operator/crds/bitwarden-secrets.yaml index c985394..ef2a2e6 100644 --- a/charts/bitwarden-crd-operator/crds/bitwarden-secrets.yaml +++ b/charts/bitwarden-crd-operator/crds/bitwarden-secrets.yaml @@ -13,6 +13,126 @@ spec: shortNames: - bws versions: + - name: v1beta4 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + content: + type: array + items: + type: object + properties: + element: + type: object + properties: + secretName: + type: string + secretRef: + type: string + secretScope: + type: string + required: + - secretName + id: + type: string + namespace: + type: string + name: + type: string + required: + - id + - namespace + - name + - name: v1beta5 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + content: + type: array + items: + type: object + properties: + element: + type: object + properties: + secretName: + type: string + secretRef: + type: string + secretScope: + type: string + required: + - secretName + id: + type: string + namespace: + type: string + name: + type: string + labels: + type: object + x-kubernetes-preserve-unknown-fields: true + required: + - id + - namespace + - name + - name: v1beta6 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + content: + type: array + items: + type: object + properties: + element: + type: object + properties: + secretName: + type: string + secretRef: + type: string + secretScope: + type: string + required: + - secretName + id: + type: string + namespace: + type: string + name: + type: string + labels: + type: object + x-kubernetes-preserve-unknown-fields: true + annotations: + type: object + x-kubernetes-preserve-unknown-fields: true + required: + - id + - namespace + - name - name: v1beta7 served: true storage: false diff --git a/charts/bitwarden-crd-operator/crds/bitwarden-templates.yaml b/charts/bitwarden-crd-operator/crds/bitwarden-templates.yaml index ac60a07..11a13d8 100644 --- a/charts/bitwarden-crd-operator/crds/bitwarden-templates.yaml +++ b/charts/bitwarden-crd-operator/crds/bitwarden-templates.yaml @@ -13,6 +13,87 @@ spec: shortNames: - bwt versions: + - name: v1beta4 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + filename: + type: string + template: + type: string + namespace: + type: string + name: + type: string + required: + - filename + - template + - namespace + - name + - name: v1beta5 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + filename: + type: string + template: + type: string + namespace: + type: string + name: + type: string + labels: + type: object + x-kubernetes-preserve-unknown-fields: true + required: + - filename + - template + - namespace + - name + - name: v1beta6 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + filename: + type: string + template: + type: string + namespace: + type: string + name: + type: string + labels: + type: object + x-kubernetes-preserve-unknown-fields: true + annotations: + type: object + x-kubernetes-preserve-unknown-fields: true + required: + - filename + - template + - namespace + - name - name: v1beta7 served: true storage: false diff --git a/charts/bitwarden-crd-operator/crds/registry-credentials.yaml b/charts/bitwarden-crd-operator/crds/registry-credentials.yaml index e631abd..9a49fcc 100644 --- a/charts/bitwarden-crd-operator/crds/registry-credentials.yaml +++ b/charts/bitwarden-crd-operator/crds/registry-credentials.yaml @@ -13,6 +13,105 @@ spec: shortNames: - rgc versions: + - name: v1beta4 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + usernameRef: + type: string + passwordRef: + type: string + registry: + type: string + id: + type: string + namespace: + type: string + name: + type: string + required: + - id + - namespace + - name + - usernameRef + - passwordRef + - registry + - name: v1beta5 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + usernameRef: + type: string + passwordRef: + type: string + registry: + type: string + id: + type: string + namespace: + type: string + name: + type: string + labels: + type: object + x-kubernetes-preserve-unknown-fields: true + required: + - id + - namespace + - name + - usernameRef + - passwordRef + - registry + - name: v1beta6 + served: true + storage: false + deprecated: true + schema: + openAPIV3Schema: + type: object + properties: + spec: + type: object + properties: + usernameRef: + type: string + passwordRef: + type: string + registry: + type: string + id: + type: string + namespace: + type: string + name: + type: string + labels: + type: object + x-kubernetes-preserve-unknown-fields: true + annotations: + type: object + x-kubernetes-preserve-unknown-fields: true + required: + - id + - namespace + - name + - usernameRef + - passwordRef + - registry - name: v1beta7 served: true storage: false