Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publishConnectionDetailsTo not working for kubernetes secrets, but writeConnectionSecretToRef does #297

Open
applike-ss opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working needs:triage

Comments

@applike-ss
Copy link

What happened?

I am in the process of setting up the crossplane-terraform provider and can use its Workspace resource to create infrastructure, see its outputs in the status field, however when supplying publishConnectionDetailsTo it does not create a secret in any of the namespaces of the cluster.
The default StoreConfig exists and refers to kubernetes and the crossplane-system namespace.

How can we reproduce it?

Add this to your workspace:

  publishConnectionDetailsTo:
    name: xyz

See that it doesn't work for a tf module with outputs, however also see that the outputs are shown in the status field of your Workspace resource.

Now instead of adding the prior part, add this:

  writeConnectionSecretToRef:
    name: xyz
    namespace: crossplane-system

See that your secret gets created with the expected content.

What environment did it happen in?

  • Crossplane Version: v1.17.1-up.1
  • Provider Version: v0.18.0
  • Kubernetes Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.1", GitCommit:"8f94681cd294aa8cfd3407b8191f6c70214973a4", GitTreeState:"clean", BuildDate:"2023-01-18T15:58:16Z", GoVersion:"go1.19.5", Compiler:"gc", Platform:"darwin/arm64"}
  • Kubernetes Distribution: EKS

Please let me know, if I just made a mistake here or whether this should even work. If I'm not mistaken, then writeConnectionSecretToRef is supposed to be replaced by publishConnectionDetailsTo in the long run, so I did not want to add a soon-to-be-deprecated field to my infrastructure code.

@applike-ss applike-ss added bug Something isn't working needs:triage labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

No branches or pull requests

1 participant