Skip to content

Commit

Permalink
Merge pull request #2721 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2719-to-release_1.2.49

[release_1.2.49] OCM-13068 | fix: Add required flags to oprole creation for cluster manual mode
  • Loading branch information
hunterkepley authored Dec 12, 2024
2 parents 988997d + 59d279d commit aeccdd4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/create/cluster/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3447,6 +3447,13 @@ func run(cmd *cobra.Command, _ []string) {
if !output.HasFlag() || r.Reporter.IsTerminal() {
r.Reporter.Infof("Preparing to create operator roles.")
}
// Set flags for HCP shared VPC if needed
if vpcEndpointRoleArn != "" && route53RoleArn != "" && isHostedCP {
operatorroles.Cmd.Flags().Set(route53RoleArnFlag, route53RoleArn)
operatorroles.Cmd.Flags().Set(vpcEndpointRoleArnFlag, vpcEndpointRoleArn)
operatorroles.Cmd.Flags().Set(operatorroles.HostedCpFlag, strconv.FormatBool(isHostedCP))
operatorroles.Cmd.Flags().Set(operatorroles.OidcConfigIdFlag, oidcConfig.ID())
}
operatorroles.Cmd.Run(operatorroles.Cmd, []string{clusterName, mode, permissionsBoundary})
if !output.HasFlag() || r.Reporter.IsTerminal() {
r.Reporter.Infof("Preparing to create OIDC Provider.")
Expand Down

0 comments on commit aeccdd4

Please sign in to comment.