Skip to content

Commit

Permalink
Additional annotations (#1169)
Browse files Browse the repository at this point in the history
* CommonAnnotations field to be passed down into cassDC.
  • Loading branch information
Miles-Garnsey authored Jan 16, 2024
1 parent f25850d commit 4f244a9
Show file tree
Hide file tree
Showing 16 changed files with 100 additions and 616 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG/CHANGELOG-1.12.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Changelog for the K8ssandra Operator, new PRs should update the `unreleased` sec
When cutting a new release, update the `unreleased` heading to the tag being generated and date, like `## vX.Y.Z - YYYY-MM-DD` and create a new placeholder section for `unreleased` entries.

## unreleased

- [ENHANCEMENT] [#1094](https://github.com/k8ssandra/k8ssandra-operator/issues/1094) Expose AdditionalAnnotations field for cassDC.
* [ENHANCEMENT] [#1160](https://github.com/k8ssandra/k8ssandra-operator/issues/1160) Allow disabling Reaper front-end auth.
- [ENHANCEMENT] [#1115](https://github.com/k8ssandra/k8ssandra-operator/issues/1115) Add a validation check for the projected pod names length
* [CHANGE] [#1050](https://github.com/k8ssandra/k8ssandra-operator/issues/1050) Remove unnecessary requeues in the Medusa controllers
* [CHANGE] [#1165](https://github.com/k8ssandra/k8ssandra-operator/issues/1165) Upgrade to Medusa v0.17.1
* [FEATURE] [#1165](https://github.com/k8ssandra/k8ssandra-operator/issues/1165) Expose Medusa ssl_verify option to allow disabling cert verification for some on prem S3 compatible systems
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ catalog-push: ## Push a catalog image.
# E2E tests from kuttl
kuttl-test: install-kuttl docker-build
./bin/kubectl-kuttl test --kind-context=k8ssandra-0 --start-kind=false --test test-servicemonitors
# ./bin/kubectl-kuttl test --kind-context=k8ssandra-0 --start-kind=false --test test-cassandra-versions
# ./bin/kubectl-kuttl test --kind-context=k8ssandra-0 --start-kind=false --test test-user-defined-ns
./bin/kubectl-kuttl test --kind-context=k8ssandra-0 --start-kind=false --test test-cassandra-versions
./bin/kubectl-kuttl test --kind-context=k8ssandra-0 --start-kind=false --test test-user-defined-ns

# Install kuttl for e2e tests.
install-kuttl:
Expand Down
7 changes: 6 additions & 1 deletion apis/k8ssandra/v1alpha1/k8ssandracluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,16 @@ type EmbeddedObjectMeta struct {
// +optional
meta.Tags `json:",inline"`

// labels/annotations that will be applied to all components
// labels that will be applied to all components
// created by the CRD
// +optional
CommonLabels map[string]string `json:"commonLabels,omitempty"`

// annotations that will be applied to all components
// created by the CRD
// +optional
CommonAnnotations map[string]string `json:"commonAnnotations,omitempty"`

// labels/annotations for the pod components
// +optional
Pods meta.Tags `json:"pods,omitempty"`
Expand Down
7 changes: 7 additions & 0 deletions apis/k8ssandra/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion config/cass-operator/cluster-scoped/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- github.com/k8ssandra/cass-operator/config/deployments/cluster?ref=v1.18.2
- github.com/k8ssandra/cass-operator/config/deployments/cluster?ref=master

components:
- ../../components/cass-operator-image-config
images:
- name: k8ssandra/cass-operator
newTag: v1.19.0-dev.ff5bc87-20240111
6 changes: 5 additions & 1 deletion config/cass-operator/ns-scoped/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- github.com/k8ssandra/cass-operator/config/deployments/default?ref=v1.18.2
- github.com/k8ssandra/cass-operator/config/deployments/default?ref=master

components:
- ../../components/cass-operator-image-config

images:
- name: k8ssandra/cass-operator
newTag: v1.19.0-dev.ff5bc87-20240111
20 changes: 16 additions & 4 deletions config/crd/bases/k8ssandra.io_k8ssandraclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9486,11 +9486,17 @@ spec:
additionalProperties:
type: string
type: object
commonAnnotations:
additionalProperties:
type: string
description: annotations that will be applied to all
components created by the CRD
type: object
commonLabels:
additionalProperties:
type: string
description: labels/annotations that will be applied
to all components created by the CRD
description: labels that will be applied to all components
created by the CRD
type: object
labels:
additionalProperties:
Expand Down Expand Up @@ -22739,11 +22745,17 @@ spec:
additionalProperties:
type: string
type: object
commonAnnotations:
additionalProperties:
type: string
description: annotations that will be applied to all components
created by the CRD
type: object
commonLabels:
additionalProperties:
type: string
description: labels/annotations that will be applied to all
components created by the CRD
description: labels that will be applied to all components
created by the CRD
type: object
labels:
additionalProperties:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/go-logr/zapr v1.2.3
github.com/google/uuid v1.3.0
github.com/gruntwork-io/terratest v0.37.7
github.com/k8ssandra/cass-operator v1.18.1
github.com/k8ssandra/cass-operator v1.18.1-0.20240109145046-4215a6003303
github.com/k8ssandra/reaper-client-go v0.3.1-0.20220114183114-6923e077c4f5
github.com/pkg/errors v0.9.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.52.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/X
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
github.com/k8ssandra/cass-operator v1.18.1-0.20240109145046-4215a6003303 h1:NwcRMl97EFzya4Rmt2DuEE6pinzd9JRLbGaY+djWEjE=
github.com/k8ssandra/cass-operator v1.18.1-0.20240109145046-4215a6003303/go.mod h1:8gYoASfrQYiDmvfMAeYSe31dO1qVe8uIISJeVXGFSiI=
github.com/k8ssandra/cass-operator v1.18.1 h1:5EzHuIIdoka92ysId0bgpM0KSn532k6+XS0Srvvv0bE=
github.com/k8ssandra/cass-operator v1.18.1/go.mod h1:8gYoASfrQYiDmvfMAeYSe31dO1qVe8uIISJeVXGFSiI=
github.com/k8ssandra/reaper-client-go v0.3.1-0.20220114183114-6923e077c4f5 h1:Dq0VdM960G3AbhYwFuaebmsE08IzOYHYhngUfDmWaAc=
Expand Down
Loading

0 comments on commit 4f244a9

Please sign in to comment.