Skip to content

Commit c748333

Browse files
committed
remove label selector from DNSServiceConfig
The label selector is incompatible with the current implementation that loads the config on-demand during each reconciliation. We would either need to load it once during startup, which would mean that the controller needs to be restarted for changes to take effect, or we would need a more complicated setup with an own controller for the config. Since clusters can already be filtered by their purposes, there is probably no need for a label selector anyway, at least not for now.
1 parent bd4da86 commit c748333

File tree

3 files changed

+0
-58
lines changed

3 files changed

+0
-58
lines changed

api/crds/manifests/dns.openmcp.cloud_dnsserviceconfigs.yaml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -664,54 +664,6 @@ spec:
664664
The value can be overwritten for specific purposes using ExternalDNSForPurposes.
665665
If not set, a default of 1h is used.
666666
type: string
667-
selector:
668-
description: |-
669-
Selector is a label selector.
670-
If not nil, only Clusters that match the selector will be reconciled by the controller.
671-
properties:
672-
matchExpressions:
673-
description: matchExpressions is a list of label selector requirements.
674-
The requirements are ANDed.
675-
items:
676-
description: |-
677-
A label selector requirement is a selector that contains values, a key, and an operator that
678-
relates the key and values.
679-
properties:
680-
key:
681-
description: key is the label key that the selector applies
682-
to.
683-
type: string
684-
operator:
685-
description: |-
686-
operator represents a key's relationship to a set of values.
687-
Valid operators are In, NotIn, Exists and DoesNotExist.
688-
type: string
689-
values:
690-
description: |-
691-
values is an array of string values. If the operator is In or NotIn,
692-
the values array must be non-empty. If the operator is Exists or DoesNotExist,
693-
the values array must be empty. This array is replaced during a strategic
694-
merge patch.
695-
items:
696-
type: string
697-
type: array
698-
x-kubernetes-list-type: atomic
699-
required:
700-
- key
701-
- operator
702-
type: object
703-
type: array
704-
x-kubernetes-list-type: atomic
705-
matchLabels:
706-
additionalProperties:
707-
type: string
708-
description: |-
709-
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
710-
map is equivalent to an element of matchExpressions, whose key field is "key", the
711-
operator is "In", and the values array contains only "value". The requirements are ANDed.
712-
type: object
713-
type: object
714-
x-kubernetes-map-type: atomic
715667
required:
716668
- externalDNSSource
717669
type: object

api/dns/v1alpha1/config_types.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ import (
1313

1414
// DNSServiceConfigSpec defines the desired state of DNSServiceConfig
1515
type DNSServiceConfigSpec struct {
16-
// Selector is a label selector.
17-
// If not nil, only Clusters that match the selector will be reconciled by the controller.
18-
// +optional
19-
Selector *metav1.LabelSelector `json:"selector,omitempty"`
20-
2116
// ExternalDNSSource is the source of the external-dns helm chart.
2217
ExternalDNSSource ExternalDNSSource `json:"externalDNSSource"`
2318

api/dns/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)