File tree Expand file tree Collapse file tree 10 files changed +172
-9
lines changed Expand file tree Collapse file tree 10 files changed +172
-9
lines changed Original file line number Diff line number Diff line change @@ -1589,7 +1589,7 @@ Resources:
1589
1589
DeploymentControllerRole :
1590
1590
Type : AWS::IAM::Role
1591
1591
Properties :
1592
- RoleName : " {{.Cluster.LocalID}}-deployment-service-controller "
1592
+ RoleName : " {{.Cluster.ConfigItems.deployment_service_controller_role_name}} "
1593
1593
AssumeRolePolicyDocument : !Sub
1594
1594
- |
1595
1595
{
@@ -1654,11 +1654,11 @@ Resources:
1654
1654
- ' sts:AssumeRole'
1655
1655
Effect : Allow
1656
1656
Resource :
1657
- - !Sub " arn:aws:iam::${AWS::AccountId}:role/{{.Cluster.LocalID}}-deployment-service-deployment "
1657
+ - !Sub " arn:aws:iam::${AWS::AccountId}:role/{{.Cluster.ConfigItems.deployment_service_deployment_role_name}} "
1658
1658
DeploymentControllerDeploymentRole :
1659
1659
Type : AWS::IAM::Role
1660
1660
Properties :
1661
- RoleName : " {{.Cluster.LocalID}}-deployment-service-deployment "
1661
+ RoleName : " {{.Cluster.ConfigItems.deployment_service_deployment_role_name}} "
1662
1662
AssumeRolePolicyDocument :
1663
1663
Version : " 2012-10-17"
1664
1664
Statement :
@@ -1692,7 +1692,7 @@ Resources:
1692
1692
DeploymentStatusServiceRole :
1693
1693
Type : AWS::IAM::Role
1694
1694
Properties :
1695
- RoleName : " {{.Cluster.LocalID}}-deployment-service-status-service "
1695
+ RoleName : " {{.Cluster.ConfigItems.deployment_service_status_service_role_name}} "
1696
1696
AssumeRolePolicyDocument : !Sub
1697
1697
- |
1698
1698
{
Original file line number Diff line number Diff line change @@ -1040,6 +1040,9 @@ deployment_service_tokeninfo_url: ""
1040
1040
deployment_service_lightstep_token : " "
1041
1041
deployment_service_ml_experiments_enabled : " true"
1042
1042
deployment_service_ml_experiments_role_name : " {{ .Cluster.LocalID }}-deployment-service-ml-experiment-deployment"
1043
+ deployment_service_controller_role_name : " {{ .Cluster.LocalID }}-deployment-service-controller"
1044
+ deployment_service_deployment_role_name : " {{ .Cluster.LocalID }}-deployment-service-deployment"
1045
+ deployment_service_status_service_role_name : " {{ .Cluster.LocalID }}-deployment-service-status-service"
1043
1046
deployment_service_cf_auto_expand_enabled : " false"
1044
1047
deployment_service_cf_update_source_branch_changes : " true"
1045
1048
deployment_service_executor_cdp_permissions : " false"
@@ -1288,3 +1291,6 @@ aws_vpc_cni_network_policy_enforcing_mode: "standard"
1288
1291
# aws-load-balancer-controller resource settings
1289
1292
aws_load_balancer_controller_cpu : " 100m"
1290
1293
aws_load_balancer_controller_mem_max : " 4Gi"
1294
+
1295
+ # configure if sandbox-controller should be deployed
1296
+ sandbox_controller_enabled : " false"
Original file line number Diff line number Diff line change @@ -180,6 +180,8 @@ spec:
180
180
operator : Exists
181
181
- key : dedicated
182
182
operator : Exists
183
+ - key : " zalando.org/dedicated"
184
+ operator : Exists
183
185
- key : aws.amazon.com/spot
184
186
operator : Exists
185
187
- key : zalando.org/node-not-ready
Original file line number Diff line number Diff line change @@ -297,6 +297,11 @@ post_apply:
297
297
kind : Deployment
298
298
namespace : wiz
299
299
{{- end }}
300
+ {{ if ne .Cluster.ConfigItems.sandbox_controller_enabled "true" }}
301
+ - name : sandbox-controller
302
+ namespace : kube-system
303
+ kind : Deployment
304
+ {{ end }}
300
305
{{- if and (ne .Cluster.ConfigItems.wiz_enable_runtime_connector_broker "true") (ne .Cluster.ConfigItems.wiz_enable_runtime_connector "true") }}
301
306
- name : wiz-connector-connector
302
307
kind : Secret
Original file line number Diff line number Diff line change 19
19
s3-bucket-name : " {{ .Cluster.ConfigItems.deployment_service_bucket_name }}"
20
20
status-service-url : " https://depl-status-{{.Cluster.Alias}}.{{.Values.hosted_zone}}"
21
21
status-service-url-local : " http://deployment-status-service.ingress.cluster.local."
22
- deployment-role-arn : " arn:aws:iam::{{.Cluster.InfrastructureAccountID}}:role/{{.Cluster.LocalID}}-deployment-service-deployment "
22
+ deployment-role-arn : " arn:aws:iam::{{.Cluster.InfrastructureAccountID}}:role/{{.Cluster.ConfigItems.deployment_service_deployment_role_name}} "
23
23
{{- if eq .Cluster.ConfigItems.deployment_service_ml_experiments_enabled "true"}}
24
24
ml-experiment-deployment-role-arn : " arn:aws:iam::{{.Cluster.InfrastructureAccountID}}:role/{{ .Cluster.ConfigItems.deployment_service_ml_experiments_role_name }}"
25
25
{{- end }}
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ metadata:
8
8
component : " controller"
9
9
annotations :
10
10
{{- if eq .Cluster.Provider "zalando-eks" }}
11
- eks.amazonaws.com/role-arn : " arn:aws:iam::{{.Cluster.InfrastructureAccountID}}:role/{{.Cluster.LocalID}}-deployment-service-controller "
11
+ eks.amazonaws.com/role-arn : " arn:aws:iam::{{.Cluster.InfrastructureAccountID}}:role/{{.Cluster.ConfigItems.deployment_service_controller_role_name}} "
12
12
{{- else }}
13
- iam.amazonaws.com/role : " {{.Cluster.LocalID}}-deployment-service-controller "
13
+ iam.amazonaws.com/role : " {{.Cluster.ConfigItems.deployment_service_controller_role_name}} "
14
14
{{- end }}
15
15
---
16
16
kind : ClusterRole
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ metadata:
8
8
component : " status-service"
9
9
annotations :
10
10
{{- if eq .Cluster.Provider "zalando-eks" }}
11
- eks.amazonaws.com/role-arn : " arn:aws:iam::{{.Cluster.InfrastructureAccountID}}:role/{{.Cluster.LocalID}}-deployment-service-status-service "
11
+ eks.amazonaws.com/role-arn : " arn:aws:iam::{{.Cluster.InfrastructureAccountID}}:role/{{.Cluster.ConfigItems.deployment_service_status_service_role_name}} "
12
12
{{- else }}
13
- iam.amazonaws.com/role : " {{.Cluster.LocalID}}-deployment-service-status-service "
13
+ iam.amazonaws.com/role : " {{.Cluster.ConfigItems.deployment_service_status_service_role_name}} "
14
14
{{- end }}
15
15
---
16
16
kind : ClusterRole
Original file line number Diff line number Diff line change
1
+ {{ if eq .Cluster.ConfigItems.sandbox_controller_enabled "true" }}
2
+ apiVersion : apiextensions.k8s.io/v1
3
+ kind : CustomResourceDefinition
4
+ metadata :
5
+ name : sandboxes.zalando.org
6
+ spec :
7
+ group : zalando.org
8
+ names :
9
+ kind : Sandbox
10
+ plural : sandboxes
11
+ singular : sandbox
12
+ shortNames :
13
+ - sb
14
+ scope : Namespaced
15
+ versions :
16
+ - name : v1
17
+ served : true
18
+ storage : true
19
+ schema :
20
+ openAPIV3Schema :
21
+ type : object
22
+ properties :
23
+ spec :
24
+ type : object
25
+ required :
26
+ - testContext
27
+ - sourceHosts
28
+ - target
29
+ properties :
30
+ testContext :
31
+ type : string
32
+ sourceHosts :
33
+ type : array
34
+ items :
35
+ type : string
36
+ target :
37
+ type : string
38
+ {{ end }}
Original file line number Diff line number Diff line change
1
+ {{ if eq .Cluster.ConfigItems.sandbox_controller_enabled "true" }}
2
+
3
+ apiVersion : v1
4
+ kind : ServiceAccount
5
+ metadata :
6
+ name : sandbox-controller
7
+ namespace : kube-system
8
+ labels :
9
+ application : sandbox-controller
10
+ component : sandbox-controller
11
+ ---
12
+ apiVersion : rbac.authorization.k8s.io/v1
13
+ kind : ClusterRole
14
+ metadata :
15
+ name : sandbox-controller
16
+ labels :
17
+ application : sandbox-controller
18
+ component : sandbox-controller
19
+ rules :
20
+ - apiGroups :
21
+ - zalando.org
22
+ resources :
23
+ - sandboxes
24
+ verbs :
25
+ - get
26
+ - list
27
+ - watch
28
+ - apiGroups :
29
+ - zalando.org
30
+ resources :
31
+ - routegroups
32
+ verbs :
33
+ - list
34
+ - watch
35
+ - get
36
+ - create
37
+ - update
38
+ - patch
39
+ - delete
40
+ - apiGroups :
41
+ - networking.k8s.io
42
+ resources :
43
+ - ingresses
44
+ verbs :
45
+ - list
46
+ - watch
47
+ - get
48
+ - create
49
+ - update
50
+ - patch
51
+ - delete
52
+ ---
53
+ apiVersion : rbac.authorization.k8s.io/v1
54
+ kind : ClusterRoleBinding
55
+ metadata :
56
+ name : sandbox-controller
57
+ labels :
58
+ application : sandbox-controller
59
+ component : sandbox-controller
60
+ roleRef :
61
+ apiGroup : rbac.authorization.k8s.io
62
+ kind : ClusterRole
63
+ name : sandbox-controller
64
+ subjects :
65
+ - kind : ServiceAccount
66
+ name : sandbox-controller
67
+ namespace : kube-system
68
+ {{ end }}
Original file line number Diff line number Diff line change
1
+ # {{ $image := "container-registry.zalando.net/gwproxy/sandbox-controller:main-8" }}
2
+ # {{ $version := index (split $image ":") 1 }}
3
+
4
+ {{ if eq .Cluster.ConfigItems.sandbox_controller_enabled "true" }}
5
+ apiVersion : apps/v1
6
+ kind : Deployment
7
+ metadata :
8
+ name : sandbox-controller
9
+ namespace : kube-system
10
+ labels :
11
+ application : sandbox-controller
12
+ version : " {{ $version }}"
13
+ spec :
14
+ replicas : 1
15
+ selector :
16
+ matchLabels :
17
+ application : sandbox-controller
18
+ template :
19
+ metadata :
20
+ labels :
21
+ application : sandbox-controller
22
+ version : " {{ $version }}"
23
+ annotations :
24
+ kubernetes-log-watcher/scalyr-parser : |
25
+ [{"container": "controller", "parser": "keyValue"}]
26
+ logging/destination : " {{ .Cluster.ConfigItems.log_destination_both }}"
27
+ # no metrics exposed so far
28
+ # prometheus.io/path: /metrics
29
+ # prometheus.io/port: "7979"
30
+ # prometheus.io/scrape: "true"
31
+ spec :
32
+ priorityClassName : " {{ .Cluster.ConfigItems.system_priority_class }}"
33
+ serviceAccountName : sandbox-controller
34
+ containers :
35
+ - name : controller
36
+ image : " {{ $image }}"
37
+ resources :
38
+ limits :
39
+ cpu : 50m
40
+ memory : 0.3Gi
41
+ requests :
42
+ cpu : 50m
43
+ memory : 0.3Gi
44
+ {{ end }}
You can’t perform that action at this time.
0 commit comments