-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathskaffold.yaml
86 lines (86 loc) · 2.13 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
---
apiVersion: skaffold/v4beta2
kind: Config
metadata:
name: cert_manager
manifests:
helm:
releases:
- name: cert-manager
remoteChart: jetstack/cert-manager
namespace: cert-manager
version: v1.9.1
createNamespace: true
deploy:
helm:
hooks:
before:
- host:
command:
- sh
- -c
- kubectl apply --context=${SKAFFOLD_KUBE_CONTEXT} -f https://github.com/jetstack/cert-manager/releases/download/v1.9.1/cert-manager.crds.yaml
profiles:
- name: apponly
patches:
- op: remove
path: /manifests/helm
---
apiVersion: skaffold/v4beta2
kind: Config
metadata:
name: certificates
requires:
- configs:
- cert_manager
manifests:
rawYaml:
- examples/k8s/secret-tls-org-1-cacert.yaml
- examples/k8s/secret-cacert-certmanager.yaml
- examples/k8s/certmanagerca.yaml
- examples/k8s/secret-tls-org-2-cacert.yaml
deploy:
kubectl: {}
profiles:
- name: apponly
patches:
- op: remove
path: /manifests/rawYaml
- name: three-orgs
patches:
- op: add
path: /manifests/rawYaml/-
value: "examples/k8s/secret-tls-org-3-cacert.yaml"
---
apiVersion: skaffold/v4beta2
kind: Config
requires:
- configs:
- cert_manager
build:
artifacts:
- image: substra/orchestrator-server
context: .
docker:
dockerfile: docker/orchestrator-server/Dockerfile
manifests:
helm:
releases:
- name: orchestrator-org-1
chartPath: charts/orchestrator
valuesFiles:
- examples/values/orchestrator-org-1.yaml
namespace: org-1
setValueTemplates:
orchestrator.image.registry: "{{.IMAGE_DOMAIN_substra_orchestrator_server}}"
orchestrator.image.repository: "{{.IMAGE_REPO_NO_DOMAIN_substra_orchestrator_server}}"
orchestrator.image.tag: "{{.IMAGE_TAG_substra_orchestrator_server}}@{{.IMAGE_DIGEST_substra_orchestrator_server}}"
createNamespace: true
deploy:
helm: {}
profiles:
- name: nodeps
patches:
- op: add
path: /manifests/helm/releases/0/skipBuildDependencies
value: true