Skip to content

Commit 2271d41

Browse files
committed
add cloud authentication mechanism to the image_registry functionality
1 parent ebf3fd4 commit 2271d41

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

model/clusters_mgmt/v1/cluster_image_registry_type.model

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,35 @@ struct ClusterImageRegistry {
33
// This is just to show that an optional feature can be enabled or not
44
State ClusterImageRegistryState
55

6+
// authentication mechanism to the underlying cloud
7+
Authentication OperatorAuthentication
8+
}
9+
10+
// A union type of cloud authentication mechanism.
11+
struct OperatorAuthentication {
12+
Aws AwsOperatorAuthentication
13+
Azure AzureOperatorAuthentication
14+
}
15+
16+
struct AzureManagedIdentity {
617
ControlPlaneIdentity AzureControlPlaneManagedIdentity
7-
818
DataPlaneIdentity AzureDataPlaneManagedIdentity
919
}
1020

21+
// cloud specific authentication mechanism can also be a union type
22+
struct AzureOperatorAuthentication {
23+
ManagedIdentity AzureManagedIdentity
24+
}
25+
26+
// cloud specific authentication mechanism can also be a union type
27+
struct AwsOperatorAuthentication {
28+
Sts AwsSts
29+
}
30+
31+
struct AwsSts {
32+
ControlPlaneIamRole String
33+
DataPlaneIamRole String
34+
}
1135

1236
enum ClusterImageRegistryState {
1337
@json(name = "enabled")

0 commit comments

Comments
 (0)