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

How to use references, such as a target in a policy #10

Open
kungfoome opened this issue Dec 12, 2022 · 3 comments
Open

How to use references, such as a target in a policy #10

kungfoome opened this issue Dec 12, 2022 · 3 comments

Comments

@kungfoome
Copy link

kungfoome commented Dec 12, 2022

Going by the example to build a policy:

- id: ${pagerduty_user.example.id}

How does the target work. I can't seem to get it to work. I get an error like below
Warning CannotObserveExternalResource 72s (x17 over 10m) managed/escalation.pagerduty.crossplane.io/v1alpha1, kind=policy cannot run refresh: refresh failed: Reference to undeclared resource: A managed resource "pagerduty_user" "example" has not been declared in the root module.

I little bit confused as to how that is supposed to work where everywhere else it seems to be a reference using kubernetes labels, but this is required.

Thank you!

@haarchri
Copy link
Member

I will check today and give you feedback

@kungfoome
Copy link
Author

No rush. I really appreciate the help. Just throwing up a proof of concept at the moment to see how it works.

@haarchri
Copy link
Member

You need to use the ID because of the following issue/ future request:
crossplane/crossplane-runtime#350

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

No branches or pull requests

2 participants