-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathskaffold-dev.yaml
More file actions
118 lines (110 loc) · 2.61 KB
/
Copy pathskaffold-dev.yaml
File metadata and controls
118 lines (110 loc) · 2.61 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
# Enhanced Skaffold configuration for development
apiVersion: skaffold/v3
kind: Config
metadata:
name: splunk-ai-operator-dev
build:
local:
push: false
useBuildkit: true
concurrency: 1
tagPolicy:
gitCommit:
variant: AbbrevCommitSha
platforms: ["linux/amd64"]
artifacts:
- image: splunk-ai-operator
platforms:
- linux/amd64
context: .
docker:
dockerfile: Dockerfile
buildArgs:
TARGETOS: linux
TARGETARCH: amd64
sync:
manual:
- src: "**/*.go"
dest: /workspace
- src: "config/**/*.yaml"
dest: /workspace/config
hooks:
after:
- command: ["sh", "-c", "./prehook.sh"]
dir: tools
os: [darwin, linux]
before:
- command: ["sh", "-c", "./cleanup.sh"]
dir: tools
os: [darwin, linux]
deploy:
kubectl:
flags:
apply:
- --server-side
- --force-conflicts
hooks:
after:
- host:
command: ["sh", "-c", "echo 'Deployment complete. Operator is running.'"]
manifests:
kustomize:
paths:
- config/default
buildArgs:
- --load-restrictor=LoadRestrictionsNone
portForward:
- resourceType: deployment
resourceName: splunk-ai-operator-controller-manager
namespace: splunk-ai-operator-system
port: 8080
localPort: 8080
- resourceType: deployment
resourceName: splunk-ai-operator-controller-manager
namespace: splunk-ai-operator-system
port: 8081
localPort: 8081
- resourceType: deployment
resourceName: splunk-ai-operator-controller-manager
namespace: splunk-ai-operator-system
port: 9443
localPort: 9443
# Profiles for different environments
profiles:
# Local development with kind
- name: kind
activation:
- kubeContext: kind-.*
build:
local:
push: false
# Local development with minikube
- name: minikube
activation:
- kubeContext: minikube
build:
local:
push: false
# Remote cluster development
- name: remote
activation:
- kubeContext: "!kind-.*"
- kubeContext: "!minikube"
build:
local:
push: true
tagPolicy:
gitCommit: {}
# Debug profile with delve
- name: debug
build:
artifacts:
- image: splunk-ai-operator
docker:
dockerfile: Dockerfile.debug
portForward:
- resourceType: deployment
resourceName: splunk-ai-operator-controller-manager
namespace: splunk-ai-operator-system
port: 2345
localPort: 2345