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

support worker/metricsCollector template from specified configmap + path #349

Closed
hougangliu opened this issue Jan 29, 2019 · 5 comments
Closed
Assignees

Comments

@hougangliu
Copy link
Member

For now, when specify worker and metricsCollector by TemplatePath, this path must exist in kubeflow/configmaps/worker-template for worker and kubeflow/configmaps/metricscollector-template for metrics collector.

we should cover a use case: a user who can only create/update studyjob and configmap in non-kubeflow namespace , but he wants to persist his worker/metricscollector template in configmap fo re-use (even more, he wants to persist worker/metricscollector of a studyjob in one configmap for better management, saying mnistStudyJobConfigmap, yoloStudyJobConfigmap and so on)

@hougangliu
Copy link
Member Author

/assign

@hougangliu
Copy link
Member Author

hougangliu commented Jan 29, 2019

I plan to refactor GoTemplate as below

type TemplatePath struct {
	ConfigMapName string `json:"configmapName,omitempty"`
	ConfigMapNamespace string `json:"configmapNamespace,omitempty"`
	TemplatePath string `json:"templatePath,omitempty"`
}

type GoTemplate struct {
	TemplateFromConfigmap TemplatePath `json:"templateFromConfigmap,omitempty"`
	RawTemplate  string `json:"rawTemplate,omitempty"`
}

@richardsliu @YujiOshima @gaocegege @johnugeorge any comments?

@richardsliu
Copy link
Contributor

Maybe call the field and type TemplateSpec instead of TemplateFromConfigmap/TemplatePath? Otherwise sounds ok to me.

@johnugeorge
Copy link
Member

Closing this issue as fields are included in v1alpha2 API
/close

@k8s-ci-robot
Copy link

@johnugeorge: Closing this issue.

In response to this:

Closing this issue as fields are included in v1alpha2 API
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

No branches or pull requests

4 participants