Skip to content

Commit

Permalink
chore: missing templates
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes committed Nov 15, 2024
1 parent 0a4883f commit 800354e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions dev/patches/kotsadm-web-up.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
spec:
template:
spec:
{{- if .Env.EC_NODE }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -9,15 +10,16 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- __NODE_NAME__
- {{ .Env.EC_NODE }}
{{- end }}
volumes:
- name: dev
hostPath:
path: __PROJECT_DIR__/web
path: {{ .Env.PROJECT_DIR }}/web
type: Directory
- name: yarncache
hostPath:
path: __PROJECT_DIR__/dev/.yarncache
path: {{ .Env.PROJECT_DIR }}/dev/.yarncache
type: Directory
containers:
- name: kotsadm-web
Expand Down
8 changes: 5 additions & 3 deletions dev/patches/kurl-proxy-up.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ spec:
volumes:
- name: dev
hostPath:
path: __PROJECT_DIR__
path: {{ .Env.PROJECT_DIR }}
type: Directory
- name: assets
hostPath:
path: __PROJECT_DIR__/kurl_proxy/assets
path: {{ .Env.PROJECT_DIR }}/kurl_proxy/assets
type: Directory
{{- if .Env.EC_NODE }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -18,7 +19,8 @@ spec:
- key: kubernetes.io/hostname
operator: In
values:
- __NODE_NAME__
- {{ .Env.EC_NODE }}
{{- end }}
containers:
- name: proxy
image: kurl-proxy-dev
Expand Down

0 comments on commit 800354e

Please sign in to comment.