-
Notifications
You must be signed in to change notification settings - Fork 0
/
devspace.yaml
61 lines (56 loc) · 1.45 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
name: validator-plugin-vsphere
version: v2beta1
vars:
GOARCH:
command: go
args: ["env", "GOARCH"]
IMAGE: quay.io/validator-labs/validator-plugin-vsphere
images:
validator-plugin-vsphere:
image: ${IMAGE}
tags:
- dev
createPullSecret: false
dockerfile: ./Dockerfile.devspace
rebuildStrategy: ignoreContextChanges
docker:
args:
- --platform=linux/${GOARCH}
deployments:
validator-plugin-vsphere:
namespace: validator-plugin-vsphere-system
kubectl:
kustomize: true
manifests:
- config/devspace
hooks:
- name: validator-crds
command: |
kubectl apply -f https://raw.githubusercontent.com/validator-labs/validator/main/chart/validator/crds/validation.spectrocloud.labs_validatorconfigs.yaml
kubectl apply -f https://raw.githubusercontent.com/validator-labs/validator/main/chart/validator/crds/validation.spectrocloud.labs_validationresults.yaml
events: ["before:deploy"]
dev:
validator-plugin-vsphere:
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'