-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathenv-kustomization.tmpl
80 lines (75 loc) · 2.01 KB
/
env-kustomization.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# default namespace for apigee runtime
namespace: apigee
# override the hub and tag for various hybrid versions
images:
- name: gcr.io/apigee-release/hybrid/apigee-authn-authz
newName: ${HUB}/apigee-authn-authz
newTag: ${APIGEE_VERSION}
- name: gcr.io/apigee-release/hybrid/apigee-hybrid-cassandra-client
newName: ${HUB}/apigee-hybrid-cassandra-client
newTag: ${APIGEE_VERSION}
- name: gcr.io/apigee-release/hybrid/apigee-runtime
newName: ${HUB}/apigee-runtime
newTag: ${APIGEE_VERSION}
- name: gcr.io/apigee-release/hybrid/apigee-synchronizer
newName: ${HUB}/apigee-synchronizer
newTag: ${APIGEE_VERSION}
- name: gcr.io/apigee-release/hybrid/apigee-udca
newName: ${HUB}/apigee-udca
newTag: ${APIGEE_VERSION}
- name: gcr.io/apigee-release/hybrid/apigee-mart-server
newName: ${HUB}/apigee-mart-server
newTag: ${APIGEE_VERSION}
- name: gcr.io/apigee-release/hybrid/apigee-stackdriver-logging-agent
newName: ${HUB}/apigee-stackdriver-logging-agent
newTag: 1.8.9
resources:
- ../../../../base/environment
components:
- node-selector
- secrets
- workload-identity
#- runtime-replicas
#- google-service-accounts
patches:
- path: env.yaml
target:
group: apigee.cloud.google.com
kind: ApigeeEnvironment
name: .*
version: v1alpha2
- patch: |-
- op: replace
path: /metadata/name
value: ${ENV}
target:
group: apigee.cloud.google.com
kind: ApigeeEnvironment
name: .*
version: v1alpha2
- patch: |-
- op: replace
path: /metadata/name
value: apigee-synchronizer-${ENV}-sa
target:
kind: ServiceAccount
name: apigee-synchronizer-env-sa
version: v1
- patch: |-
- op: replace
path: /metadata/name
value: apigee-runtime-${ENV}-sa
target:
kind: ServiceAccount
name: apigee-runtime-env-sa
version: v1
- patch: |-
- op: replace
path: /metadata/name
value: apigee-udca-${ENV}-sa
target:
kind: ServiceAccount
name: apigee-udca-env-sa
version: v1