feat: add vars and extend template funcs

This commit is contained in:
Kevin Franklin Kim
2024-09-24 13:41:16 +02:00
parent e811d29af8
commit e215c0dc32
23 changed files with 384 additions and 65 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
version: "2.0"
global:
enabled: true
host: mycompany.com
squadron:
storefinder:
@@ -11,7 +12,7 @@ squadron:
builds:
default:
tag: latest
image: docker.mycompany.com/mycomapny/frontend-admin
image: storefinder/backend
values:
image:
repository: <% .Squadron.storefinder.backend.builds.default.image %>
@@ -24,10 +25,10 @@ squadron:
builds:
default:
tag: latest
image: docker.mycompany.com/mycomapny/frontend
image: storefinder/frontend
values:
env:
BASE64: <% base64 "1234567890" %>
BASE64: <% "1234567890" | b64enc %>
DEFAULT_INDEX_VALUE: <% defaultIndex .Global "notexists" "fallback" %>
DEFAULT_VALUE: <% "" | default "fallback" %>
ENV: <% env "SHELL" %>
+5 -4
View File
@@ -1,5 +1,6 @@
version: "2.0"
global:
enabled: true
host: mycompany.com
squadron:
storefinder:
@@ -11,10 +12,10 @@ squadron:
builds:
default:
tag: latest
image: docker.mycompany.com/mycomapny/frontend-admin
image: storefinder/backend
values:
image:
repository: docker.mycompany.com/mycomapny/frontend-admin
repository: storefinder/backend
tag: latest
frontend:
chart:
@@ -24,7 +25,7 @@ squadron:
builds:
default:
tag: latest
image: docker.mycompany.com/mycomapny/frontend
image: storefinder/frontend
values:
env:
BASE64: MTIzNDU2Nzg5MA==
@@ -33,7 +34,7 @@ squadron:
ENV: /bin/zsh
GLOBAL: mycompany.com
image:
repository: docker.mycompany.com/mycomapny/frontend
repository: storefinder/frontend
tag: latest
values: |
foo: bar
+2 -2
View File
@@ -43,7 +43,7 @@ spec:
spec:
containers:
- name: storefinder-backend
image: 'docker.mycompany.com/mycomapny/frontend-admin:latest'
image: 'storefinder/backend:latest'
ports:
- name: http
protocol: TCP
@@ -93,7 +93,7 @@ spec:
spec:
containers:
- name: storefinder-frontend
image: 'docker.mycompany.com/mycomapny/frontend:latest'
image: 'storefinder/frontend:latest'
ports:
- name: http
protocol: TCP
+4 -3
View File
@@ -2,6 +2,7 @@ version: "2.0"
global:
host: mycompany.com
enabled: true
squadron:
storefinder:
@@ -10,7 +11,7 @@ squadron:
builds:
default:
tag: latest
image: docker.mycompany.com/mycomapny/frontend
image: storefinder/frontend
values:
image:
tag: <% .Squadron.storefinder.frontend.builds.default.tag %>
@@ -18,7 +19,7 @@ squadron:
env:
ENV: <% env "SHELL" %>
GLOBAL: <% .Global.host %>
BASE64: <% base64 "1234567890" %>
BASE64: <% "1234567890" | b64enc %>
DEFAULT_VALUE: <% "" | default "fallback" %>
DEFAULT_INDEX_VALUE: <% defaultIndex .Global "notexists" "fallback" %>
# ONE_PASSWORD: <% op "ACCOUNT_NAME" "UUID" "FIELD" %>
@@ -31,7 +32,7 @@ squadron:
builds:
default:
tag: latest
image: docker.mycompany.com/mycomapny/frontend-admin
image: storefinder/backend
values:
image:
tag: <% .Squadron.storefinder.backend.builds.default.tag %>