Skip to content

Commit da76ba9

Browse files
committed
Add explicit devel mode
1 parent 61d3adb commit da76ba9

File tree

6 files changed

+74
-3
lines changed

6 files changed

+74
-3
lines changed

hack/config/skaffold.yaml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,14 @@ deploy:
205205
- --force-conflicts
206206
defaultNamespace: ""
207207
profiles:
208-
- name: kind
208+
- name: devel
209209
activation:
210210
- kubeContext: kind-.*
211+
- env: DEVEL=true
211212
patches:
212213
- op: replace
213214
path: /manifests/kustomize/paths/0
214-
value: hack/config/sharder/local
215+
value: hack/config/sharder/devel
215216
---
216217
apiVersion: skaffold/v4beta12
217218
kind: Config
@@ -372,6 +373,14 @@ deploy:
372373
- make
373374
- generate-fast-webhosting
374375
profiles:
376+
- name: devel
377+
activation:
378+
- kubeContext: kind-.*
379+
- env: DEVEL=true
380+
patches:
381+
- op: replace
382+
path: /manifests/kustomize/paths/0
383+
value: webhosting-operator/config/manager/overlays/devel
375384
- name: debug
376385
activation:
377386
- command: debug
@@ -393,17 +402,42 @@ profiles:
393402
patches:
394403
- op: replace
395404
path: /manifests/kustomize/paths/0
396-
# default configuration: only run operator shards and use external sharding implementation via ControllerRing
405+
# default configuration: run sharded operator and use external sharding implementation via ControllerRing
397406
value: webhosting-operator/config/manager/overlays/shoot/default
398407
- op: add
399408
path: /manifests/kustomize/paths/-
400409
value: webhosting-operator/config/policy
410+
- name: shoot-devel
411+
requiresAllActivations: true
412+
activation:
413+
- kubeContext: .*--sharding.*
414+
- env: DEVEL=true
415+
patches:
416+
- op: replace
417+
path: /manifests/kustomize/paths/0
418+
# default configuration + devel mode
419+
value: webhosting-operator/config/manager/overlays/shoot/devel
401420
- name: shoot-non-sharded
421+
requiresAllActivations: true
422+
activation:
423+
- kubeContext: .*--sharding.*
424+
- env: ENABLE_SHARDING=false
402425
patches:
403426
- op: replace
404427
path: /manifests/kustomize/paths/0
405428
# singleton controller without sharding for comparison
406429
value: webhosting-operator/config/manager/overlays/shoot/non-sharded
430+
- name: shoot-non-sharded-devel
431+
requiresAllActivations: true
432+
activation:
433+
- kubeContext: .*--sharding.*
434+
- env: ENABLE_SHARDING=false
435+
- env: DEVEL=true
436+
patches:
437+
- op: replace
438+
path: /manifests/kustomize/paths/0
439+
# non-sharded configuration + devel mode
440+
value: webhosting-operator/config/manager/overlays/shoot/non-sharded-devel
407441
---
408442
apiVersion: skaffold/v4beta12
409443
kind: Config
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: kustomize.config.k8s.io/v1alpha1
2+
kind: Component
3+
4+
patches:
5+
- target:
6+
group: apps
7+
kind: Deployment
8+
name: webhosting-operator
9+
namespace: webhosting-system
10+
patch: |
11+
- op: add
12+
path: /spec/template/spec/containers/0/args/-
13+
value: --zap-devel
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- ../default
6+
7+
components:
8+
- ../../devel
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- ../default
6+
7+
components:
8+
- ../../../devel
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- ../non-sharded
6+
7+
components:
8+
- ../../../devel

0 commit comments

Comments
 (0)