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

Move kuadrant resources to separate kustomization file #47

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

david-martin
Copy link
Member

@david-martin david-martin commented Sep 17, 2024

This change splits out the kuadrant specific resources (TLSPolicy, AuthPolicy etc...) into a separate kustomization file that generates a customresourcestate configmap with both the gateway api config and kuadrant resource config combined.

To do this, the base configmap is appended to with the kuadrant resources, and the resulting file is checked in.
A workflow action ensures the latest content is always generated if the base file or kaudrant specific file changes.

This change splits out & adds new test for the kuadrant DNSRecord resource (though existing kuadrant resource tests remain under the gatewayapi_ prefix for backwards compatibility for now).
The existing e2e tests script behaves as before, testing all gateway api and kuadrant resources.

After a new release (latest is 0.4.0 at this time), the default behaviour when you pull in the kustomization.yaml file in the root of the repo will now only include the metrics config for gateway api resources.

To include the metrics config for both the gateway api resources and kuadrant resources, the ./config/kuadrant/kustomization.yaml file will need to be included.
(In the kaudrant-operator, this line will need to be updated https://github.com/Kuadrant/kuadrant-operator/blob/main/config/observability/kustomization.yaml#L6)

For example:

resources:
  - github.com/Kuadrant/gateway-api-state-metrics/config/kuadrant?ref=0.x.0

@david-martin david-martin force-pushed the move-kuadrant-resources branch from b84e2f0 to 09ce84c Compare September 17, 2024 11:21
Signed-off-by: David Martin <[email protected]>
@david-martin
Copy link
Member Author

pending dnsrecord crd, example resource and tests

Signed-off-by: David Martin <[email protected]>
@david-martin david-martin force-pushed the move-kuadrant-resources branch from 09ce84c to 549c3d0 Compare September 18, 2024 10:57
@david-martin david-martin merged commit b5685c8 into main Sep 18, 2024
5 checks passed
@david-martin david-martin deleted the move-kuadrant-resources branch September 18, 2024 11:03
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

Successfully merging this pull request may close these issues.

1 participant