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

Improved Kuadrant installation via Olm and kustomize #1075

Merged
merged 13 commits into from
Dec 20, 2024
Merged

Conversation

maleck13
Copy link
Collaborator

@maleck13 maleck13 commented Dec 10, 2024

What This updates the install with more details and hopefully clearer instructions.

The guide is focused around OLM and kustomize. Having this doesn't mean we can't also have a helm or kustomize without an OLM requirement

Verfication

Follow the guide without needing to clone the repo, You should be able to use a basic kind cluster.

Note
You will have to set the version in the configure/kustomization.yaml resource paths from v1.0.1 to olm-installation as some of the changes on this branch are not yet on the v1.0.1 branch

Still to do

  • Add examples for setting up requests and limits
  • Add example for configuring topology constraints

@maleck13 maleck13 changed the title Olm installation Improved Kuadrant installation via Olm and kustomize Dec 10, 2024
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.73%. Comparing base (cc1b41f) to head (6714c4e).
Report is 72 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1075      +/-   ##
==========================================
+ Coverage   76.15%   83.73%   +7.57%     
==========================================
  Files         111       81      -30     
  Lines        8986     6712    -2274     
==========================================
- Hits         6843     5620    -1223     
+ Misses       1852      872     -980     
+ Partials      291      220      -71     
Flag Coverage Δ
bare-k8s-integration 15.66% <ø> (+4.78%) ⬆️
controllers-integration 76.10% <ø> (+17.24%) ⬆️
envoygateway-integration 40.55% <ø> (+8.04%) ⬆️
gatewayapi-integration 16.00% <ø> (+2.56%) ⬆️
istio-integration 43.44% <ø> (+9.11%) ⬆️
unit 19.67% <ø> (-5.70%) ⬇️

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

Components Coverage Δ
api/v1beta1 (u) 90.00% <100.00%> (-2.19%) ⬇️
api/v1beta2 (u) ∅ <ø> (∅)
pkg/common (u) ∅ <ø> (∅)
pkg/istio (u) 62.06% <ø> (+15.03%) ⬆️
pkg/log (u) 93.18% <ø> (ø)
pkg/reconcilers (u) 24.67% <ø> (∅)
pkg/rlptools (u) ∅ <ø> (∅)
controllers (i) 86.65% <89.49%> (+2.22%) ⬆️

see 40 files with indirect coverage changes

Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED

more detailed installation guide and examples

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
config/install/README.md Outdated Show resolved Hide resolved
Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
@maleck13 maleck13 marked this pull request as draft December 12, 2024 12:52
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
@maleck13 maleck13 marked this pull request as ready for review December 19, 2024 15:18
Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
@maleck13
Copy link
Collaborator Author

@smccarthy-ie

Re-Apply the configuration to setup the new secret and configuration:

```bash
kubectl apply -k $KUADRANT_DIR/configure/
Copy link
Member

Choose a reason for hiding this comment

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

This fails with an error

kubectl apply -k $KUADRANT_DIR/configure/

error: no resource matches strategic merge patch "Limitador.v1alpha1.limitador.kuadrant.io/limitador.kuadrant-system": no matches for Id Limitador.v1alpha1.limitador.kuadrant.io/limitador.kuadrant-system; failed to find unique target for patch Limitador.v1alpha1.limitador.kuadrant.io/limitador.kuadrant-system

Presumably becuase the Limitador CR is not part of the resources included in the kustomization, but you want to patch it.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes I want to cherry pick these changes to the v1.0.1 branch. In the validation steps I mentioned you would have to use the ref=olm-installation for the resources .

Copy link
Member

@david-martin david-martin left a comment

Choose a reason for hiding this comment

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

I got to end of the doc, including the redis, TopologyConstraints, PodDisruptionBudget and Resource Limits pieces.
Comments and suggestions above.

maleck13 and others added 5 commits December 20, 2024 07:44
Signed-off-by: craig <[email protected]>

rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED
@maleck13 maleck13 merged commit a4876c5 into main Dec 20, 2024
34 checks passed
@maleck13
Copy link
Collaborator Author

/cherry-pick release-v1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants