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

Add Katib Bundle for Juju #1403

Merged
merged 5 commits into from
Dec 3, 2020
Merged

Add Katib Bundle for Juju #1403

merged 5 commits into from
Dec 3, 2020

Conversation

knkski
Copy link
Contributor

@knkski knkski commented Nov 30, 2020

Adds Python operators for Katib, corresponding to the latest Katib manifests.

What this PR does / why we need it:

As per #1400, we are contributing the python operators for Katib, updated to match the latest katib manifests. Creates an operators folder with an OWNERS file with @knkski and @RFMVasconcelos, since the Katib OWNERS file will have overarching permissions.

Which issue(s) this PR fixes:

Fixes #1400

Release note:

None

Adds Python operators for Katib, corresponding to the latest Katib manifests.

Adds an `operators` folder with an OWNERS file to hold the operators.
Copy link
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

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

Thank you so much for doing this @knkski!
I left few comments.

/cc @gaocegege @johnugeorge @RFMVasconcelos
/cc @aronchick

operators/OWNERS Outdated Show resolved Hide resolved
operators/README.md Outdated Show resolved Hide resolved
operators/katib-controller/config.yaml Outdated Show resolved Hide resolved
@@ -0,0 +1,6 @@
{
"medianstop": {
"image": "docker.io/kubeflowkatib/earlystopping-medianstop",
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to maintain the latest Katib release or the latest pushed commit, e.g. 91e4996 for the Juju bundle ?

In the kubeflow/manifests we maintain the latest release version. Right now, it is v0.10.0 with commit a96ff59, check here: https://github.com/kubeflow/manifests/blob/master/katib/components/katib-controller/kustomization.yaml#L16-L22.

What do you think @gaocegege @johnugeorge @knkski @RFMVasconcelos ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ideally, I'd like to do both. If someone deploys the latest/stable version, they'd get the latest stable release. If they deploy latest/edge instead, they'd get the latest pushed commit.

Copy link
Member

Choose a reason for hiding this comment

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

@knkski Can we set-up it via Juju somehow ?

Copy link
Contributor

@rui-vas rui-vas Dec 1, 2020

Choose a reason for hiding this comment

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

That is a very good question, my view is that we'll always want to be consistent with the latest manifests on the repo, so we are aligned for every Katib release.

As @knkski mentions, from a Juju standpoint, it is possible to deploy a stable version and an edge version. The easiest IMO would be to have this repo always represent edge and point the stable version to the latest Katib release commit.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good @RFMVasconcelos. Let's keep the edge version in this repo.
What do you think about adding info for the user how to change image version to switch from edge to stable version in the README ?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's a good point @andreyvelich!

The best UX in my opinion would be that juju deploy katib would as a default install stable and only if the user wants to try edge he will have to add the --channel=edge handle.

Adding this to the README!

operators/katib-controller/files/enasCPUTemplate Outdated Show resolved Hide resolved
operators/katib-manager/config.yaml Outdated Show resolved Hide resolved
operators/katib-manager/metadata.yaml Outdated Show resolved Hide resolved
operators/katib-ui/metadata.yaml Outdated Show resolved Hide resolved
operators/katib-controller/reactive/katib_controller.py Outdated Show resolved Hide resolved
operators/katib-ui/reactive/katib_ui.py Show resolved Hide resolved
Update README.md
@knkski
Copy link
Contributor Author

knkski commented Dec 2, 2020

@andreyvelich: Thanks for reviewing, I believe everything's been addressed and updated

operators/README.md Outdated Show resolved Hide resolved
@andreyvelich
Copy link
Member

@andreyvelich: Thanks for reviewing, I believe everything's been addressed and updated

Thanks, I have only one question to the README update.

What do you think about the OWNERS file, as I mentioned here: #1403 (comment) ?
Can we update it to 2 spaces instead of 4 to be consistent with the other Kubeflow repos?

I will create a separate PR to fix it for the root OWNERS.

@knkski
Copy link
Contributor Author

knkski commented Dec 2, 2020

@andreyvelich: Sure, pushed that fix up. And sorry, misunderstood what you said, thought you meant to leave as-is and both OWNERS files would be fixed in a separate PR.

Copy link
Member

@andreyvelich andreyvelich left a comment

Choose a reason for hiding this comment

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

@knkski @RFMVasconcelos Thank you again for this contribution, it is great!
LGTM from my side.
/lgtm
Hold for the review from @gaocegege or @johnugeorge.
/hold

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich, knkski

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gaocegege
Copy link
Member

/lgtm

@andreyvelich
Copy link
Member

Let's merge it.
/hold cancel

@k8s-ci-robot k8s-ci-robot merged commit 96b81e8 into kubeflow:master Dec 3, 2020
@knkski knkski deleted the add-charms branch December 3, 2020 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Katib Bundle for Juju
5 participants