Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: '0'
CARGO_PROFILE_DEV_DEBUG: '0'
RUSTFLAGS: "-D warnings -W rust-2021-compatibility"
RUSTFLAGS: "-D warnings"

jobs:

Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# DON'T MANUALLY EDIT THIS FILE
# =============

# This script requires https://github.com/mikefarah/yq (not to be confused with https://github.com/kislyuk/yq)
# It is available from Nixpkgs as `yq-go` (`nix shell nixpkgs#yq-go`)

.PHONY: docker chart-lint compile-chart

TAG := $(shell git rev-parse --short HEAD)
Expand All @@ -19,12 +22,12 @@ compile-chart: version crds config

chart-clean:
rm -rf deploy/helm/kafka-operator/configs
rm -rf deploy/helm/kafka-operator/crds
rm -rf deploy/helm/kafka-operator/templates/crds.yaml

version:
yq eval -i '.version = ${VERSION} | .appVersion = ${VERSION}' deploy/helm/kafka-operator/Chart.yaml


config: deploy/helm/kafka-operator/configs

deploy/helm/kafka-operator/configs:
Expand All @@ -34,7 +37,7 @@ crds: deploy/helm/kafka-operator/crds/crds.yaml

deploy/helm/kafka-operator/crds/crds.yaml:
mkdir -p deploy/helm/kafka-operator/crds
cat deploy/crd/*.yaml | yq e '.metadata.annotations["helm.sh/resource-policy"]="keep"' - > ${@}
cat deploy/crd/*.yaml | yq eval '.metadata.annotations["helm.sh/resource-policy"]="keep"' - > ${@}

chart-lint: compile-chart
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
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/kafka-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
16 changes: 16 additions & 0 deletions deploy/helm/kafka-operator/templates/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,26 @@ rules:
resources:
- pods
- configmaps
- services
- endpoints
verbs:
- create
- delete
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- list
- patch
- update
- watch
- apiGroups:
- batch
resources:
Expand All @@ -52,6 +66,8 @@ rules:
- create
- get
- list
- patch
- update
- watch
- apiGroups:
- apiextensions.k8s.io
Expand Down
16 changes: 16 additions & 0 deletions deploy/manifests/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,26 @@ rules:
resources:
- pods
- configmaps
- services
- endpoints
verbs:
- create
- delete
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- list
- patch
- update
- watch
- apiGroups:
- batch
resources:
Expand All @@ -53,6 +67,8 @@ rules:
- create
- get
- list
- patch
- update
- watch
- apiGroups:
- apiextensions.k8s.io
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ RUN groupadd -g 1000 stackable && adduser -u 1000 -g stackable -c 'Stackable Ope
USER 1000:1000

ENTRYPOINT ["/stackable-kafka-operator"]
CMD ["run"]