Skip to content

Commit d314406

Browse files
authored
Merge pull request #1190 from apricote/bastion-mutability
🏃 Explain mutability of bastion configuration in CRD
2 parents 5d7d0a3 + 47fbf53 commit d314406

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed

api/v1alpha3/openstackcluster_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ type OpenStackClusterSpec struct {
107107
ControlPlaneAvailabilityZones []string `json:"controlPlaneAvailabilityZones,omitempty"`
108108

109109
// Bastion is the OpenStack instance to login the nodes
110+
//
111+
// As a rolling update is not ideal during a bastion host session, we
112+
// prevent changes to a running bastion configuration. Set `enabled: false` to
113+
// make changes.
110114
//+optional
111115
Bastion *Bastion `json:"bastion,omitempty"`
112116
}

api/v1alpha4/openstackcluster_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ type OpenStackClusterSpec struct {
130130
ControlPlaneAvailabilityZones []string `json:"controlPlaneAvailabilityZones,omitempty"`
131131

132132
// Bastion is the OpenStack instance to login the nodes
133+
//
134+
// As a rolling update is not ideal during a bastion host session, we
135+
// prevent changes to a running bastion configuration. Set `enabled: false` to
136+
// make changes.
133137
//+optional
134138
Bastion *Bastion `json:"bastion,omitempty"`
135139

api/v1beta1/openstackcluster_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ type OpenStackClusterSpec struct {
130130
ControlPlaneAvailabilityZones []string `json:"controlPlaneAvailabilityZones,omitempty"`
131131

132132
// Bastion is the OpenStack instance to login the nodes
133+
//
134+
// As a rolling update is not ideal during a bastion host session, we
135+
// prevent changes to a running bastion configuration. Set `enabled: false` to
136+
// make changes.
133137
//+optional
134138
Bastion *Bastion `json:"bastion,omitempty"`
135139

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ spec:
8282
APIServer will be created
8383
type: integer
8484
bastion:
85-
description: Bastion is the OpenStack instance to login the nodes
85+
description: "Bastion is the OpenStack instance to login the nodes
86+
\n As a rolling update is not ideal during a bastion host session,
87+
we prevent changes to a running bastion configuration. Set `enabled:
88+
false` to make changes."
8689
properties:
8790
availabilityZone:
8891
type: string
@@ -1106,7 +1109,10 @@ spec:
11061109
APIServer will be created
11071110
type: integer
11081111
bastion:
1109-
description: Bastion is the OpenStack instance to login the nodes
1112+
description: "Bastion is the OpenStack instance to login the nodes
1113+
\n As a rolling update is not ideal during a bastion host session,
1114+
we prevent changes to a running bastion configuration. Set `enabled:
1115+
false` to make changes."
11101116
properties:
11111117
availabilityZone:
11121118
type: string
@@ -2510,7 +2516,10 @@ spec:
25102516
APIServer will be created
25112517
type: integer
25122518
bastion:
2513-
description: Bastion is the OpenStack instance to login the nodes
2519+
description: "Bastion is the OpenStack instance to login the nodes
2520+
\n As a rolling update is not ideal during a bastion host session,
2521+
we prevent changes to a running bastion configuration. Set `enabled:
2522+
false` to make changes."
25142523
properties:
25152524
availabilityZone:
25162525
type: string

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ spec:
8787
on the APIServer will be created
8888
type: integer
8989
bastion:
90-
description: Bastion is the OpenStack instance to login the
91-
nodes
90+
description: "Bastion is the OpenStack instance to login the
91+
nodes \n As a rolling update is not ideal during a bastion
92+
host session, we prevent changes to a running bastion configuration.
93+
Set `enabled: false` to make changes."
9294
properties:
9395
availabilityZone:
9496
type: string
@@ -775,8 +777,10 @@ spec:
775777
on the APIServer will be created
776778
type: integer
777779
bastion:
778-
description: Bastion is the OpenStack instance to login the
779-
nodes
780+
description: "Bastion is the OpenStack instance to login the
781+
nodes \n As a rolling update is not ideal during a bastion
782+
host session, we prevent changes to a running bastion configuration.
783+
Set `enabled: false` to make changes."
780784
properties:
781785
availabilityZone:
782786
type: string

0 commit comments

Comments
 (0)