forked from gardener/gardener-extension-registry-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskaffold.yaml
More file actions
121 lines (121 loc) · 4.18 KB
/
Copy pathskaffold.yaml
File metadata and controls
121 lines (121 loc) · 4.18 KB
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
apiVersion: skaffold/v4beta12
kind: Config
metadata:
name: extension
build:
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
insecureRegistries:
- registry.local.gardener.cloud:5001
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
resourceSelector:
# instruct skaffold to inject the built image reference into the image field in our ControllerDeployment
allow:
- groupKind: ControllerDeployment.core.gardener.cloud
image:
- .helm.values.image.ref
---
apiVersion: skaffold/v4beta12
kind: Config
metadata:
name: admission
build:
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
- pkg/utils/registry
- VERSION
ldflags:
- '{{.LD_FLAGS}}'
main: ./cmd/gardener-extension-registry-cache-admission
insecureRegistries:
- registry.local.gardener.cloud:5001
deploy:
helm:
releases:
- name: gardener-extension-registry-cache-admission-appl # gardener-extension-registry-cache-admission-application would be too long as release name
chartPath: charts/admission/charts/application
namespace: garden
setValueTemplates:
gardener.virtualCluster.enabled: "false"
wait: true
- name: gardener-extension-registry-cache-admission-runtime
chartPath: charts/admission/charts/runtime
namespace: garden
setValueTemplates:
gardener.virtualCluster.enabled: "false"
image.repository: '{{.IMAGE_REPO_local_skaffold_gardener_extension_registry_cache_admission}}'
image.tag: '{{.IMAGE_TAG_local_skaffold_gardener_extension_registry_cache_admission}}@{{.IMAGE_DIGEST_local_skaffold_gardener_extension_registry_cache_admission}}'
wait: true
profiles:
- name: remote-extensions
patches:
- op: add
path: /deploy/helm/releases/1/setValues
value:
vpa.enabled: false