File tree Expand file tree Collapse file tree 4 files changed +49
-14
lines changed Expand file tree Collapse file tree 4 files changed +49
-14
lines changed Original file line number Diff line number Diff line change
1
+ name : Validate Deployment methods
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ paths :
8
+ - " charts/ext-postgres-operator/**"
9
+ - " config/**"
10
+ pull_request :
11
+ branches :
12
+ - master
13
+ paths :
14
+ - " charts/ext-postgres-operator/**"
15
+ - " config/**"
16
+
17
+ jobs :
18
+ validate-helm :
19
+ name : Validate Helm Chart
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Checkout code
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Set up Helm
26
+ uses : azure/setup-helm@v3
27
+ with :
28
+ version : " latest"
29
+
30
+ - name : Lint Helm chart
31
+ run : helm lint ./charts/ext-postgres-operator
32
+
33
+ - name : Template Helm chart
34
+ run : helm template ext-postgres-operator ./charts/ext-postgres-operator > /dev/null
35
+
36
+ validate-kustomize :
37
+ name : Validate Kustomize Configuration
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - name : Checkout code
41
+ uses : actions/checkout@v4
42
+
43
+ - name : Validate Kustomize configuration
44
+ run : kustomize build ./config/default > /dev/null
Original file line number Diff line number Diff line change @@ -118,19 +118,9 @@ data:
118
118
119
119
To install the operator using Kustomize, follow these steps:
120
120
121
- 1. Configure Postgres credentials for the operator in ` config/secret.yaml`.
121
+ 1. Configure Postgres credentials for the operator in ` config/default/ secret.yaml`.
122
122
123
- 2. Create the namespace if needed :
124
- ` ` ` bash
125
- kubectl apply -f config/namespace.yaml
126
- ` ` `
127
-
128
- 3. Apply the secret :
129
- ` ` ` bash
130
- kubectl apply -f deploy/secret.yaml
131
- ` ` `
132
-
133
- 4. Deploy the operator :
123
+ 2. Deploy the operator :
134
124
` ` ` bash
135
125
kubectl kustomize config/default/ | kubectl apply -f -
136
126
` ` `
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ namespace: operators
2
2
3
3
resources :
4
4
- namespace.yaml
5
+ - secret.yaml
5
6
- ../crd
6
7
- ../rbac
7
8
- ../manager
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
4
4
name : ext-postgres-operator
5
5
type : Opaque
6
6
data :
7
- POSTGRES_HOST : cG9zdGdyZXMuZGF0YWJhc2Vz
7
+ POSTGRES_HOST : cG9zdGdyZXNxbA==
8
8
POSTGRES_USER : cG9zdGdyZXM=
9
- POSTGRES_PASS : YWRtaW4xMjM =
9
+ POSTGRES_PASS : cG9zdGdyZXM =
10
10
POSTGRES_URI_ARGS : c3NsbW9kZT1kaXNhYmxl
You can’t perform that action at this time.
0 commit comments