File tree 26 files changed +314
-105
lines changed
26 files changed +314
-105
lines changed Original file line number Diff line number Diff line change 2
2
# This file is automatically generated from the templates in stackabletech/operator-templating
3
3
# DON'T MANUALLY EDIT THIS FILE
4
4
# =============
5
+ ---
5
6
version : 2
6
7
updates :
7
8
- package-ecosystem : " github-actions"
Original file line number Diff line number Diff line change 2
2
# This file is automatically generated from the templates in stackabletech/operator-templating
3
3
# DON'T MANUALLY EDIT THIS FILE
4
4
# =============
5
+ ---
5
6
name : Security audit
6
7
7
8
on :
8
9
schedule :
9
- - cron : ' 0 0 * * *'
10
+ - cron : ' 15 4 * * *'
10
11
workflow_dispatch :
11
12
12
13
jobs :
Original file line number Diff line number Diff line change
1
+ name : Lint and Test Helm Charts
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ pull_request :
7
+
8
+ env :
9
+ CT_CONFIG : deploy/helm/ct.yaml
10
+
11
+ jobs :
12
+ lint-test :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Set up Helm
21
+ uses : azure/setup-helm@v1
22
+ with :
23
+ version : v3.7.2
24
+
25
+ - uses : actions/setup-python@v2
26
+ with :
27
+ python-version : 3.7
28
+
29
+ - name : Compile chart
30
+ run : make compile-chart
31
+
32
+ - name : Set up chart-testing
33
+
34
+
35
+ - name : Run chart-testing (lint)
36
+ run : ct lint --config "${CT_CONFIG}"
37
+
38
+ - name : Run chart-testing (list-changed)
39
+ id : list-changed
40
+ run : |
41
+ changed=$(ct list-changed --config "${CT_CONFIG}")
42
+ if [[ -n "$changed" ]]; then
43
+ echo "::set-output name=changed::true"
44
+ fi
45
+
46
+ - name : Create kind cluster
47
+
48
+ if : steps.list-changed.outputs.changed == 'true'
49
+
50
+ - name : Run chart-testing (install)
51
+ run : ct install --config "${CT_CONFIG}"
52
+ if : steps.list-changed.outputs.changed == 'true'
Original file line number Diff line number Diff line change 2
2
# This file is automatically generated from the templates in stackabletech/operator-templating
3
3
# DON'T MANUALLY EDIT THIS FILE
4
4
# =============
5
- name : Publish nightly artifacts from main
5
+ ---
6
+ name : Publish nightly artifacts from main branch
6
7
7
8
on :
8
9
push :
11
12
schedule :
12
13
- cron : ' 30 4 * * *'
13
14
workflow_dispatch :
14
-
15
15
16
16
env :
17
17
PRODUCT_NAME : druid
18
18
CARGO_TERM_COLOR : always
19
19
CARGO_INCREMENTAL : ' 0'
20
20
CARGO_PROFILE_DEV_DEBUG : ' 0'
21
- RUSTFLAGS : " -D warnings -W rust-2021-compatibility"
22
- REPO_HELM_DEV_URL : https://repo.stackable.tech/repository/helm-dev
23
- CHART_TESTING_CONFIG : deploy/helm/chart-testing.yaml
21
+ RUSTFLAGS : " -D warnings"
22
+ REPO_HELM_URL : https://repo.stackable.tech/repository/helm-dev
24
23
25
24
jobs :
26
25
helm :
47
46
48
47
- name : Package Chart
49
48
run : mkdir -p target/helm && helm package --destination target/helm deploy/helm/${{ env.PRODUCT_NAME }}-operator
49
+
50
50
- name : Publish Chart
51
51
env :
52
52
NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
55
55
/usr/bin/curl
56
56
--fail
57
57
-u 'github:${{ secrets.NEXUS_PASSWORD }}'
58
- --upload-file "./$(find target/helm/ -name *.tgz)"
59
- "${{ env.REPO_HELM_DEV_URL }}/"
60
-
58
+ --upload-file "./$(find target/helm/ -name '*.tgz')"
59
+ "${{ env.REPO_HELM_URL }}/"
Original file line number Diff line number Diff line change 2
2
# This file is automatically generated from the templates in stackabletech/operator-templating
3
3
# DON'T MANUALLY EDIT THIS FILE
4
4
# =============
5
- name : Publish pull-requests artifacts to the dev repository
5
+ ---
6
+ name : Publish pull-request artifacts
6
7
7
8
on :
8
9
pull_request :
12
13
CARGO_TERM_COLOR : always
13
14
CARGO_INCREMENTAL : ' 0'
14
15
CARGO_PROFILE_DEV_DEBUG : ' 0'
15
- RUSTFLAGS : " -D warnings -W rust-2021-compatibility"
16
- REPO_HELM_DEV_URL : https://repo.stackable.tech/repository/helm-dev
17
- CHART_TESTING_CONFIG : deploy/helm/chart-testing.yaml
16
+ RUSTFLAGS : " -D warnings"
17
+ REPO_HELM_URL : https://repo.stackable.tech/repository/helm-test
18
18
19
19
jobs :
20
20
helm :
36
36
python-version : ' 3.x'
37
37
38
38
- run : pip install -r ./python/requirements.txt
39
- - run : python ./python/cargo-version .py -m mr ${{ github.event.number }}
39
+ - run : python ./python/cargo_version .py -m pr ${{ github.event.number }}
40
40
41
41
- name : Build Docker image
42
42
env :
49
49
50
50
- name : Package Chart
51
51
run : mkdir -p target/helm && helm package --destination target/helm deploy/helm/${{ env.PRODUCT_NAME }}-operator
52
+
52
53
- name : Publish Chart
53
54
env :
54
55
NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
57
58
/usr/bin/curl
58
59
--fail
59
60
-u 'github:${{ secrets.NEXUS_PASSWORD }}'
60
- --upload-file "./$(find target/helm/ -name *.tgz)"
61
- "${{ env.REPO_HELM_DEV_URL }}/"
62
-
61
+ --upload-file "./$(find target/helm/ -name '*.tgz')"
62
+ "${{ env.REPO_HELM_URL }}/"
Original file line number Diff line number Diff line change 2
2
# This file is automatically generated from the templates in stackabletech/operator-templating
3
3
# DON'T MANUALLY EDIT THIS FILE
4
4
# =============
5
- name : Publish-Release-Artifacts
5
+ ---
6
+ name : Publish release artifacts
6
7
7
8
on :
8
9
push :
14
15
CARGO_TERM_COLOR : always
15
16
CARGO_INCREMENTAL : ' 0'
16
17
CARGO_PROFILE_DEV_DEBUG : ' 0'
17
- RUSTFLAGS : " -D warnings -W rust-2021-compatibility"
18
- REPO_HELM_STABLE_URL : https://repo.stackable.tech/repository/helm-stable
19
- CT_CONFIG : deploy/helm/ct.yaml
18
+ RUSTFLAGS : " -D warnings"
19
+ REPO_HELM_URL : https://repo.stackable.tech/repository/helm-stable
20
20
21
21
jobs :
22
22
helm :
52
52
/usr/bin/curl
53
53
--fail
54
54
-u 'github:${{ secrets.NEXUS_PASSWORD }}'
55
- --upload-file "./$(find target/helm/ -name *.tgz)"
56
- "${{ env.REPO_HELM_STABLE_URL }}/"
55
+ --upload-file "./$(find target/helm/ -name ' *.tgz' )"
56
+ "${{ env.REPO_HELM_URL }}/"
Original file line number Diff line number Diff line change 2
2
# This file is automatically generated from the templates in stackabletech/operator-templating
3
3
# DON'T MANUALLY EDIT THIS FILE
4
4
# =============
5
- name : Rust
5
+ ---
6
+ name : Rust checks
6
7
7
8
on :
8
9
push :
17
18
CARGO_INCREMENTAL : ' 0'
18
19
CARGO_PROFILE_DEV_DEBUG : ' 0'
19
20
RUSTFLAGS : " -D warnings"
21
+ RUSTDOCFLAGS : " -D warnings"
22
+ RUST_LOG : " info"
20
23
21
24
jobs :
22
25
@@ -79,10 +82,10 @@ jobs:
79
82
80
83
-
uses :
actions-rs/[email protected]
81
84
with :
82
- profile : minimal
83
- toolchain : stable
84
- components : clippy
85
- override : true
85
+ profile : minimal
86
+ toolchain : stable
87
+ components : clippy
88
+ override : true
86
89
-
uses :
Swatinem/[email protected]
87
90
with :
88
91
key : clippy
Original file line number Diff line number Diff line change 7
7
* .iml
8
8
9
9
* .tgz
10
- deploy /helm /druid-operator /configs
11
- deploy /helm /druid-operator /templates /crds.yaml
Original file line number Diff line number Diff line change
1
+ [MESSAGES CONTROL]
2
+
3
+ # These rules are for missing docstrings which doesn't matter much for most of our simple scripts
4
+ disable =C0114,C0115,C0116
5
+
6
+ [FORMAT]
7
+
8
+ max-line-length =999
9
+ indent-string =' '
Original file line number Diff line number Diff line change
1
+ ---
2
+ extends : default
3
+
4
+ ignore : |
5
+ deploy/helm/**/templates
6
+
7
+ rules :
8
+ line-length : disable
9
+ truthy :
10
+ check-keys : false
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ deploy/helm/druid-operator/crds/crds.yaml:
51
51
cat deploy/crd/* .yaml | yq eval ' .metadata.annotations["helm.sh/resource-policy"]="keep"' - > ${@ }
52
52
53
53
chart-lint : compile-chart
54
- docker run -it -v $(shell pwd) :/build/helm-charts -w /build/helm-charts quay.io/helmpack/chart-testing:v3.4 .0 ct lint --config deploy/helm/chart_testing .yaml
54
+ docker run -it -v $(shell pwd) :/build/helm-charts -w /build/helm-charts quay.io/helmpack/chart-testing:v3.5 .0 ct lint --config deploy/helm/ct .yaml
55
55
56
56
# # Manifest related targets
57
57
clean-manifests :
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ status = [
6
6
' Run cargo deny (bans licenses sources)'
7
7
]
8
8
delete_merged_branches = true
9
+ use_squash_merge = true
9
10
pr_status = [ ' license/cla' ]
10
11
timeout_sec = 7200
11
- cut_body_after = " <!-- Commit message above. Everything below is not added to the message. Do not change this line! -->"
12
+ cut_body_after = " <!-- Commit message above. Everything below is not added to the message. Do not change this line! -->"
Original file line number Diff line number Diff line change
1
+ These Helm charts and manifests are automatically generated.
2
+ Please do not edit anything in this directory manually.
3
+
4
+ The details are in-motion but check this repository for a few details: https://github.com/stackabletech/operator-templating
Original file line number Diff line number Diff line change
1
+ # This file is used for chart-testing (https://github.com/helm/chart-testing)
2
+ # The name "ct.yaml" is not very self-descriptive but it is the default that chart-testing is looking for
3
+ ---
4
+ remote : origin
5
+ target-branch : main
6
+ chart-dirs :
7
+ - deploy/helm
8
+ all : true
Original file line number Diff line number Diff line change 1
- # =============
2
- # This file is automatically generated from the templates in stackabletech/operator-templating
3
- # DON'T MANUALLY EDIT THIS FILE
4
- # =============
1
+ ---
5
2
apiVersion : v2
6
3
name : druid-operator
4
+ version : 0.3.0-nightly
5
+ appVersion : " 0.3.0-nightly"
7
6
description : The Stackable Operator for Apache Druid
8
- # A chart can be either an 'application' or a 'library' chart.
9
- #
10
- # Application charts are a collection of templates that can be packaged into versioned archives
11
- # to be deployed.
12
- #
13
- # Library charts provide useful utilities or functions for the chart developer. They're included as
14
- # a dependency of application charts to inject those utilities and functions into the rendering
15
- # pipeline. Library charts do not define any templates and therefore cannot be deployed.
16
- type : application
7
+ home : https://github.com/stackabletech/druid-operator
17
8
maintainers :
18
- - name : stackable
19
- url : github.com/stackabletech
20
- # This is the chart version. This version number should be incremented each time you make changes
21
- # to the chart and its templates, including the app version.
22
- # Versions are expected to follow Semantic Versioning (https://semver.org/)
23
- version : 0.3.0-nightly
24
- # This is the version number of the application being deployed. This version number should be
25
- # incremented each time you make changes to the application. Versions are not expected to
26
- # follow Semantic Versioning. They should reflect the version the application is using.
27
- # It is recommended to use it with quotes.
28
- appVersion : 0.3.0-nightly
9
+ - name : Stackable
10
+ url : https://www.stackable.tech
Original file line number Diff line number Diff line change 1
- [ // ] : # ( ============= )
2
- [ // ] : # ( This file is automatically generated from the templates in stackabletech/operator-templating )
3
- [ // ] : # ( DON'T MANUALLY EDIT THIS FILE )
4
- [ // ] : # ( ============= )
5
-
6
1
# Helm Chart for Stackable Operator for Apache Druid
7
2
8
3
This Helm Chart can be used to install Custom Resource Definitions and the Operator for Apache Druid provided by Stackable.
@@ -14,7 +9,7 @@ This Helm Chart can be used to install Custom Resource Definitions and the Opera
14
9
- Install [ Helm] ( https://helm.sh/docs/intro/install/ )
15
10
16
11
17
- ## Install the Stackble Operator for Apache Druid
12
+ ## Install the Stackable Operator for Apache Druid
18
13
19
14
``` bash
20
15
# From the root of the operator repository
@@ -24,15 +19,11 @@ helm install druid-operator deploy/helm/druid-operator
24
19
```
25
20
26
21
22
+ ## Usage of the CRDs
27
23
24
+ The usage of this operator and its CRDs is described in the [ documentation] ( https://docs.stackable.tech/druid/index.html )
28
25
29
- ## Create a Apache Druid Cluster
30
-
31
- as described [ here] ( https://docs.stackable.tech/druid/index.html )
32
-
33
-
34
-
35
- The operator has example requests included in the [ ` /examples ` ] ( https://github.com/stackabletech/druid/operator/tree/main/examples ) directory that can be used to spin up a cluster.
26
+ The operator has example requests included in the [ ` /examples ` ] ( https://github.com/stackabletech/druid/operator/tree/main/examples ) directory.
36
27
37
28
38
29
## Links
Original file line number Diff line number Diff line change 1
- # =============
2
- # This file is automatically generated from the templates in stackabletech/operator-templating
3
- # DON'T MANUALLY EDIT THIS FILE
4
- # =============
1
+ ---
5
2
apiVersion : v1
6
3
data :
7
4
{{ (.Files.Glob "configs/*").AsConfig | indent 2 }}
Original file line number Diff line number Diff line change 1
- # =============
2
- # This file is automatically generated from the templates in stackabletech/operator-templating
3
- # DON'T MANUALLY EDIT THIS FILE
4
- # =============
1
+ ---
5
2
apiVersion : apps/v1
6
3
kind : Deployment
7
4
metadata :
Original file line number Diff line number Diff line change
1
+ ---
1
2
apiVersion : rbac.authorization.k8s.io/v1
2
3
kind : ClusterRole
3
4
metadata :
You can’t perform that action at this time.
0 commit comments