Skip to content

Commit

Permalink
OCM-13068 | fix: Add required flags to oprole creation for cluster ma…
Browse files Browse the repository at this point in the history
…nual mode
  • Loading branch information
hunterkepley authored and openshift-cherrypick-robot committed Dec 12, 2024
1 parent 988997d commit 59d279d
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 59d279d

Please sign in to comment.