Skip to content

Commit

Permalink
Promote sdnLiveMigration featureGate to GA
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Liu <pliu@redhat.com>
  • Loading branch information
pliurh authored and martinkennelly committed Jan 31, 2024
1 parent 4a45f44 commit ca64d33
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/v1/types_feature.go
Expand Up @@ -187,7 +187,6 @@ var FeatureSets = map[FeatureSet]*FeatureGateEnabledDisabled{
with(metricsServer).
with(installAlternateInfrastructureAWS).
without(clusterAPIInstall).
with(sdnLiveMigration).
with(mixedCPUsAllocation).
with(managedBootImages).
without(disableKubeletCloudCredentialProviders).
Expand Down Expand Up @@ -215,6 +214,7 @@ var defaultFeatures = &FeatureGateEnabledDisabled{
buildCSIVolumes,
kmsv1,
vSphereControlPlaneMachineset,
sdnLiveMigration,
},
Disabled: []FeatureGateDescription{
disableKubeletCloudCredentialProviders, // We do not currently ship the correct config to use the external credentials provider.
Expand Down
17 changes: 17 additions & 0 deletions operator/v1/0000_70_cluster-network-operator_01-Default.crd.yaml
Expand Up @@ -695,6 +695,23 @@ spec:
defaults to 'true' and multicast configure is migrated.
type: boolean
type: object
mode:
description: mode indicates the mode of network migration. The
supported values are "Live", "Offline" and omitted. A "Live"
migration operation will not cause service interruption by migrating
the CNI of each node one by one. The cluster network will work
as normal during the network migration. An "Offline" migration
operation will cause service interruption. During an "Offline"
migration, two rounds of node reboots are required. The cluster
network will be malfunctioning during the network migration.
When omitted, this means no opinion and the platform is left
to choose a reasonable default which is subject to change over
time. The current default value is "Offline".
enum:
- Live
- Offline
- ""
type: string
mtu:
description: mtu contains the MTU migration configuration. Set
this to allow changing the MTU values for the default network.
Expand Down
7 changes: 4 additions & 3 deletions operator/v1/stable.network.testsuite.yaml
Expand Up @@ -255,11 +255,11 @@ tests:
ipv6:
internalMasqueradeSubnet: "abcd:eff01:2345:6789::2345:6789/20"
expectedError: "Invalid value: \"string\": each segment of an IPv6 address must be a hexadecimal number between 0 and FFFF, failed on segment 2"
- name: Should not be able to create migration mode
- name: Should be able to create migration mode
initial: |
apiVersion: operator.openshift.io/v1
kind: Network
spec:
spec:
migration:
mode: Live
expected: |
Expand All @@ -269,7 +269,8 @@ tests:
disableNetworkDiagnostics: false
logLevel: Normal
operatorLogLevel: Normal
migration: {}
migration:
mode: Live
- name: "IPsec - Empty ipsecConfig is allowed in initial state"
initial: |
apiVersion: operator.openshift.io/v1
Expand Down
1 change: 0 additions & 1 deletion operator/v1/types_network.go
Expand Up @@ -157,7 +157,6 @@ type NetworkMigration struct {
// An "Offline" migration operation will cause service interruption. During an "Offline" migration, two rounds of node reboots are required. The cluster network will be malfunctioning during the network migration.
// When omitted, this means no opinion and the platform is left to choose a reasonable default which is subject to change over time.
// The current default value is "Offline".
// +openshift:enable:FeatureSets=CustomNoUpgrade;TechPreviewNoUpgrade
// +optional
Mode NetworkMigrationMode `json:"mode"`
}
Expand Down
6 changes: 3 additions & 3 deletions payload-manifests/featuregates/featureGate-Default.yaml
Expand Up @@ -70,9 +70,6 @@
{
"name": "MixedCPUsAllocation"
},
{
"name": "NetworkLiveMigration"
},
{
"name": "NodeSwap"
},
Expand Down Expand Up @@ -132,6 +129,9 @@
{
"name": "KMSv1"
},
{
"name": "NetworkLiveMigration"
},
{
"name": "OpenShiftPodSecurityAdmission"
},
Expand Down
Expand Up @@ -72,9 +72,6 @@
{
"name": "MixedCPUsAllocation"
},
{
"name": "NetworkLiveMigration"
},
{
"name": "NodeSwap"
},
Expand Down Expand Up @@ -134,6 +131,9 @@
{
"name": "KMSv1"
},
{
"name": "NetworkLiveMigration"
},
{
"name": "OpenShiftPodSecurityAdmission"
},
Expand Down

0 comments on commit ca64d33

Please sign in to comment.