Skip to content

Commit

Permalink
test: adjust templates for v1.9 to allow setting controlPlane port
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Jul 19, 2024
1 parent 021f855 commit a37eea9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
valueFrom:
template: |
host: '{{ .controlPlaneIpAddr }}'
port: 6443
port: {{ .controlPlanePort }}
- op: add
path: /spec/template/spec/identityRef
valueFrom:
Expand Down Expand Up @@ -223,6 +223,13 @@ spec:
openAPIV3Schema:
description: Floating VIP for the control plane.
type: string
- metadata: {}
name: controlPlanePort
required: true
schema:
openAPIV3Schema:
description: Port for the control plane endpoint.
type: integer
- name: credsSecretName
required: true
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ resources:
patchesStrategicMerge:
- ../commons/cluster-resource-set-label.yaml
- ../commons/cluster-network-CIDR.yaml
- ../commons/cluster-resource-set-csi-insecure.yaml
- ../commons/cluster-resource-set-csi-insecure.yaml
patches:
- target:
kind: Cluster
path: workload-control-plane-port.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- op: add
path: /spec/topology/variables/-
value:
name: controlPlanePort
value: ${CONTROL_PLANE_ENDPOINT_PORT:=6443}

0 comments on commit a37eea9

Please sign in to comment.