generated from crossplane/function-template-go
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Ability to grab the namespace off the claim #97
Labels
enhancement
New feature or request
Comments
You can grab the claim namespace from the XR's Here's an example of creating an {{ $claimNamespace := index $.observed.composite.resource.metadata.labels "crossplane.io/claim-namespace" }}
---
apiVersion: apiextensions.crossplane.io/v1alpha1
kind: EnvironmentConfig
metadata:
name: test
data:
claim_namespace: {{ $claimNamespace }}
--- |
AWESOME! |
@silverbp is it ok to close this issue? |
Yes, thanks
… On Sep 4, 2024, at 8:10 PM, Bob Haddleton ***@***.***> wrote:
@silverbp <https://github.com/silverbp> is it ok to close this issue?
—
Reply to this email directly, view it on GitHub <#97 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADPG2RV3YQBQUIZYD7MDS3ZU6VRTAVCNFSM6AAAAABIAKO2D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQGQYDONJZGM>.
You are receiving this because you were mentioned.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem are you facing?
Trying to figure out how I can get the namespace off the claim to be able to provision resources in the provider using the name of the namespace in the name.
How could this Function help solve your problem?
Is there a way to pull metadata properties from the claim, specifically the namespace using go-templating or do I need to take the namespace as a parameter?
The text was updated successfully, but these errors were encountered: