Update SecretTemplate API comments with new behaviour.

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
joshvanl 2022-01-13 17:41:57 +00:00
parent 7a4be1edfd
commit 86ae0545d2
5 changed files with 16 additions and 52 deletions

View File

@ -123,18 +123,10 @@ type CertificateSpec struct {
// denoted issuer.
SecretName string
// SecretTemplate defines annotations and labels to be propagated to the
// Kubernetes Secret when it is created or updated. Once created, labels and
// annotations are not yet removed from the Secret when they are removed from
// the template unless the
// 'ExperimentalSecretApplySecretTemplateControllerMinKubernetesVTODO'
// feature gate is enabled.
// See:
// - https://github.com/jetstack/cert-manager/issues/4292
// - https://github.com/jetstack/cert-manager/pull/4638
// - TODO: website link
// +optional
SecretTemplate *CertificateSecretTemplate `json:"secretTemplate,omitempty"`
// SecretTemplate defines annotations and labels to be copied to the
// Certificate's Secret. Labels and annotations on the Secret will be changed
// as they appear on the SecretTemplate.
SecretTemplate *CertificateSecretTemplate
// Keystores configures additional keystore output formats stored in the
// `secretName` Secret resource.

View File

@ -135,16 +135,9 @@ type CertificateSpec struct {
// denoted issuer.
SecretName string `json:"secretName"`
// SecretTemplate defines annotations and labels to be propagated to the
// Kubernetes Secret when it is created or updated. Once created, labels and
// annotations are not yet removed from the Secret when they are removed from
// the template unless the
// 'ExperimentalSecretApplySecretTemplateControllerMinKubernetesVTODO'
// feature gate is enabled.
// See:
// - https://github.com/jetstack/cert-manager/issues/4292
// - https://github.com/jetstack/cert-manager/pull/4638
// - TODO: website link
// SecretTemplate defines annotations and labels to be copied to the
// Certificate's Secret. Labels and annotations on the Secret will be changed
// as they appear on the SecretTemplate.
// +optional
SecretTemplate *CertificateSecretTemplate `json:"secretTemplate,omitempty"`

View File

@ -133,16 +133,9 @@ type CertificateSpec struct {
// denoted issuer.
SecretName string `json:"secretName"`
// SecretTemplate defines annotations and labels to be propagated to the
// Kubernetes Secret when it is created or updated. Once created, labels and
// annotations are not yet removed from the Secret when they are removed from
// the template unless the
// 'ExperimentalSecretApplySecretTemplateControllerMinKubernetesVTODO'
// feature gate is enabled.
// See:
// - https://github.com/jetstack/cert-manager/issues/4292
// - https://github.com/jetstack/cert-manager/pull/4638
// - TODO: website link
// SecretTemplate defines annotations and labels to be copied to the
// Certificate's Secret. Labels and annotations on the Secret will be changed
// as they appear on the SecretTemplate.
// +optional
SecretTemplate *CertificateSecretTemplate `json:"secretTemplate,omitempty"`

View File

@ -134,16 +134,9 @@ type CertificateSpec struct {
// denoted issuer.
SecretName string `json:"secretName"`
// SecretTemplate defines annotations and labels to be propagated to the
// Kubernetes Secret when it is created or updated. Once created, labels and
// annotations are not yet removed from the Secret when they are removed from
// the template unless the
// 'ExperimentalSecretApplySecretTemplateControllerMinKubernetesVTODO'
// feature gate is enabled.
// See:
// - https://github.com/jetstack/cert-manager/issues/4292
// - https://github.com/jetstack/cert-manager/pull/4638
// - TODO: website link
// SecretTemplate defines annotations and labels to be copied to the
// Certificate's Secret. Labels and annotations on the Secret will be changed
// as they appear on the SecretTemplate.
// +optional
SecretTemplate *CertificateSecretTemplate `json:"secretTemplate,omitempty"`

View File

@ -138,16 +138,9 @@ type CertificateSpec struct {
// denoted issuer.
SecretName string `json:"secretName"`
// SecretTemplate defines annotations and labels to be propagated to the
// Kubernetes Secret when it is created or updated. Once created, labels and
// annotations are not yet removed from the Secret when they are removed from
// the template unless the
// 'ExperimentalSecretApplySecretTemplateControllerMinKubernetesVTODO'
// feature gate is enabled.
// See:
// - https://github.com/jetstack/cert-manager/issues/4292
// - https://github.com/jetstack/cert-manager/pull/4638
// - TODO: website link
// SecretTemplate defines annotations and labels to be copied to the
// Certificate's Secret. Labels and annotations on the Secret will be changed
// as they appear on the SecretTemplate.
// +optional
SecretTemplate *CertificateSecretTemplate `json:"secretTemplate,omitempty"`