You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/crds/manifests/dns.openmcp.cloud_dnsserviceconfigs.yaml
+52-41Lines changed: 52 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -59,8 +59,14 @@ spec:
59
59
If not set, the global HelmReleaseReconciliationInterval is used.
60
60
type: string
61
61
helmValues:
62
-
description: HelmValues are the helm values to deploy external-dns
63
-
with, if the purpose selector matches.
62
+
description: |-
63
+
HelmValues are the helm values to deploy external-dns with, if the purpose selector matches.
64
+
There are a few special strings which will be replaced before creating the HelmRelease:
65
+
- <provider.name> will be replaced with the provider name resource.
66
+
- <provider.namespace> will be replaced with the namespace that hosts the platform service.
67
+
- <environment> will be replaced with the environment name of the operator.
68
+
- <cluster.name> will be replaced with the name of the reconciled Cluster.
69
+
- <cluster.namespace> will be replaced with the namespace of the reconciled Cluster.
64
70
type: string
65
71
name:
66
72
description: |-
@@ -100,45 +106,6 @@ spec:
100
106
When using a source that needs a version (helm or oci), append the version to the chart name using '@', e.g. '[email protected]' or omit for latest version.
101
107
minLength: 1
102
108
type: string
103
-
copyAuthSecret:
104
-
description: |-
105
-
SecretCopy defines the name of the secret to copy and the name of the copied secret.
106
-
If target is nil or target.name is empty, the secret will be copied with the same name as the source secret.
107
-
properties:
108
-
source:
109
-
description: LocalObjectReference is a reference to an object
110
-
in the same namespace as the resource referencing it.
111
-
properties:
112
-
name:
113
-
default: ""
114
-
description: |-
115
-
Name of the referent.
116
-
This field is effectively required, but due to backwards compatibility is
117
-
allowed to be empty. Instances of this type with an empty value here are
118
-
almost certainly wrong.
119
-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
120
-
type: string
121
-
type: object
122
-
x-kubernetes-map-type: atomic
123
-
target:
124
-
description: LocalObjectReference is a reference to an object
125
-
in the same namespace as the resource referencing it.
126
-
properties:
127
-
name:
128
-
default: ""
129
-
description: |-
130
-
Name of the referent.
131
-
This field is effectively required, but due to backwards compatibility is
132
-
allowed to be empty. Instances of this type with an empty value here are
133
-
almost certainly wrong.
134
-
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
135
-
type: string
136
-
type: object
137
-
x-kubernetes-map-type: atomic
138
-
required:
139
-
- source
140
-
- target
141
-
type: object
142
109
git:
143
110
description: |-
144
111
GitRepositorySpec specifies the required configuration to produce an
@@ -670,6 +637,50 @@ spec:
670
637
The value can be overwritten for specific purposes using ExternalDNSForPurposes.
671
638
If not set, a default of 1h is used.
672
639
type: string
640
+
secretsToCopy:
641
+
description: |-
642
+
SecretsToCopy specifies an optional list of secrets which will be copied from the provider namespace into the namespaces of the reconciled Clusters.
643
+
This can, for example, be used to distribute credentials for the registry holding the external-dns helm chart.
644
+
items:
645
+
description: |-
646
+
SecretCopy defines the name of the secret to copy and the name of the copied secret.
647
+
If target is nil or target.name is empty, the secret will be copied with the same name as the source secret.
648
+
properties:
649
+
source:
650
+
description: LocalObjectReference is a reference to an object
651
+
in the same namespace as the resource referencing it.
652
+
properties:
653
+
name:
654
+
default: ""
655
+
description: |-
656
+
Name of the referent.
657
+
This field is effectively required, but due to backwards compatibility is
658
+
allowed to be empty. Instances of this type with an empty value here are
659
+
almost certainly wrong.
660
+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
661
+
type: string
662
+
type: object
663
+
x-kubernetes-map-type: atomic
664
+
target:
665
+
description: LocalObjectReference is a reference to an object
666
+
in the same namespace as the resource referencing it.
667
+
properties:
668
+
name:
669
+
default: ""
670
+
description: |-
671
+
Name of the referent.
672
+
This field is effectively required, but due to backwards compatibility is
673
+
allowed to be empty. Instances of this type with an empty value here are
674
+
almost certainly wrong.
675
+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
// SecretsToCopy specifies an optional list of secrets which will be copied from the provider namespace into the namespaces of the reconciled Clusters.
20
+
// This can, for example, be used to distribute credentials for the registry holding the external-dns helm chart.
// HelmReleaseReconciliationInterval is the interval at which the HelmRelease for external-dns is reconciled.
20
25
// The value can be overwritten for specific purposes using ExternalDNSForPurposes.
21
26
// If not set, a default of 1h is used.
@@ -38,11 +43,10 @@ type ExternalDNSSource struct {
38
43
// Depending on the source, this can also be a relative path within the repository.
39
44
// When using a source that needs a version (helm or oci), append the version to the chart name using '@', e.g. '[email protected]' or omit for latest version.
rr.ReconcileError=errutils.WithReason(fmt.Errorf("target secret '%s/%s' already exists and is not managed by %s controller", target.Namespace, target.Name, ControllerName), clusterconst.ReasonConfigurationProblem)
358
-
returnrr
365
+
rr.ReconcileError=errutils.WithReason(fmt.Errorf("target secret '%s/%s' (index: %d) already exists and is not managed by %s controller", target.Namespace, target.Name, i, ControllerName), clusterconst.ReasonConfigurationProblem)
366
+
returnrr, copied
359
367
}
360
368
}
361
369
}
362
-
log.Debug("Creating or updating target secret", "targetNamespace", target.Namespace, "targetName", target.Name)
// undeployAuthSecret removes all secrets from the Cluster namespace where the labels indicate they were created by this controller for the given Cluster.
692
+
// uncopySecrets removes all secrets from the Cluster namespace where the labels indicate they were created by this controller for the given Cluster.
0 commit comments