Skip to content

Commit

Permalink
Merge pull request #2179 from pliurh/live_migration
Browse files Browse the repository at this point in the history
OCPBUGS-25760: Keep the live migration annotation consistant with the enhancement doc
  • Loading branch information
openshift-merge-bot[bot] committed Jan 11, 2024
2 parents 975816e + 52947af commit 4706ccf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions pkg/controller/clusterconfig/migration_test.go
Expand Up @@ -77,7 +77,7 @@ func TestPrepareOperatorConfigForNetworkTypeMigration(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "cluster",
Annotations: map[string]string{
"network.openshift.io/live-migration": "",
names.NetworkTypeMigrationAnnotation: "",
},
},
Spec: configv1.NetworkSpec{
Expand Down Expand Up @@ -120,7 +120,7 @@ func TestPrepareOperatorConfigForNetworkTypeMigration(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "cluster",
Annotations: map[string]string{
"network.openshift.io/live-migration": "",
names.NetworkTypeMigrationAnnotation: "",
},
},
Spec: configv1.NetworkSpec{
Expand Down Expand Up @@ -173,7 +173,7 @@ func TestPrepareOperatorConfigForNetworkTypeMigration(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "cluster",
Annotations: map[string]string{
"network.openshift.io/live-migration": "",
names.NetworkTypeMigrationAnnotation: "",
},
},
Spec: configv1.NetworkSpec{
Expand Down Expand Up @@ -226,7 +226,7 @@ func TestPrepareOperatorConfigForNetworkTypeMigration(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "cluster",
Annotations: map[string]string{
"network.openshift.io/live-migration": "",
names.NetworkTypeMigrationAnnotation: "",
},
},
Spec: configv1.NetworkSpec{
Expand Down Expand Up @@ -283,7 +283,7 @@ func TestPrepareOperatorConfigForNetworkTypeMigration(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "cluster",
Annotations: map[string]string{
"network.openshift.io/live-migration": "",
names.NetworkTypeMigrationAnnotation: "",
},
},
Spec: configv1.NetworkSpec{
Expand Down Expand Up @@ -331,7 +331,7 @@ func TestPrepareOperatorConfigForNetworkTypeMigration(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "cluster",
Annotations: map[string]string{
"network.openshift.io/live-migration": "",
names.NetworkTypeMigrationAnnotation: "",
},
},
Spec: configv1.NetworkSpec{
Expand Down Expand Up @@ -375,7 +375,7 @@ func TestPrepareOperatorConfigForNetworkTypeMigration(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "cluster",
Annotations: map[string]string{
"network.openshift.io/live-migration": "",
names.NetworkTypeMigrationAnnotation: "",
},
},
Spec: configv1.NetworkSpec{
Expand Down
2 changes: 1 addition & 1 deletion pkg/names/names.go
Expand Up @@ -136,7 +136,7 @@ const ClusterNetworkOperatorJiraComponent = "Networking / cluster-network-operat

// NetworkTypeMigrationAnnotation is an annotation on the OVN networks.operator.openshift.io CR to indicate
// that executing network type live migration
const NetworkTypeMigrationAnnotation = "network.openshift.io/live-migration"
const NetworkTypeMigrationAnnotation = "network.openshift.io/network-type-migration"

// MachineConfigPoolsUpdating is the reason string NetworkTypeMigrationTargetCNIInUse and NetworkTypeMigrationMTUReady
// conditions to indicate if MCP is updating
Expand Down

0 comments on commit 4706ccf

Please sign in to comment.