Skip to content

Rollout integration - #85

Merged
LeaveMyYard merged 3 commits into
robusta-dev:mainfrom
ironsource-mobile:rollout_integration
Jul 11, 2023
Merged

LeaveMyYard merged 3 commits into
robusta-dev:mainfrom
ironsource-mobile:rollout_integration

Conversation

@arnoldyahad

Copy link
Copy Markdown
Contributor

Rollout Integration

If you are using Rollouts by ArgoCD instead of deployments - krr won't show it as it doesnt support rollouts.
since we are using krr and we are relying heavily on Rollouts - we created this PR in-order for krr to bring recommendations to rollouts as well.

To not make huge changes in the way krr works, I have added a change to the kubernetes client - added 2 functions:
list_rollout_for_all_namespaces
list_rollout_for_all_namespaces_with_http_info
Which are copies of the original functions of deployment, just for rollouts.

This is the most minimal way i've found to do this change and add support for rollouts (using any other custom object api by kubernetes resulted in it not being good enough for V1DeploymentList or any V1CustomList)

@LeaveMyYard
LeaveMyYard self-requested a review July 5, 2023 14:16

@LeaveMyYard LeaveMyYard left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like your PR, the only thing I would like to change it the location of the rollout file.
I feel like I would have done a submodule in kubernetes folder, as rollout is not itself an integration, but rather an addition to kubernetes integration.

Overall code looks good, but I want to test it additionally before merging
Good job

@LeaveMyYard

Copy link
Copy Markdown
Contributor

Just checked and _list_rollouts fails with 404 not found in my cluster. Despite me having an ArgoCD installed, it seems that I do not have rollouts API. So that should be addressed also.

@arnoldyahad
arnoldyahad force-pushed the rollout_integration branch from da119a3 to 7641f61 Compare July 11, 2023 11:27
@LeaveMyYard
LeaveMyYard merged commit f71fb19 into robusta-dev:main Jul 11, 2023
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.

2 participants