Skip to content

Commit 0278ce2

Browse files
authored
fix: dns service ips are automatically inflected by kamaji (#162)
* fix(api): dns service ips are automatically inflected by kamaji Signed-off-by: Dario Tranchitella <[email protected]> * chore(manifest): dns service ips are automatically inflected by kamaji Signed-off-by: Dario Tranchitella <[email protected]> * chore(release): dns service ips are automatically inflected by kamaji Signed-off-by: Dario Tranchitella <[email protected]> --------- Signed-off-by: Dario Tranchitella <[email protected]>
1 parent a0c5d3f commit 0278ce2

4 files changed

+14
-14
lines changed

api/v1alpha1/kamajicontrolplane_types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ type AddonsSpec struct {
6969

7070
type CoreDNSAddonSpec struct {
7171
*kamajiv1alpha1.AddonSpec `json:",inline"`
72-
// +kubebuilder:default={"10.96.0.10"}
73-
// +kubebuilder:validation:MinItems=1
72+
// DNSServiceIPs contains the CoreDNS Service IPs.
73+
// When set to an empty slice, Kamaji will automatically inflect it from the Service CIDR.
7474
DNSServiceIPs []string `json:"dnsServiceIPs,omitempty"`
7575
}
7676

config/control-plane-components.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ spec:
8686
The registry and the tag are configurable, the image is hard-coded to `coredns`.
8787
properties:
8888
dnsServiceIPs:
89-
default:
90-
- 10.96.0.10
89+
description: |-
90+
DNSServiceIPs contains the CoreDNS Service IPs.
91+
When set to an empty slice, Kamaji will automatically inflect it from the Service CIDR.
9192
items:
9293
type: string
93-
minItems: 1
9494
type: array
9595
imageRepository:
9696
description: |-
@@ -6746,11 +6746,11 @@ spec:
67466746
The registry and the tag are configurable, the image is hard-coded to `coredns`.
67476747
properties:
67486748
dnsServiceIPs:
6749-
default:
6750-
- 10.96.0.10
6749+
description: |-
6750+
DNSServiceIPs contains the CoreDNS Service IPs.
6751+
When set to an empty slice, Kamaji will automatically inflect it from the Service CIDR.
67516752
items:
67526753
type: string
6753-
minItems: 1
67546754
type: array
67556755
imageRepository:
67566756
description: |-

config/crd/bases/controlplane.cluster.x-k8s.io_kamajicontrolplanes.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ spec:
7272
The registry and the tag are configurable, the image is hard-coded to `coredns`.
7373
properties:
7474
dnsServiceIPs:
75-
default:
76-
- 10.96.0.10
75+
description: |-
76+
DNSServiceIPs contains the CoreDNS Service IPs.
77+
When set to an empty slice, Kamaji will automatically inflect it from the Service CIDR.
7778
items:
7879
type: string
79-
minItems: 1
8080
type: array
8181
imageRepository:
8282
description: |-

config/crd/bases/controlplane.cluster.x-k8s.io_kamajicontrolplanetemplates.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ spec:
8686
The registry and the tag are configurable, the image is hard-coded to `coredns`.
8787
properties:
8888
dnsServiceIPs:
89-
default:
90-
- 10.96.0.10
89+
description: |-
90+
DNSServiceIPs contains the CoreDNS Service IPs.
91+
When set to an empty slice, Kamaji will automatically inflect it from the Service CIDR.
9192
items:
9293
type: string
93-
minItems: 1
9494
type: array
9595
imageRepository:
9696
description: |-

0 commit comments

Comments
 (0)