File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,35 @@ struct ClusterImageRegistry {
3
3
// This is just to show that an optional feature can be enabled or not
4
4
State ClusterImageRegistryState
5
5
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 {
6
17
ControlPlaneIdentity AzureControlPlaneManagedIdentity
7
-
8
18
DataPlaneIdentity AzureDataPlaneManagedIdentity
9
19
}
10
20
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
+ }
11
35
12
36
enum ClusterImageRegistryState {
13
37
@json(name = "enabled")
You can’t perform that action at this time.
0 commit comments