Skip to content

Commit

Permalink
make openshift/api tolerate cluster-config-operator behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Mar 25, 2024
1 parent d5e05a1 commit 03d0bfc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion payload-command/render/render.go
Expand Up @@ -39,7 +39,7 @@ func (o *RenderOpts) Validate() error {
switch o.UnprefixedClusterProfile {
case "":
// to be disallowed soonish
case "self-managed-high-availability", "single-node-developer", "ibm-cloud-managed":
case "self-managed-high-availability", "ibm-cloud-managed":
// ok
default:
return fmt.Errorf("--cluster-profile must be one of self-managed-high-availability, single-node-developer, ibm-cloud-managed")
Expand All @@ -50,6 +50,11 @@ func (o *RenderOpts) Validate() error {

// Complete fills in missing values before command execution.
func (o *RenderOpts) Complete() error {
// TODO cluster-config-operator improperly assumes all single node clusters are this single-node-developer. apparently single node is something different.
// TODO once cluster-config-operator is fixed, this line can be removed, but big rocks first.
if o.UnprefixedClusterProfile == "single-node-developer" {
o.UnprefixedClusterProfile = "self-managed-high-availability"
}
return nil
}

Expand Down

0 comments on commit 03d0bfc

Please sign in to comment.