Skip to content

Commit 2948fe4

Browse files
committed
Initial version of postgres cluster and postgres database CRs
1 parent 2746807 commit 2948fe4

305 files changed

Lines changed: 12094 additions & 32521 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.biased_lang_exclude

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ config/examples/licensemaster/default.yaml
1919
config/rbac/licensemaster_editor_role.yaml
2020
config/rbac/licensemaster_viewer_role.yaml
2121
config/samples/enterprise_v3_licensemaster.yaml
22-
config/webhook/manifests.yaml
2322
tools/make_bundle.sh
2423
config/samples/kustomization.yaml
2524
config/manifests/bases/splunk-operator.clusterserviceversion.yaml

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.git
22
.idea
33
test
4-
vendor
54
build/_output/bin/splunk-operator-local
65
splunk-operator-*.yaml
76
splunk-operator-*.tar.gz

.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
OPERATOR_SDK_VERSION=v1.42.0
2-
REVIEWERS=vivekr-splunk,rlieberman-splunk,patrykw-splunk,Igor-splunk,kasiakoziol,kubabuczak,gabrielm-splunk,minjieqiu,qingw-splunk
3-
GO_VERSION=1.25.7
1+
OPERATOR_SDK_VERSION=v1.39.0
2+
REVIEWERS=vivekr-splunk,rlieberman-splunk,patrykw-splunk,Igor-splunk,kasiakoziol,kubabuczak
3+
GO_VERSION=1.25.5
44
AWSCLI_URL=https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.8.6.zip
55
KUBECTL_VERSION=v1.29.1
66
AZ_CLI_VERSION=2.79.0

.github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml

Lines changed: 11 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: Arm AL2023 Smoke Test WorkFlow
22
permissions:
33
contents: read
4-
checks: write
54
packages: write
65
id-token: write
76
pull-requests: write
87
on:
9-
workflow_dispatch:
8+
workflow_dispatch:
109
inputs:
1110
splunk_image_repository_tag:
1211
description: 'Splunk AL2023-based Docker Image repository and tag (e.g. repository-name:tag)'
@@ -18,7 +17,7 @@ jobs:
1817
- uses: actions/checkout@v2
1918
- name: Dotenv Action
2019
id: dotenv
21-
uses: falti/dotenv-action@v1
20+
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
2221
- name: Setup Go
2322
uses: actions/setup-go@v2
2423
with:
@@ -34,7 +33,7 @@ jobs:
3433
- uses: actions/checkout@v2
3534
- name: Dotenv Action
3635
id: dotenv
37-
uses: falti/dotenv-action@v1
36+
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
3837
- name: Setup Go
3938
uses: actions/setup-go@v2
4039
with:
@@ -51,25 +50,11 @@ jobs:
5150
run: make test
5251
- name: Run Code Coverage
5352
run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken ${{ secrets.COVERALLS_TOKEN }}
54-
continue-on-error: true
5553
- name: Upload Coverage artifacts
56-
uses: actions/upload-artifact@v6
54+
uses: actions/upload-artifact@v4.4.0
5755
with:
5856
name: coverage.out
5957
path: coverage.out
60-
- name: Upload Unit Test Results
61-
if: always()
62-
uses: actions/upload-artifact@v6
63-
with:
64-
name: test-report-unit
65-
path: unit_test*.xml
66-
- name: Publish Unit Test Report
67-
uses: mikepenz/action-junit-report@v6
68-
if: always()
69-
with:
70-
report_paths: 'unit_test*.xml'
71-
check_name: 'Unit Test Results (ARM AL2023)'
72-
detailed_summary: true
7358
build-operator-image-arm-al2023:
7459
runs-on: ubuntu-latest
7560
needs: unit-tests
@@ -80,12 +65,12 @@ jobs:
8065
S3_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
8166
steps:
8267
- name: Set up cosign
83-
uses: sigstore/cosign-installer@v4.0.0
68+
uses: sigstore/cosign-installer@main
8469

8570
- uses: actions/checkout@v2
8671
- name: Dotenv Action
8772
id: dotenv
88-
uses: falti/dotenv-action@v1
73+
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
8974
- name: Setup Go
9075
uses: actions/setup-go@v2
9176
with:
@@ -112,7 +97,7 @@ jobs:
11297
role-duration-seconds: ${{ vars.AWS_ROLE_DURATION_SECONDS }}
11398
- name: Login to Amazon ECR
11499
id: login-ecr
115-
uses: aws-actions/amazon-ecr-login@v2
100+
uses: aws-actions/amazon-ecr-login@v1
116101
- name: Build and push Splunk Operator Image
117102
run: |
118103
export PLATFORMS=linux/arm64,linux/amd64
@@ -136,7 +121,6 @@ jobs:
136121
appframeworksS1,
137122
managersecret,
138123
managermc,
139-
indingsep,
140124
]
141125
runs-on: ubuntu-latest
142126
env:
@@ -162,8 +146,6 @@ jobs:
162146
DEPLOYMENT_TYPE: ""
163147
ARM64: "true"
164148
GRAVITON_TESTING: "true"
165-
AWS_INDEX_INGEST_SEP_ACCESS_KEY_ID: ${{ secrets.AWS_INDEX_INGEST_SEP_ACCESS_KEY_ID }}
166-
AWS_INDEX_INGEST_SEP_SECRET_ACCESS_KEY: ${{ secrets.AWS_INDEX_INGEST_SEP_SECRET_ACCESS_KEY }}
167149
steps:
168150
- name: Chekcout code
169151
uses: actions/checkout@v2
@@ -180,7 +162,7 @@ jobs:
180162
echo "TEST_CLUSTER_NAME=${{ steps.set-cluster-name.outputs.cluster-name }}" >> $GITHUB_ENV
181163
- name: Dotenv Action
182164
id: dotenv
183-
uses: falti/dotenv-action@v1
165+
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
184166
- name: Change splunk enterprise to release image on main branches
185167
if: github.ref == 'refs/heads/main'
186168
run: |
@@ -222,7 +204,7 @@ jobs:
222204
sudo curl -L -o /usr/local/bin/operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}/operator-sdk-${{ steps.dotenv.outputs.OPERATOR_SDK_VERSION }}-x86_64-linux-gnu
223205
sudo chmod +x /usr/local/bin/operator-sdk
224206
- name: Configure Docker Hub credentials
225-
uses: docker/login-action@v3
207+
uses: docker/login-action@v1
226208
with:
227209
username: ${{ secrets.DOCKERHUB_USERNAME }}
228210
password: ${{ secrets.DOCKERHUB_TOKEN}}
@@ -238,7 +220,7 @@ jobs:
238220
role-duration-seconds: ${{ vars.AWS_ROLE_DURATION_SECONDS }}
239221
- name: Login to Amazon ECR
240222
id: login-ecr
241-
uses: aws-actions/amazon-ecr-login@v2
223+
uses: aws-actions/amazon-ecr-login@v1
242224
- name: Pull Splunk Enterprise Image
243225
run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
244226
- name: Create EKS cluster
@@ -262,7 +244,6 @@ jobs:
262244
id: smoketest
263245
timeout-minutes: 240
264246
env:
265-
TEST_TIMEOUT: 225m
266247
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
267248
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
268249
run: |
@@ -274,23 +255,10 @@ jobs:
274255
find ./test -name "*.log" -exec cp {} /tmp/pod_logs \;
275256
- name: Archive Pod Logs
276257
if: ${{ always() }}
277-
uses: actions/upload-artifact@v6
258+
uses: actions/upload-artifact@v4.4.0
278259
with:
279260
name: "splunk-pods-logs--artifacts-${{ matrix.test }}"
280261
path: "/tmp/pod_logs/**"
281-
- name: Upload Smoke Test Results
282-
if: always()
283-
uses: actions/upload-artifact@v6
284-
with:
285-
name: "test-report-smoke-arm-al2023-${{ matrix.test }}"
286-
path: report-junit*.xml
287-
- name: Publish Smoke Test Report
288-
uses: mikepenz/action-junit-report@v6
289-
if: always()
290-
with:
291-
report_paths: 'report-junit*.xml'
292-
check_name: 'Smoke Test Results (ARM AL2023) - ${{ matrix.test }}'
293-
detailed_summary: true
294262
- name: Cleanup Test Case artifacts
295263
if: ${{ always() }}
296264
run: |

.github/workflows/arm-AL2023-int-test-workflow.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Arm AL2023 Integration Test WorkFlow
22
permissions:
33
contents: read
44
packages: write
5-
checks: write
65
id-token: write
76
pull-requests: write
87
on:
@@ -23,7 +22,7 @@ jobs:
2322
- uses: actions/checkout@v2
2423
- name: Dotenv Action
2524
id: dotenv
26-
uses: falti/dotenv-action@v1
25+
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
2726
- name: Setup Go
2827
uses: actions/setup-go@v2
2928
with:
@@ -47,7 +46,7 @@ jobs:
4746
role-duration-seconds: ${{ vars.AWS_ROLE_DURATION_SECONDS }}
4847
- name: Login to Amazon ECR
4948
id: login-ecr
50-
uses: aws-actions/amazon-ecr-login@v2
49+
uses: aws-actions/amazon-ecr-login@v1
5150
- name: Build and push Splunk Operator Image
5251
run: |
5352
export PLATFORMS=linux/arm64,linux/amd64
@@ -69,7 +68,6 @@ jobs:
6968
managercrcrud,
7069
licensemanager,
7170
managerdeletecr,
72-
indingsep,
7371
]
7472
runs-on: ubuntu-latest
7573
needs: build-operator-image-arm-al2023
@@ -95,8 +93,6 @@ jobs:
9593
DEPLOYMENT_TYPE: ""
9694
ARM64: "true"
9795
GRAVITON_TESTING: "true"
98-
AWS_INDEX_INGEST_SEP_ACCESS_KEY_ID: ${{ secrets.AWS_INDEX_INGEST_SEP_ACCESS_KEY_ID }}
99-
AWS_INDEX_INGEST_SEP_SECRET_ACCESS_KEY: ${{ secrets.AWS_INDEX_INGEST_SEP_SECRET_ACCESS_KEY }}
10096
steps:
10197
- name: Set Test Cluster Nodes and Parallel Runs
10298
run: >-
@@ -119,7 +115,7 @@ jobs:
119115
echo "TEST_CLUSTER_NAME=${{ steps.set-cluster-name.outputs.cluster-name }}" >> $GITHUB_ENV
120116
- name: Dotenv Action
121117
id: dotenv
122-
uses: falti/dotenv-action@v1
118+
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
123119
- name: Change splunk enterprise to release image on main branches
124120
if: github.ref == 'refs/heads/main'
125121
run: |
@@ -157,7 +153,7 @@ jobs:
157153
- name: Set up Docker Buildx
158154
uses: docker/setup-buildx-action@v2.5.0
159155
- name: Configure Docker Hub credentials
160-
uses: docker/login-action@v3
156+
uses: docker/login-action@v1
161157
with:
162158
username: ${{ secrets.DOCKERHUB_USERNAME }}
163159
password: ${{ secrets.DOCKERHUB_TOKEN}}
@@ -173,7 +169,7 @@ jobs:
173169
role-duration-seconds: ${{ vars.AWS_ROLE_DURATION_SECONDS }}
174170
- name: Login to Amazon ECR
175171
id: login-ecr
176-
uses: aws-actions/amazon-ecr-login@v2
172+
uses: aws-actions/amazon-ecr-login@v1
177173
- name: Pull Splunk Enterprise Image
178174
run: docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
179175
- name: Create EKS cluster
@@ -196,7 +192,6 @@ jobs:
196192
- name: Run Integration test
197193
timeout-minutes: 240
198194
env:
199-
TEST_TIMEOUT: 225m
200195
TEST_S3_ACCESS_KEY_ID: ${{ vars.TEST_S3_ACCESS_KEY_ID }}
201196
TEST_S3_SECRET_ACCESS_KEY: ${{ secrets.TEST_S3_SECRET_ACCESS_KEY }}
202197
run: |
@@ -208,23 +203,10 @@ jobs:
208203
find ./test -name "*.log" -exec cp {} /tmp/pod_logs \;
209204
- name: Archive Pod Logs
210205
if: ${{ always() }}
211-
uses: actions/upload-artifact@v6
206+
uses: actions/upload-artifact@v4.4.0
212207
with:
213208
name: "splunk-pods-logs--artifacts-${{ matrix.test }}"
214209
path: "/tmp/pod_logs/**"
215-
- name: Upload Integration Test Results
216-
if: always()
217-
uses: actions/upload-artifact@v6
218-
with:
219-
name: "test-report-integration-arm-al2023-${{ matrix.test }}"
220-
path: report-junit*.xml
221-
- name: Publish Integration Test Report
222-
uses: mikepenz/action-junit-report@v6
223-
if: always()
224-
with:
225-
report_paths: 'report-junit*.xml'
226-
check_name: 'Integration Test Results (ARM AL2023) - ${{ matrix.test }}'
227-
detailed_summary: true
228210
- name: Cleanup Test Case artifacts
229211
if: ${{ always() }}
230212
run: |

0 commit comments

Comments
 (0)