-
Notifications
You must be signed in to change notification settings - Fork 20
/
skaffold.yaml
124 lines (124 loc) · 4.12 KB
/
skaffold.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
apiVersion: skaffold/v4beta7
kind: Config
metadata:
name: extension
build:
insecureRegistries:
- garden.local.gardener.cloud:5001
tagPolicy:
customTemplate:
template: "{{.version}}-{{.sha}}"
components:
- name: version
envTemplate:
template: "{{.EXTENSION_VERSION}}"
# inputDigest is used to inject a digest of the artifact source into the built image tag
# and therefore into the SKAFFOLD_IMAGE environment variable which is used when generating the corresponding ControllerDeployment
- name: sha
inputDigest: {}
artifacts:
- image: local-skaffold/gardener-extension-registry-cache
ko:
dependencies:
paths:
- cmd/gardener-extension-registry-cache
- cmd/gardener-extension-registry-cache/app
- imagevector
- imagevector/images.yaml
- pkg/apis/config
- pkg/apis/config/v1alpha1
- pkg/apis/config/validation
- pkg/apis/mirror
- pkg/apis/mirror/install
- pkg/apis/mirror/v1alpha1
- pkg/apis/registry
- pkg/apis/registry/helper
- pkg/apis/registry/install
- pkg/apis/registry/v1alpha3
- pkg/cmd
- pkg/component/registrycaches
- pkg/component/registrycaches/monitoring/dashboard.json
- pkg/component/registrycaches/templates/config.yml.tpl
- pkg/component/registrycacheservices
- pkg/constants
- pkg/controller/cache
- pkg/controller/mirror
- pkg/secrets
- pkg/utils/registry
- pkg/webhook/cache
- pkg/webhook/mirror
- VERSION
ldflags:
- '{{.LD_FLAGS}}'
main: ./cmd/gardener-extension-registry-cache
hooks:
after:
- command:
- bash
- hack/generate-kustomize-patch-controllerdeployment-registry-cache.sh
manifests:
kustomize:
paths:
- local-setup
deploy:
# --server-side apply is a workaround for https://github.com/gardener/gardener/issues/10267.
# kubectl apply attempts a strategic merge patch which fails for a ControllerDeployment.
# For more details, see https://github.com/gardener/gardener/issues/10267.
#
# TODO: Switch back to "kubectl: {}" when the above issue is resolved.
kubectl:
flags:
apply:
- --server-side
- --force-conflicts
---
apiVersion: skaffold/v4beta7
kind: Config
metadata:
name: admission
build:
insecureRegistries:
- garden.local.gardener.cloud:5001
artifacts:
- image: local-skaffold/gardener-extension-registry-cache-admission
ko:
dependencies:
paths:
- cmd/gardener-extension-registry-cache-admission
- cmd/gardener-extension-registry-cache-admission/app
- pkg/admission/cmd
- pkg/admission/validator/cache
- pkg/admission/validator/helper
- pkg/admission/validator/mirror
- pkg/apis/mirror
- pkg/apis/mirror/install
- pkg/apis/mirror/v1alpha1
- pkg/apis/mirror/validation
- pkg/apis/registry
- pkg/apis/registry/helper
- pkg/apis/registry/install
- pkg/apis/registry/v1alpha3
- pkg/apis/registry/validation
- pkg/constants
- VERSION
ldflags:
- '{{.LD_FLAGS}}'
main: ./cmd/gardener-extension-registry-cache-admission
deploy:
helm:
releases:
- name: gardener-extension-registry-cache-admission
namespace: garden
wait: true
chartPath: charts/admission
setValueTemplates:
global.image.repository: '{{.IMAGE_REPO_local_skaffold_gardener_extension_registry_cache_admission}}'
global.image.tag: '{{.IMAGE_TAG_local_skaffold_gardener_extension_registry_cache_admission}}@{{.IMAGE_DIGEST_local_skaffold_gardener_extension_registry_cache_admission}}'
profiles:
- name: remote-extensions
patches:
- op: add
path: /deploy/helm/releases/0/setValues
value:
global.vpa.enabled: false