Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACM-13136] Updated IBIO component to GA status #889

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions api/v1/multiclusterengine_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,22 @@ import (
)

const (
AssistedService = "assisted-service"
ClusterLifecycle = "cluster-lifecycle"
ClusterManager = "cluster-manager"
ClusterProxyAddon = "cluster-proxy-addon"
ConsoleMCE = "console-mce"
Discovery = "discovery"
Hive = "hive"
HyperShift = "hypershift"
HypershiftLocalHosting = "hypershift-local-hosting"
HyperShiftPreview = "hypershift-preview"
LocalCluster = "local-cluster"
ManagedServiceAccount = "managedserviceaccount"
ManagedServiceAccountPreview = "managedserviceaccount-preview"
ServerFoundation = "server-foundation"
ImageBasedInstallOperator = "image-based-install-operator-preview"
AssistedService = "assisted-service"
ClusterLifecycle = "cluster-lifecycle"
ClusterManager = "cluster-manager"
ClusterProxyAddon = "cluster-proxy-addon"
ConsoleMCE = "console-mce"
Discovery = "discovery"
Hive = "hive"
HyperShift = "hypershift"
HypershiftLocalHosting = "hypershift-local-hosting"
HyperShiftPreview = "hypershift-preview"
LocalCluster = "local-cluster"
ManagedServiceAccount = "managedserviceaccount"
ManagedServiceAccountPreview = "managedserviceaccount-preview"
ServerFoundation = "server-foundation"
ImageBasedInstallOperator = "image-based-install-operator"
ImageBasedInstallOperatorPreview = "image-based-install-operator-preview"
)

var allComponents = []string{
Expand All @@ -56,6 +57,7 @@ var allComponents = []string{
ManagedServiceAccountPreview,
ServerFoundation,
ImageBasedInstallOperator,
ImageBasedInstallOperatorPreview,
}

// MCEComponents is a slice containing component names specific to the "MCE" category.
Expand Down
9 changes: 7 additions & 2 deletions controllers/backplaneconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ func (r *MultiClusterEngineReconciler) setDefaults(ctx context.Context, m *backp
updateNecessary = true
}

// hyper-shift preview component upgraded in 2.8.0
// hypershift preview component upgraded in ACM 2.8.0
if m.Prune(backplanev1.HyperShiftPreview) {
updateNecessary = true
}
Expand All @@ -1424,11 +1424,16 @@ func (r *MultiClusterEngineReconciler) setDefaults(ctx context.Context, m *backp
updateNecessary = true
}

// managedserviceaccount preview component upgraded in 2.9.0
// managedserviceaccount preview component upgraded in ACM 2.9.0
if m.Prune(backplanev1.ManagedServiceAccountPreview) {
updateNecessary = true
}

// image based install operator preview component upgraded in ACM 2.12.0
if m.Prune(backplanev1.ImageBasedInstallOperatorPreview) {
updateNecessary = true
}

if utils.DeduplicateComponents(m) {
updateNecessary = true
}
Expand Down
5 changes: 2 additions & 3 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,12 @@ var onComponents = []string{
backplanev1.LocalCluster,
backplanev1.HypershiftLocalHosting,
backplanev1.HyperShift,
backplanev1.ImageBasedInstallOperator,
backplanev1.ManagedServiceAccount,
// backplanev1.ConsoleMCE, // determined by OCP version
}

var offComponents = []string{
backplanev1.ImageBasedInstallOperator,
}
var offComponents = []string{}

// SetDefaultComponents returns true if changes are made
func SetDefaultComponents(m *backplanev1.MultiClusterEngine) bool {
Expand Down
Loading