-
Notifications
You must be signed in to change notification settings - Fork 458
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
fix kustomize manifests for kubeflow #1498
Conversation
c0b5c65
to
24d2b87
Compare
a5274b2
to
bc8f44a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left few comments @davidspek.
For the CI: we should change the path for the katib-config
with image tags here: https://github.com/kubeflow/katib/blob/master/test/scripts/v1beta1/setup-katib.sh#L42.
For the release scripts: we should also modify the path for the katib-config
: https://github.com/kubeflow/katib/blob/master/scripts/v1beta1/release.sh#L74.
@@ -0,0 +1,61 @@ | |||
apiVersion: v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed on the meeting, we should move this file to /manifests/v1beta1/components/controller
and remove current katib-config.yaml
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the katib-config-patch.yaml
files in the installation directory and move the image tags to /manifests/v1beta1/components/controller/katib-config.yaml
.
@@ -3,28 +3,17 @@ kind: Kustomization | |||
namespace: kubeflow | |||
resources: | |||
# Namespace. | |||
- ../../components/namespace.yaml | |||
- namespace.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any ideas how we can keep namespace under manifests/v1beta1/components
?
Maybe create folder components/namespace
and add namespace.yaml
and kustomization.yaml
there.
WDYT @davidspek ? cc @yanniszark
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the easiest way so I have implemented this.
@@ -0,0 +1,6 @@ | |||
[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any options to combine this patch and https://github.com/kubeflow/katib/blob/master/manifests/v1beta1/installs/katib-with-kubeflow/patches/mysql-pvc.yaml in the one file ? cc @yanniszark
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've implemented katib-with-kubeflow-cert-manager
to use katib-with-kubeflow
as a base, which solves needing to duplicate this file.
@@ -0,0 +1,20 @@ | |||
apiVersion: networking.istio.io/v1alpha3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same comment as for the mysql-pvc.yaml
patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've implemented katib-with-kubeflow-cert-manager
to use katib-with-kubeflow
as a base, which solves needing to duplicate this file.
manifests/v1beta1/installs/katib-with-kubeflow/kustomization.yaml
Outdated
Show resolved
Hide resolved
It would be great if @yanniszark could also take a look at these changes. |
@davidspek thanks for this effort. I will take a look shortly but I should comment that I am not treating this PR as release blocking (I think we've discussed in the past, but also mentioning it now for clarity). The first thing I would check for a PR like this would be that the result of |
@yanniszark That is indeed how I am testing things. I just got caught up with creating a PR for a fix to the JWA as something seemed to be broken but I am now continuing with working on these manifests. It isn't release blocking, but as the RC period is partly meant for fixing manifests if this PR is done in time for the release cut it should be included I think. |
@yanniszark Since we are using |
@davidspek @yanniszark I was actually thinking about the Katib installs more. What do you think about keeping these installs:
Since Kubeflow installation uses cert manager instead of custom cert generator we don't need to have 2 installs for Katib with Kubeflow. WDYT @davidspek @yanniszark ? |
@andreyvelich Sorry I completely missed your comment yesterday as I was very busy. Hopefully I will have time to continue wit this today (otherwise it'll be in the weekend). |
No worries, take your time. |
@andreyvelich I've pushed a commit with the I've also updated the releasing and test scripts so that the image tags are updated in katib-config.yaml. |
Overall looks good to me, thank you @davidspek! |
/retest |
Thanks a lot for the effort @davidspek @andreyvelich.
And of course, before merging, I would validate that the result of each new kustomization is the same as the result of the respective previous kustomization. |
Makes sense to me. @andreyvelich Let me know what you prefer and I'll make the needed changes. |
I agree with @yanniszark. Let's have 2 separate folders for the Webhooks:
|
@andreyvelich I've just pushed a commit in which I have separated |
manifests/v1beta1/installs/katib-with-kubeflow/patches/remove-resources-patch.yaml
Outdated
Show resolved
Hide resolved
Thank you @davidspek. |
a97f932
to
02a7f4e
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DavidSpek, gaocegege 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 |
…1514: Create workflow for Go Cherry pick of #1498 #1514 on release-0.11. #1498: fix kustomize manifests for kubeflow #1514: Create workflow for Go (#1515) * fix kustomize manifests for kubeflow * fix standalone and external-db manifests * remove old namespace file * remove PV from kubeflow manifest * fix katib-external-db reference outside of root * fix katib-with-kubeflow-cert-manager * Move image tags to katib-config.yaml and remove patches * use common namespace kustomization * Make kubeflow-cert use kubeflow as a base * Remove katib-cert-generator job from kubeflow-cert-generator manifests * Move pv-patch to patches folder * Create katib-cert-manager and make kubeflowuse this as base * Fix release and CI scripts for new layout * Remove unnecessary cert-generator images from kustomization.yaml * Remove unnecessary SA, CR and CRB from katib-cert-manager * Remove commonLabel from katib-with-kubeflow * Separate cert-generator from webhook kustomization * Create workflow for Go * Add GOPATH env * Move check up * Add env * Add go mod download * Add ls command * Add path * Change path for run * Change GOPATH * Add kubebuilder * Download coveralls * Add node test * Remove Travis * Add coveralls step * Change coveralls use * Add working dir * Remove run * Fix the patch * Remove patch Co-authored-by: DavidSpek <vanderspek.david@gmail.com>
* Add kustomization overlay: katib-standalone-openshift * Rename OpenShift kustomization and remove unused RBAC resources * Update kustomization katib-openshift to support changes in #1498 * katib-openshift: move patches to dedicated dir * katib-openshift: clarify comments * Update katib-openshift image tags
When trying to build the manifests for the Kubeflow deployment the following error occurs:
This PR creates
kustomization.yaml
files for each of the folders so that thekustomization.yaml
inkatib-with-kubeflow
can reference the component folders properly. Similarly, thekatib-config-path.yaml
that was being referenced fromkatib-standalone
has been copied into thekatib-with-kubeflow
so that the manifests can be properly built with kustomize./cc @andreyvelich