Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ caps_operator[NodeTuning]="node-tuning"
caps_operator[MachineAPI]="machine-api control-plane-machine-set cluster-autoscaler"
caps_operator[ImageRegistry]="image-registry"
caps_operator[OperatorLifecycleManager]="operator-lifecycle-manager operator-lifecycle-manager-catalog operator-lifecycle-manager-packageserver"
caps_operator[OperatorLifecycleManagerV1]="olm"
caps_operator[CloudCredential]="cloud-credential"
caps_operator[CloudControllerManager]="cloud-controller-manager"
caps_operator[Ingress]="ingress"
Expand All @@ -93,7 +94,7 @@ v414=" ${v413} MachineAPI Build DeploymentConfig ImageRegistry"
v415=" ${v414} OperatorLifecycleManager CloudCredential"
v416=" ${v415} CloudControllerManager Ingress"
v417=" ${v416}"
v418=" ${v417}"
v418=" ${v417} OperatorLifecycleManagerV1"
latest_defined="v418"
always_default="${!latest_defined}"
# always enabled capabilities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,15 @@ function get_caps_for_version_capset() {
"v4.16")
caps_string="baremetal marketplace openshift-samples Console Insights Storage CSISnapshot NodeTuning MachineAPI Build DeploymentConfig ImageRegistry OperatorLifecycleManager CloudCredential CloudControllerManager Ingress"
;;
*)
"v4.17")
caps_string="baremetal marketplace openshift-samples Console Insights Storage CSISnapshot NodeTuning MachineAPI Build DeploymentConfig ImageRegistry OperatorLifecycleManager CloudCredential CloudControllerManager Ingress"
;;
"v4.18")
caps_string="baremetal marketplace openshift-samples Console Insights Storage CSISnapshot NodeTuning MachineAPI Build DeploymentConfig ImageRegistry OperatorLifecycleManager CloudCredential CloudControllerManager Ingress OperatorLifecycleManagerV1"
;;
*)
caps_string="baremetal marketplace openshift-samples Console Insights Storage CSISnapshot NodeTuning MachineAPI Build DeploymentConfig ImageRegistry OperatorLifecycleManager CloudCredential CloudControllerManager Ingress OperatorLifecycleManagerV1"
;;
esac

echo $caps_string
Expand Down Expand Up @@ -282,6 +288,7 @@ caps_operator[OperatorLifecycleManager]="operator-lifecycle-manager operator-lif
caps_operator[CloudCredential]="cloud-credential"
caps_operator[CloudControllerManager]="cloud-controller-manager"
caps_operator[Ingress]="ingress"
caps_operator[OperatorLifecycleManagerV1]="olm"

# Mapping between optional capability and resources
# Need update when new resource marks as optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ v415=" ${v414} OperatorLifecycleManager CloudCredential"
v416=" ${v415} CloudControllerManager Ingress"
v417=" ${v416}"
# shellcheck disable=SC2034
v418=" ${v417}"
v418=" ${v417} OperatorLifecycleManagerV1"
latest_version="v418"

# define capability dependency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ v415=" ${v414} OperatorLifecycleManager CloudCredential"
v416=" ${v415} CloudControllerManager Ingress"
v417=" ${v416}"
# shellcheck disable=SC2034
v418=" ${v417}"
v418=" ${v417} OperatorLifecycleManagerV1"
latest_version="v418"

# define capability dependency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ v414=" ${v413} MachineAPI Build DeploymentConfig ImageRegistry"
v415=" ${v414} OperatorLifecycleManager CloudCredential"
v416=" ${v415} CloudControllerManager Ingress"
v417=" ${v416}"
v418=" ${v417}"
v418=" ${v417} OperatorLifecycleManagerV1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beside these two step need to be updated, the following step also need to be updated:

ipi-conf-capability-additionalcaps
ipi-conf-capability-baselinecaps-vset
cucushift-upgrade-check-capability

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ipi-conf-capability-additionalcaps
ipi-conf-capability-baselinecaps-vset

Added them.

cucushift-upgrade-check-capability

I didn't find the related config for 4.17 and 4.18 there, not sure if any specific configs, ignored them in this PR, left it to the step owner.

Copy link
Copy Markdown
Contributor

@jianlinliu jianlinliu Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latest_defined="v418"
always_default="${!latest_defined}"

Expand Down