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

ignore well-known crossplane fields #5

Open
janwillies opened this issue Feb 5, 2023 · 0 comments
Open

ignore well-known crossplane fields #5

janwillies opened this issue Feb 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@janwillies
Copy link
Collaborator

Given the following input:

- fromFieldPath: "metadata.uid"
  toFieldPath: "spec.writeConnectionSecretToRef.name"
  transforms:
    - type: string
      string:
        fmt: "%s-sql" #change

The linter spots an error because it can't find metadata.uid in the XRD.

The linter should know about the well-known fields, e.g. https://github.com/crossplane/crossplane/blob/4e4f57a80dc19d24bb712acaa853a836b6963dc9/internal/xcrd/schemas.go#L23-L25

@MisterMX MisterMX added the enhancement New feature or request label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants