-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathskaffold.yaml
More file actions
168 lines (163 loc) · 4.78 KB
/
skaffold.yaml
File metadata and controls
168 lines (163 loc) · 4.78 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Skaffold configuration for deploying keystone development environment
#
# # Requirements:
# * local registry running at `localhost:5000` when `local` profile is used
#
# # Usage
#
# `skaffold run --cleanup=false -p local --default-repo localhost:5000
apiVersion: skaffold/v4beta13
kind: Config
metadata:
name: keystone
build:
insecureRegistries:
- localhost:5000
artifacts:
- image: keystone-rs
context: .
docker:
dockerfile: Dockerfile
- image: keystone-opa
context: .
docker:
dockerfile: tools/Dockerfile.opa
- image: keystone-tests
context: .
docker:
dockerfile: tools/Dockerfile.functest
local:
concurrency: 0
profiles:
- name: github-ci
build:
local:
useBuildkit: true
concurrency: 0
tryImportMissing: true
- name: local
build:
insecureRegistries:
- localhost:5000
local:
useDockerCLI: true
concurrency: 0
push: true
#tryImportMissing: true
manifests:
kustomize:
paths:
- tools/k8s/keystone/overlays/dev
- tools/k8s/tests/keycloak
- tools/k8s/tests/dex
rawYaml:
- tools/k8s/tests/k8s-auth-test-sa.yaml
- tools/k8s/tests/selenium.yaml
- tools/k8s/tests/cluster-issuer.yaml
- tools/k8s/tests/keystone-ca.yaml
- tools/k8s/tests/keystone-peer-cert.yaml
deploy:
statusCheck: true
statusCheckDeadlineSeconds: 300
tolerateFailuresUntilDeadline: true
kubectl:
flags:
apply: ["--wait"]
hooks:
after:
- host:
# This command will block Skaffold until the bootstrap job hits 'Completed'
command: ["kubectl", "wait", "--for=condition=complete", "job/keystone-bootstrap", "--timeout=180s"]
helm:
releases:
- name: cloudnative-pg
repo: https://cloudnative-pg.github.io/charts
remoteChart: cloudnative-pg
createNamespace: true
namespace: cnpg
- name: cert-manager
repo: https://charts.jetstack.io
remoteChart: cert-manager
version: 1.20.2
createNamespace: true
namespace: cert-manager
setValues:
crds.enabled: true
verify:
- name: "api-test"
container:
image: "keystone-tests"
name: "api-test"
command: ["/tests/test-api"]
env:
- name: "KEYSTONE_URL"
value: "http://keystone-rs.default.svc.cluster.local:8080"
- name: "OS_AUTH_URL"
value: "http://keystone-rs.default.svc.cluster.local:8080"
- name: "OS_USERNAME"
value: "admin"
- name: "OS_PASSWORD"
value: "password"
- name: "OS_USER_DOMAIN_ID"
value: "default"
- name: "OS_PROJECT_NAME"
value: "admin"
- name: "OS_PROJECT_DOMAIN_ID"
value: "default"
executionMode:
kubernetesCluster: {}
- name: "k8s-auth-test"
container:
image: "keystone-tests"
name: "k8s-auth-test"
command: ["/tests/test-k8s-auth", "--nocapture"]
env:
- name: "KEYSTONE_URL"
value: "http://keystone-rs.default.svc.cluster.local:8080"
- name: "OS_AUTH_URL"
value: "http://keystone-rs.default.svc.cluster.local:8080"
- name: "OS_USERNAME"
value: "admin"
- name: "OS_PASSWORD"
value: "password"
- name: "OS_USER_DOMAIN_ID"
value: "default"
- name: "OS_PROJECT_NAME"
value: "admin"
- name: "OS_PROJECT_DOMAIN_ID"
value: "default"
executionMode:
kubernetesCluster:
overrides: '{ "spec": { "template": { "spec": { "serviceAccountName": "keystone-k8s-auth-test-sa" } } } }'
- name: "keycloak"
container:
image: "keystone-tests"
name: "keycloak"
command: ["/tests/test-keycloak", "--nocapture"]
env:
- name: "BROWSERDRIVER_URL"
value: "http://selenium-service:4444"
- name: "KEYSTONE_URL"
value: "http://keystone-rs:8080"
- name: "KEYCLOAK_URL"
value: "http://keycloak:8080"
- name: "KEYCLOAK_PASSWORD"
value: "admin"
executionMode:
kubernetesCluster: {}
# - name: "dex"
# container:
# image: "keystone-tests"
# name: "dex-test"
# command: ["/tests/test-dex", "--nocapture"]
# #env:
# # - name: "BROWSERDRIVER_URL"
# # value: "http://selenium-service:4444"
# # - name: "KEYSTONE_URL"
# # value: "http://keystone-rs:8080"
# # - name: "DEX_URL"
# # value: "http://dex:5556"
# executionMode:
# kubernetesCluster:
# #jobManifestPath: "tools/k8s/tests/dex/job.yaml"
# overrides: '{ "spec": { "template": { "spec": { "containers": [{"name": "dex", "image": "ghcr.io/dexidp/dex:latest"}, {"name": "test", "image": "keystone-tests"}] } } } }'