@@ -90,6 +90,11 @@ const (
90
90
duplicateIamRoleArnErrorMsg = "ROSA IAM roles must have unique ARNs " +
91
91
"and should not be shared with other IAM roles within the same cluster. " +
92
92
"Duplicated ARN: %s"
93
+
94
+ route53RoleArnFlag = "route53-role-arn"
95
+ vpcEndpointRoleArnFlag = "vpc-endpoint-role-arn"
96
+ hcpInternalCommunicationHostedZoneIdFlag = "hcp-internal-communication-hosted-zone-id"
97
+ ingressPrivateHostedZoneIdFlag = "ingress-private-hosted-zone-id"
93
98
)
94
99
95
100
var args struct {
@@ -214,6 +219,20 @@ var args struct {
214
219
sharedVPCRoleARN string
215
220
baseDomain string
216
221
222
+ // HCP Shared VPC
223
+ vpcEndpointRoleArn string
224
+ //
225
+ //route53RoleArn string
226
+ // Route53 Role Arn is the same thing as `sharedVpcRoleArn` for now- deprecation warning will be in place
227
+ // This is the same behavior as create/operatorroles
228
+ //
229
+ hcpInternalCommunicationHostedZoneId string
230
+ //
231
+ //ingressPrivateHostedZoneId string
232
+ // Ingress Private Hosted Zone ID is the same thing as `privateHostedZoneID` for now- deprecation warning
233
+ // will be in place
234
+ //
235
+
217
236
// Worker machine pool attributes
218
237
additionalComputeSecurityGroupIds []string
219
238
@@ -820,6 +839,46 @@ func initFlags(cmd *cobra.Command) {
820
839
"in private Route 53 hosted zone associated with intended shared VPC." ,
821
840
)
822
841
842
+ flags .StringVar (
843
+ & args .vpcEndpointRoleArn ,
844
+ vpcEndpointRoleArnFlag ,
845
+ "" ,
846
+ "AWS IAM Role ARN with policy attached, associated with the shared VPC." +
847
+ " Grants permissions necessary to communicate with and handle a Hosted Control Plane cross-account VPC." )
848
+
849
+ flags .StringVar (
850
+ & args .sharedVPCRoleARN ,
851
+ route53RoleArnFlag ,
852
+ "" ,
853
+ "AWS IAM Role Arn with policy attached, associated with shared VPC." +
854
+ " Grants permission necessary to handle route53 operations associated with a cross-account VPC. " +
855
+ "This flag deprecates '--shared-vpc-role-arn'." ,
856
+ )
857
+
858
+ // Mark old sharedvpc role arn flag as deprecated for future transitioning of the flag name (both are usable for now)
859
+ flags .MarkDeprecated ("shared-vpc-role-arn" , fmt .Sprintf ("'--shared-vpc-role-arn' will be replaced with " +
860
+ "'--%s' in future versions of ROSA." , route53RoleArnFlag ))
861
+
862
+ flags .StringVar (
863
+ & args .hcpInternalCommunicationHostedZoneId ,
864
+ hcpInternalCommunicationHostedZoneIdFlag ,
865
+ "" ,
866
+ "The internal communication Route 53 hosted zone ID to be used for Hosted Control Plane cross-account " +
867
+ "VPC, e.g., 'Z05646003S02O1ENCDCSN'." ,
868
+ )
869
+
870
+ flags .StringVar (
871
+ & args .privateHostedZoneID ,
872
+ ingressPrivateHostedZoneIdFlag ,
873
+ "" ,
874
+ "ID assigned by AWS to private Route 53 hosted zone associated with intended shared VPC, " +
875
+ "e.g., 'Z05646003S02O1ENCDCSN'." ,
876
+ )
877
+
878
+ // Mark old private hosted zone id flag as deprecated for future transitioning of the flag (both are usable for now)
879
+ flags .MarkDeprecated ("private-hosted-zone-id" , fmt .Sprintf ("'--private-hosted-zone-id' will be " +
880
+ "replaced with '--%s' in future versions of ROSA." , ingressPrivateHostedZoneIdFlag ))
881
+
823
882
flags .StringVar (
824
883
& args .baseDomain ,
825
884
"base-domain" ,
0 commit comments