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

set the policy controller to the latest release branch #314

Closed

Conversation

maleck13
Copy link
Collaborator

moves the kustomize to ref the release branch instead of main

@maleck13 maleck13 requested a review from a team as a code owner November 17, 2023 10:52
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Merging #314 (e7b28fb) into main (61711f3) will increase coverage by 0.05%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #314      +/-   ##
==========================================
+ Coverage   64.42%   64.47%   +0.05%     
==========================================
  Files          35       35              
  Lines        3806     3806              
==========================================
+ Hits         2452     2454       +2     
+ Misses       1158     1157       -1     
+ Partials      196      195       -1     
Flag Coverage Δ
integration 69.94% <ø> (+0.09%) ⬆️
unit 58.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
api/v1beta1 (u) ∅ <ø> (∅)
pkg/common (u) 73.92% <ø> (ø)
pkg/istio (u) 30.24% <ø> (ø)
pkg/log (u) 31.81% <ø> (ø)
pkg/reconcilers (u) 33.68% <ø> (ø)
pkg/rlptools (u) 56.41% <ø> (ø)
controllers (i) 69.94% <ø> (+0.09%) ⬆️

see 5 files with indirect coverage changes

@@ -1,5 +1,5 @@
resources:
- github.com/Kuadrant/multicluster-gateway-controller/config/policy-controller/default?ref=main
- github.com/Kuadrant/multicluster-gateway-controller/config/policy-controller/default?ref=release-0.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say that these kind of version pointing in our manifests in main branch, should point to floating latest tag or main branch, and use the specific version for release branches. Does it make sense?

Copy link
Member

@didierofrivia didierofrivia Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on a second thought, if we want to treat the policy controller as an external dependency, say, like istio, it's a different story

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue with that is, any time something changes in the policy controller repo yamls, it will mean the verify-bundle will fail in this repo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Authorino is listed as a dependency and it points it to main:

- github.com/Kuadrant/authorino-operator/config/deploy?ref=main

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, I think the policy controller could be treated the same way. Why not having it under config/dependencies?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This really depends what you are trying to achieve. If you want the TLSPolicy and DNSPolicy CRDs and policy controller deployment included in the kuadrant-operator bundle, then adding them to config/dependencies probably won't work. AFAIK, none of those dependencies are pulled into the bundle and the likes of kuadrant-operator/config/dependencies/authorino/kustomization.yaml is only used where you want to run everything without OLM. In a normal OLM installation authorinio-operator is installed as an OLM dependency since it has it's own bundle, policy-controller doesn't.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Indeed the APIs defined by those dependencies are not part of Kuadrant Operator's bundle.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so only question is whether it should ref main or not. I am thinking not at least initially

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About fixing a version or using latest, I think the logic behind it was that:

  • components we control we default to latest – and therefore we pick up changes in those that affect Kuadrant Operator as soon as possible, whereas
  • components we do not control we fix a version – and therefore ensure stability of Kuadrant Operator before externalities going on on those projects.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so then we don't change this one and we close this PR?

@alexsnaps
Copy link
Member

Closing then?

@maleck13 maleck13 closed this Dec 10, 2023
@maleck13 maleck13 deleted the move-to-policy-controller-release branch December 10, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants