Skip to content

Allow configuring additional annotations on the generated workload - #91

Closed
martin-briatka wants to merge 1 commit into
SAP:mainfrom
martin-briatka:fix/tls-cert-rotation-reloader
Closed

martin-briatka wants to merge 1 commit into
SAP:mainfrom
martin-briatka:fix/tls-cert-rotation-reloader

Conversation

@martin-briatka

@martin-briatka martin-briatka commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add a spec.annotations (map[string]string) field. The operator renders its entries into the generated workload's commonAnnotations, so users can attach arbitrary annotations to the workload metadata.

The field is empty by default, so existing deployments are unaffected.

spec:
  annotations:
    example.io/some-annotation: "value"

Changes

  • api/v1alpha1/types.go — Annotations map[string]string on ValkeySpec
  • pkg/operator/data/parameters.yaml — render .annotations into commonAnnotations
  • api/v1alpha1/zz_generated.deepcopy.go + crds/cache.cs.sap.com_valkeys.yaml — regenerated via make manifests generate

Testing

  • go build and go vet clean.

@martin-briatka
martin-briatka marked this pull request as draft November 9, 2026 12:11
@martin-briatka martin-briatka changed the title Allow configuring pod-restart annotations on TLS cert rotation Allow configuring additional annotations on the generated workload Nov 9, 2026
Add a spec.annotations (map[string]string) field. The operator renders
its entries into the generated workload's commonAnnotations, so users can
attach arbitrary annotations to the workload metadata. The field is empty
by default, so existing deployments are unaffected.
@martin-briatka
martin-briatka force-pushed the fix/tls-cert-rotation-reloader branch from d359909 to 5607460 Compare November 9, 2026 12:44
@martin-briatka
martin-briatka deleted the fix/tls-cert-rotation-reloader branch November 9, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant