Skip to content

Commit 151b3fc

Browse files
committed
OCM-13124 | fix: Make route53 role arn usable for classic oproles
1 parent 7b99806 commit 151b3fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/create/operatorroles/cmd.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ func run(cmd *cobra.Command, argv []string) {
181181
var isHcpSharedVpc bool
182182
var err error
183183
if !args.hostedCp {
184-
rosa.HostedClusterOnlyFlag(r, cmd, hostedZoneRoleArnFlag)
185184
rosa.HostedClusterOnlyFlag(r, cmd, vpcEndpointRoleArnFlag)
186185
} else {
187186
isHcpSharedVpc, err = roles.ValidateSharedVpcInputs(args.vpcEndpointRoleArn, args.sharedVpcRoleArn,

pkg/rosa/helpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ func HostedClusterOnlyFlag(r *Runtime, cmd *cobra.Command, flagName string) {
1212
if cmd.Flag(hostedCpFlagName) == nil || (cmd.Flag(hostedCpFlagName) != nil && !cmd.Flag(hostedCpFlagName).Changed) {
1313
isFlagSet := cmd.Flags().Changed(flagName)
1414
if isFlagSet {
15-
r.Reporter.Errorf("Setting the `%s` flag is only supported for hosted clusters", flagName)
15+
r.Reporter.Errorf("Setting the `%s` flag is only supported for Hosted Control Plane clusters",
16+
flagName)
1617
os.Exit(1)
1718
}
1819
}

0 commit comments

Comments
 (0)