From 9e6516884cc685cdbcbae577f80b7ed0913e2dc6 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 17 Jul 2024 12:14:14 +0000 Subject: [PATCH] Update quay.io/projectsyn/lieutenant-operator Docker tag to v1.10.0 Signed-off-by: Renovate Bot --- class/defaults.yml | 2 +- .../00_crds/syn.tools_clusters.yaml | 85 +++++++++ .../00_crds/syn.tools_gitrepos.yaml | 85 +++++++++ .../lieutenant/00_crds/syn.tools_tenants.yaml | 170 ++++++++++++++++++ .../00_crds/syn.tools_tenanttemplates.yaml | 170 ++++++++++++++++++ .../lieutenant/10_operator/deployment.yaml | 2 +- 6 files changed, 512 insertions(+), 2 deletions(-) diff --git a/class/defaults.yml b/class/defaults.yml index e1edec1..f47e966 100644 --- a/class/defaults.yml +++ b/class/defaults.yml @@ -5,7 +5,7 @@ parameters: operator: registry: quay.io repository: projectsyn/lieutenant-operator - version: '1.9.1' + version: '1.10.0' api: registry: docker.io repository: projectsyn/lieutenant-api diff --git a/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_clusters.yaml b/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_clusters.yaml index afadc4e..7535b9d 100644 --- a/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_clusters.yaml +++ b/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_clusters.yaml @@ -85,6 +85,18 @@ spec: gitRepoTemplate: description: GitRepoTemplate template for managing the GitRepo object. properties: + accessToken: + description: |- + AccessToken contains configuration for storing an access token in a secret. + If set, the Lieutenant operator will store an access token into this secret, which can be used to access the Git repository. + The token is stored under the key "token". + In the case of GitLab, this would be a Project Access Token with read-write access to the repository. + properties: + secretRef: + description: SecretRef references the secret the access token + is stored in + type: string + type: object apiSecretRef: description: APISecretRef reference to secret containing connection information @@ -99,6 +111,79 @@ spec: type: string type: object x-kubernetes-map-type: atomic + ciVariables: + description: |- + CIVariables is a list of key-value pairs that will be set as CI variables in the Git repository. + + + The variables are not expanded like PodSpec environment variables. + items: + description: EnvVar represents an environment added to the CI + system of the Git repository. + properties: + gitlabOptions: + description: GitlabOptions contains additional options for + GitLab CI variables + properties: + description: + description: Description is a description of the CI + variable. + type: string + masked: + description: Masked will mask the variable in the job + logs. + type: boolean + protected: + description: Protected will expose the variable only + in protected branches and tags. + type: boolean + raw: + description: Raw will prevent the variable from being + expanded. + type: boolean + type: object + name: + description: Name of the environment variable + type: string + value: + description: Value of the environment variable + type: string + valueFrom: + description: ValueFrom is a reference to an object that + contains the value of the environment variable + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + TODO: Add other useful fields. apiVersion, kind, uid? + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. + type: string + optional: + description: Specify whether the Secret or its key + must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + required: + - name + type: object + type: array creationPolicy: description: |- CreationPolicy defines how the external resources should be treated upon CR creation. diff --git a/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_gitrepos.yaml b/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_gitrepos.yaml index 31045d0..c829b7a 100644 --- a/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_gitrepos.yaml +++ b/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_gitrepos.yaml @@ -53,6 +53,18 @@ spec: spec: description: GitRepoSpec defines the desired state of GitRepo properties: + accessToken: + description: |- + AccessToken contains configuration for storing an access token in a secret. + If set, the Lieutenant operator will store an access token into this secret, which can be used to access the Git repository. + The token is stored under the key "token". + In the case of GitLab, this would be a Project Access Token with read-write access to the repository. + properties: + secretRef: + description: SecretRef references the secret the access token + is stored in + type: string + type: object apiSecretRef: description: APISecretRef reference to secret containing connection information @@ -67,6 +79,75 @@ spec: type: string type: object x-kubernetes-map-type: atomic + ciVariables: + description: |- + CIVariables is a list of key-value pairs that will be set as CI variables in the Git repository. + + + The variables are not expanded like PodSpec environment variables. + items: + description: EnvVar represents an environment added to the CI system + of the Git repository. + properties: + gitlabOptions: + description: GitlabOptions contains additional options for GitLab + CI variables + properties: + description: + description: Description is a description of the CI variable. + type: string + masked: + description: Masked will mask the variable in the job logs. + type: boolean + protected: + description: Protected will expose the variable only in + protected branches and tags. + type: boolean + raw: + description: Raw will prevent the variable from being expanded. + type: boolean + type: object + name: + description: Name of the environment variable + type: string + value: + description: Value of the environment variable + type: string + valueFrom: + description: ValueFrom is a reference to an object that contains + the value of the environment variable + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's namespace + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + TODO: Add other useful fields. apiVersion, kind, uid? + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + required: + - name + type: object + type: array creationPolicy: description: |- CreationPolicy defines how the external resources should be treated upon CR creation. @@ -152,6 +233,10 @@ spec: hostKeys: description: SSH HostKeys of the git server type: string + lastAppliedCIVariables: + description: LastAppliedCIVariables contains the last applied CI variables + as a json string + type: string phase: description: |- Updated by Operator with current phase. The GitPhase enum will be used for application logic diff --git a/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_tenants.yaml b/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_tenants.yaml index 0a18964..b0987b3 100644 --- a/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_tenants.yaml +++ b/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_tenants.yaml @@ -90,6 +90,18 @@ spec: description: GitRepoTemplate template for managing the GitRepo object. properties: + accessToken: + description: |- + AccessToken contains configuration for storing an access token in a secret. + If set, the Lieutenant operator will store an access token into this secret, which can be used to access the Git repository. + The token is stored under the key "token". + In the case of GitLab, this would be a Project Access Token with read-write access to the repository. + properties: + secretRef: + description: SecretRef references the secret the access + token is stored in + type: string + type: object apiSecretRef: description: APISecretRef reference to secret containing connection information @@ -104,6 +116,79 @@ spec: type: string type: object x-kubernetes-map-type: atomic + ciVariables: + description: |- + CIVariables is a list of key-value pairs that will be set as CI variables in the Git repository. + + + The variables are not expanded like PodSpec environment variables. + items: + description: EnvVar represents an environment added to the + CI system of the Git repository. + properties: + gitlabOptions: + description: GitlabOptions contains additional options + for GitLab CI variables + properties: + description: + description: Description is a description of the + CI variable. + type: string + masked: + description: Masked will mask the variable in the + job logs. + type: boolean + protected: + description: Protected will expose the variable + only in protected branches and tags. + type: boolean + raw: + description: Raw will prevent the variable from + being expanded. + type: boolean + type: object + name: + description: Name of the environment variable + type: string + value: + description: Value of the environment variable + type: string + valueFrom: + description: ValueFrom is a reference to an object that + contains the value of the environment variable + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + TODO: Add other useful fields. apiVersion, kind, uid? + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + required: + - name + type: object + type: array creationPolicy: description: |- CreationPolicy defines how the external resources should be treated upon CR creation. @@ -238,6 +323,18 @@ spec: description: GitRepoTemplate Template for managing the GitRepo object. If not set, no GitRepo object will be created. properties: + accessToken: + description: |- + AccessToken contains configuration for storing an access token in a secret. + If set, the Lieutenant operator will store an access token into this secret, which can be used to access the Git repository. + The token is stored under the key "token". + In the case of GitLab, this would be a Project Access Token with read-write access to the repository. + properties: + secretRef: + description: SecretRef references the secret the access token + is stored in + type: string + type: object apiSecretRef: description: APISecretRef reference to secret containing connection information @@ -252,6 +349,79 @@ spec: type: string type: object x-kubernetes-map-type: atomic + ciVariables: + description: |- + CIVariables is a list of key-value pairs that will be set as CI variables in the Git repository. + + + The variables are not expanded like PodSpec environment variables. + items: + description: EnvVar represents an environment added to the CI + system of the Git repository. + properties: + gitlabOptions: + description: GitlabOptions contains additional options for + GitLab CI variables + properties: + description: + description: Description is a description of the CI + variable. + type: string + masked: + description: Masked will mask the variable in the job + logs. + type: boolean + protected: + description: Protected will expose the variable only + in protected branches and tags. + type: boolean + raw: + description: Raw will prevent the variable from being + expanded. + type: boolean + type: object + name: + description: Name of the environment variable + type: string + value: + description: Value of the environment variable + type: string + valueFrom: + description: ValueFrom is a reference to an object that + contains the value of the environment variable + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + TODO: Add other useful fields. apiVersion, kind, uid? + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. + type: string + optional: + description: Specify whether the Secret or its key + must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + required: + - name + type: object + type: array creationPolicy: description: |- CreationPolicy defines how the external resources should be treated upon CR creation. diff --git a/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_tenanttemplates.yaml b/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_tenanttemplates.yaml index 8058aa4..56273db 100644 --- a/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_tenanttemplates.yaml +++ b/tests/golden/defaults/lieutenant/lieutenant/00_crds/syn.tools_tenanttemplates.yaml @@ -90,6 +90,18 @@ spec: description: GitRepoTemplate template for managing the GitRepo object. properties: + accessToken: + description: |- + AccessToken contains configuration for storing an access token in a secret. + If set, the Lieutenant operator will store an access token into this secret, which can be used to access the Git repository. + The token is stored under the key "token". + In the case of GitLab, this would be a Project Access Token with read-write access to the repository. + properties: + secretRef: + description: SecretRef references the secret the access + token is stored in + type: string + type: object apiSecretRef: description: APISecretRef reference to secret containing connection information @@ -104,6 +116,79 @@ spec: type: string type: object x-kubernetes-map-type: atomic + ciVariables: + description: |- + CIVariables is a list of key-value pairs that will be set as CI variables in the Git repository. + + + The variables are not expanded like PodSpec environment variables. + items: + description: EnvVar represents an environment added to the + CI system of the Git repository. + properties: + gitlabOptions: + description: GitlabOptions contains additional options + for GitLab CI variables + properties: + description: + description: Description is a description of the + CI variable. + type: string + masked: + description: Masked will mask the variable in the + job logs. + type: boolean + protected: + description: Protected will expose the variable + only in protected branches and tags. + type: boolean + raw: + description: Raw will prevent the variable from + being expanded. + type: boolean + type: object + name: + description: Name of the environment variable + type: string + value: + description: Value of the environment variable + type: string + valueFrom: + description: ValueFrom is a reference to an object that + contains the value of the environment variable + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + TODO: Add other useful fields. apiVersion, kind, uid? + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + required: + - name + type: object + type: array creationPolicy: description: |- CreationPolicy defines how the external resources should be treated upon CR creation. @@ -238,6 +323,18 @@ spec: description: GitRepoTemplate Template for managing the GitRepo object. If not set, no GitRepo object will be created. properties: + accessToken: + description: |- + AccessToken contains configuration for storing an access token in a secret. + If set, the Lieutenant operator will store an access token into this secret, which can be used to access the Git repository. + The token is stored under the key "token". + In the case of GitLab, this would be a Project Access Token with read-write access to the repository. + properties: + secretRef: + description: SecretRef references the secret the access token + is stored in + type: string + type: object apiSecretRef: description: APISecretRef reference to secret containing connection information @@ -252,6 +349,79 @@ spec: type: string type: object x-kubernetes-map-type: atomic + ciVariables: + description: |- + CIVariables is a list of key-value pairs that will be set as CI variables in the Git repository. + + + The variables are not expanded like PodSpec environment variables. + items: + description: EnvVar represents an environment added to the CI + system of the Git repository. + properties: + gitlabOptions: + description: GitlabOptions contains additional options for + GitLab CI variables + properties: + description: + description: Description is a description of the CI + variable. + type: string + masked: + description: Masked will mask the variable in the job + logs. + type: boolean + protected: + description: Protected will expose the variable only + in protected branches and tags. + type: boolean + raw: + description: Raw will prevent the variable from being + expanded. + type: boolean + type: object + name: + description: Name of the environment variable + type: string + value: + description: Value of the environment variable + type: string + valueFrom: + description: ValueFrom is a reference to an object that + contains the value of the environment variable + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + TODO: Add other useful fields. apiVersion, kind, uid? + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. + type: string + optional: + description: Specify whether the Secret or its key + must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + required: + - name + type: object + type: array creationPolicy: description: |- CreationPolicy defines how the external resources should be treated upon CR creation. diff --git a/tests/golden/defaults/lieutenant/lieutenant/10_operator/deployment.yaml b/tests/golden/defaults/lieutenant/lieutenant/10_operator/deployment.yaml index 2b4e9fd..81a6aa8 100644 --- a/tests/golden/defaults/lieutenant/lieutenant/10_operator/deployment.yaml +++ b/tests/golden/defaults/lieutenant/lieutenant/10_operator/deployment.yaml @@ -47,7 +47,7 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace - image: quay.io/projectsyn/lieutenant-operator:1.9.1 + image: quay.io/projectsyn/lieutenant-operator:1.10.0 livenessProbe: httpGet: path: /healthz