terraform-k8s icon indicating copy to clipboard operation
terraform-k8s copied to clipboard

Adding support for output annotations

Open jtyr opened this issue 3 years ago • 1 comments

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

This PR is adding the ability to define Annotations on the output Secret generated by the operator. This allows to consume the secret by other tools like kubernetes-reflector. This PR needs to be rebased once the PR #129 is merged to remove most of the changes in the CRD.

The Workspace can contain spec.outputAnnotations:

...
spec:
  outputAnnotations:
    foo: bar
...

Such Annotations are then inserted into the final output Secret:

$ kubectl get secret test-outputs
...
metadata:
  annotations:
    foo: bar
...

Release note for CHANGELOG:

Added ability to specify annotations for the output secret

jtyr avatar Apr 12 '22 11:04 jtyr

This PR is rebased now.

jtyr avatar Jul 05 '22 09:07 jtyr