allow annotations and honor gc
This commit is contained in:
		@@ -32,22 +32,22 @@ annotations:
 | 
			
		||||
      url: https://github.com/Lerentis/bitwarden-crd-operator
 | 
			
		||||
  artifacthub.io/crds: |
 | 
			
		||||
    - kind: BitwardenSecret
 | 
			
		||||
      version: v1beta5
 | 
			
		||||
      version: v1beta6
 | 
			
		||||
      name: bitwarden-secret
 | 
			
		||||
      displayName: Bitwarden Secret
 | 
			
		||||
      description: Management Object to create secrets from bitwarden
 | 
			
		||||
    - kind: RegistryCredential
 | 
			
		||||
      version: v1beta5
 | 
			
		||||
      version: v1beta6
 | 
			
		||||
      name: registry-credential
 | 
			
		||||
      displayName: Regestry Credentials
 | 
			
		||||
      description: Management Object to create regestry secrets from bitwarden
 | 
			
		||||
    - kind: BitwardenTemplate
 | 
			
		||||
      version: v1beta5
 | 
			
		||||
      version: v1beta6
 | 
			
		||||
      name: bitwarden-template
 | 
			
		||||
      displayName: Bitwarden Template
 | 
			
		||||
      description: Management Object to create secrets from a jinja template with a bitwarden lookup
 | 
			
		||||
  artifacthub.io/crdsExamples: |
 | 
			
		||||
    - apiVersion: lerentis.uploadfilter24.eu/v1beta5
 | 
			
		||||
    - apiVersion: lerentis.uploadfilter24.eu/v1beta6
 | 
			
		||||
      kind: BitwardenSecret
 | 
			
		||||
      metadata:
 | 
			
		||||
        name: test
 | 
			
		||||
@@ -64,7 +64,9 @@ annotations:
 | 
			
		||||
        namespace: "default"
 | 
			
		||||
        labels:
 | 
			
		||||
          key: value
 | 
			
		||||
    - apiVersion: lerentis.uploadfilter24.eu/v1beta5
 | 
			
		||||
        annotations:
 | 
			
		||||
          key: value
 | 
			
		||||
    - apiVersion: lerentis.uploadfilter24.eu/v1beta6
 | 
			
		||||
      kind: RegistryCredential
 | 
			
		||||
      metadata:
 | 
			
		||||
        name: test
 | 
			
		||||
@@ -77,7 +79,9 @@ annotations:
 | 
			
		||||
        namespace: "default"
 | 
			
		||||
        labels:
 | 
			
		||||
          key: value
 | 
			
		||||
    - apiVersion: "lerentis.uploadfilter24.eu/v1beta5"
 | 
			
		||||
        annotations:
 | 
			
		||||
          key: value
 | 
			
		||||
    - apiVersion: "lerentis.uploadfilter24.eu/v1beta6"
 | 
			
		||||
      kind: BitwardenTemplate
 | 
			
		||||
      metadata:
 | 
			
		||||
        name: test
 | 
			
		||||
@@ -87,6 +91,8 @@ annotations:
 | 
			
		||||
        namespace: "default"
 | 
			
		||||
        labels:
 | 
			
		||||
          key: value
 | 
			
		||||
        annotations:
 | 
			
		||||
          key: value
 | 
			
		||||
        template: |
 | 
			
		||||
          ---
 | 
			
		||||
          api:
 | 
			
		||||
@@ -116,7 +122,7 @@ annotations:
 | 
			
		||||
    - kind: added
 | 
			
		||||
      description: "Allow custom annotations to generated secrets"
 | 
			
		||||
    - kind: added
 | 
			
		||||
      description: "Set ownership of generated secrets"
 | 
			
		||||
      description: "Set ownership of generated secrets if CRD is in the same namespace"
 | 
			
		||||
  artifacthub.io/images: |
 | 
			
		||||
    - name: bitwarden-crd-operator
 | 
			
		||||
      image: ghcr.io/lerentis/bitwarden-crd-operator:0.11.0
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,8 @@ spec:
 | 
			
		||||
                - name
 | 
			
		||||
    - name: v1beta5
 | 
			
		||||
      served: true
 | 
			
		||||
      storage: true
 | 
			
		||||
      storage: false
 | 
			
		||||
      deprecated: true
 | 
			
		||||
      schema:
 | 
			
		||||
        openAPIV3Schema:
 | 
			
		||||
          type: object
 | 
			
		||||
@@ -89,3 +90,45 @@ spec:
 | 
			
		||||
                - id
 | 
			
		||||
                - namespace
 | 
			
		||||
                - name
 | 
			
		||||
    - name: v1beta6
 | 
			
		||||
      served: true
 | 
			
		||||
      storage: 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
 | 
			
		||||
@@ -39,7 +39,8 @@ spec:
 | 
			
		||||
                - name
 | 
			
		||||
    - name: v1beta5
 | 
			
		||||
      served: true
 | 
			
		||||
      storage: true
 | 
			
		||||
      storage: false
 | 
			
		||||
      deprecated: true
 | 
			
		||||
      schema:
 | 
			
		||||
        openAPIV3Schema:
 | 
			
		||||
          type: object
 | 
			
		||||
@@ -63,3 +64,32 @@ spec:
 | 
			
		||||
                - template
 | 
			
		||||
                - namespace
 | 
			
		||||
                - name
 | 
			
		||||
    - name: v1beta6
 | 
			
		||||
      served: true
 | 
			
		||||
      storage: 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
 | 
			
		||||
 
 | 
			
		||||
@@ -45,7 +45,8 @@ spec:
 | 
			
		||||
                - registry
 | 
			
		||||
    - name: v1beta5
 | 
			
		||||
      served: true
 | 
			
		||||
      storage: true
 | 
			
		||||
      storage: false
 | 
			
		||||
      deprecated: true
 | 
			
		||||
      schema:
 | 
			
		||||
        openAPIV3Schema:
 | 
			
		||||
          type: object
 | 
			
		||||
@@ -75,3 +76,38 @@ spec:
 | 
			
		||||
                - usernameRef
 | 
			
		||||
                - passwordRef
 | 
			
		||||
                - registry
 | 
			
		||||
    - name: v1beta6
 | 
			
		||||
      served: true
 | 
			
		||||
      storage: 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
 | 
			
		||||
 
 | 
			
		||||
@@ -8,6 +8,8 @@ spec:
 | 
			
		||||
  {{- if not .Values.autoscaling.enabled }}
 | 
			
		||||
  replicas: {{ .Values.replicaCount }}
 | 
			
		||||
  {{- end }}
 | 
			
		||||
  strategy: 
 | 
			
		||||
    type: {{ .Values.deploymentStrategy }}
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      {{- include "bitwarden-crd-operator.selectorLabels" . | nindent 6 }}
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,8 @@ imagePullSecrets: []
 | 
			
		||||
nameOverride: ""
 | 
			
		||||
fullnameOverride: ""
 | 
			
		||||
 | 
			
		||||
deploymentStrategy: "Recreate"
 | 
			
		||||
 | 
			
		||||
# env:
 | 
			
		||||
#   - name: BW_FORCE_SYNC
 | 
			
		||||
#     value: "false"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user