-
Notifications
You must be signed in to change notification settings - Fork 0
/
devspace.yaml
68 lines (63 loc) · 1.71 KB
/
devspace.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
name: validator-plugin-aws
version: v2beta1
vars:
AWS_ACCESS_KEY_ID:
command: yq
args: ["e", ".AWS_ACCESS_KEY_ID", ".devspace-config.yaml"]
AWS_SECRET_ACCESS_KEY:
command: yq
args: ["e", ".AWS_SECRET_ACCESS_KEY", ".devspace-config.yaml"]
GOARCH:
command: go
args: ["env", "GOARCH"]
IMAGE: quay.io/validator-labs/validator-plugin-aws
images:
validator-plugin-aws:
image: ${IMAGE}
tags:
- dev
createPullSecret: false
dockerfile: ./Dockerfile.devspace
rebuildStrategy: ignoreContextChanges
docker:
args:
- --platform=linux/${GOARCH}
deployments:
validator-plugin-aws:
namespace: validator
kubectl:
kustomize: true
manifests:
- config/devspace
hooks:
- name: validator-crds
command: "kubectl apply -f https://raw.githubusercontent.com/validator-labs/validator/main/config/crd/bases/validation.spectrocloud.labs_validationresults.yaml"
events: ["after:deploy"]
- name: aws-creds
command: "kubectl get secret aws-creds -n validator || kubectl create secret generic aws-creds -n validator --from-literal=AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} --from-literal=AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}"
events: ["after:deploy"]
dev:
validator-plugin-aws:
imageSelector: ${IMAGE}
terminal:
enabled: true
disableReplace: true
workDir: /workspace
command: ./devspace-start.sh
ports:
- port: "2343"
sync:
- path: .:/workspace
excludePaths:
- '**'
- '!/pkg'
- '!/api'
- '!/cmd'
- '!/config'
- '!/internal'
- '!/devspace-start.sh'
- '!/hack'
- '!/go.mod'
- '!/go.sum'
- '!/main.go'
- 'Makefile'