This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
skaffold.yaml
75 lines (72 loc) · 2.75 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
apiVersion: skaffold/v4beta2
kind: Config
build:
artifacts:
- image: substra/fabric-tools
context: .
docker:
dockerfile: docker/fabric-tools/Dockerfile
- image: substra/fabric-peer
context: .
docker:
dockerfile: docker/fabric-peer/Dockerfile
requires:
- path: examples/secrets/skaffold.yaml
- path: examples/serviceAccounts/skaffold.yaml
configs:
- org-1+2
# FIXME: Replace `deploy` by `manifests` when these functions are refactored https://github.com/owkin/substra-ci/blob/main/ci/deploy.py#L89 and https://github.com/owkin/substra-ci/blob/main/ci/deploy.py#L141
deploy:
helm:
releases:
- name: network-orderer
chartPath: charts/hlf-k8s
valuesFiles:
- examples/2-orgs-policy-any-no-ca/values/orderer.yaml
namespace: orderer
setValueTemplates:
fabric-tools.image.repository: '{{.IMAGE_REPO_substra_fabric_tools}}'
fabric-tools.image.tag: '{{.IMAGE_TAG_substra_fabric_tools}}@{{.IMAGE_DIGEST_substra_fabric_tools}}'
createNamespace: true
- name: network-org-1-peer-1
chartPath: charts/hlf-k8s
valuesFiles:
- examples/2-orgs-policy-any-no-ca/values/org-1-peer-1.yaml
namespace: org-1
setValueTemplates:
fabric-tools.image.repository: '{{.IMAGE_REPO_substra_fabric_tools}}'
fabric-tools.image.tag: '{{.IMAGE_TAG_substra_fabric_tools}}@{{.IMAGE_DIGEST_substra_fabric_tools}}'
hlf-peer.image.repository: '{{.IMAGE_REPO_substra_fabric_peer}}'
hlf-peer.image.tag: '{{.IMAGE_TAG_substra_fabric_peer}}@{{.IMAGE_DIGEST_substra_fabric_peer}}'
createNamespace: true
skipBuildDependencies: true
- name: network-org-2-peer-1
chartPath: charts/hlf-k8s
valuesFiles:
- examples/2-orgs-policy-any-no-ca/values/org-2-peer-1.yaml
namespace: org-2
setValueTemplates:
fabric-tools.image.repository: '{{.IMAGE_REPO_substra_fabric_tools}}'
fabric-tools.image.tag: '{{.IMAGE_TAG_substra_fabric_tools}}@{{.IMAGE_DIGEST_substra_fabric_tools}}'
hlf-peer.image.repository: '{{.IMAGE_REPO_substra_fabric_peer}}'
hlf-peer.image.tag: '{{.IMAGE_TAG_substra_fabric_peer}}@{{.IMAGE_DIGEST_substra_fabric_peer}}'
createNamespace: true
skipBuildDependencies: true
statusCheckDeadlineSeconds: 300
profiles:
- name: nodeps
patches:
- op: add
path: /deploy/helm/releases/0/skipBuildDependencies
value: true
- name: single-org
patches:
- op: remove
path: /deploy/helm/releases/2
# Removes the org-2 manifests, at indexes 3 and 5.
# we remove index 5 first because starting with index 3 turns index 5 into index 4 and that's
# confusing.
- op: remove
path: /manifests/rawYaml/manifests/5
- op: remove
path: /manifests/rawYaml/manifests/3