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

Use yaml config to manage k8s resources deployed by bootstrapper #853

Merged
merged 2 commits into from May 24, 2018

Conversation

kunmingg
Copy link
Contributor

@kunmingg kunmingg commented May 23, 2018

This provide us flexibility to control kubeflow resources when facing different code version / env.
solve #829


This change is Reviewable

@kunmingg
Copy link
Contributor Author

/assign @jlewi

@kunmingg
Copy link
Contributor Author

/assign @lluunn

KfVersion string
NameSpace string
Project string
ConfigDir string
Copy link
Contributor

Choose a reason for hiding this comment

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

Why a directory and not a single file?

@@ -205,7 +249,7 @@ func setupNamespace(namespaces type_v1.NamespaceInterface, name_space string) er

func createComponent(opt *options.ServerOption, kfApp *kApp.App, fs *afero.Fs, args []string) {
componentName := args[1]
componentPath := filepath.Join(opt.AppDir, "components", componentName+".jsonnet")
componentPath := filepath.Join(opt.AppDir, "Components", componentName+".jsonnet")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is Components capitalized?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

goland's auto rename...

}
// Install packages.
for _, p := range appConfig.Packages {
//for _, p := range []string{"kubeflow/core", "kubeflow/tf-serving", "kubeflow/tf-job", "kubeflow/pytorch-job"} {
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete commented out code.

# Sample config for kubeflow bootstrapper
---
# Apps that always apply
DefaultApp:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do the key names start with capital letters? This doesn't follow standard K8s or GCP deployment manager syntax. Can we make it lower case?

@@ -0,0 +1,44 @@
# Sample config for kubeflow bootstrapper
---
# Apps that always apply
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we creating multiple apps? Why wouldn't we just create a single app and use the ConfigMap to specify the app we want to create?

Parameters []KsParameter
}

type BootConfig struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are there multiple apps? And if you want to support multiple apps why wouldn't you use a container like a list or map.

My sense though is we should start with a single app unless we have a clear use case for multiple ones.

I think if a user wanted multiple apps they could run bootstrapper multiple times

@jlewi
Copy link
Contributor

jlewi commented May 23, 2018

Awesome; thanks for the quick fix.

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlewi

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

@kunmingg
Copy link
Contributor Author

/retest

2 similar comments
@kunmingg
Copy link
Contributor Author

/retest

@kunmingg
Copy link
Contributor Author

/retest

@kunmingg
Copy link
Contributor Author

/test all

@k8s-ci-robot k8s-ci-robot merged commit 4c46ae9 into kubeflow:master May 24, 2018
saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 11, 2021
…eflow#853)

* Use yaml config to manage k8s resources deployed by bootstrapper

* handle review feedback
yanniszark pushed a commit to arrikto/kubeflow that referenced this pull request Feb 15, 2021
Signed-off-by: Ce Gao <gaoce@caicloud.io>
surajkota pushed a commit to surajkota/kubeflow that referenced this pull request Jun 13, 2022
* Change Katib manifests from origin

* Run tests

* Remove PV from base
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.

None yet

4 participants