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

Seldon-core-operator Update for handling namespace #2676

Closed
ntorba opened this issue Nov 19, 2020 · 1 comment · Fixed by #2762
Closed

Seldon-core-operator Update for handling namespace #2676

ntorba opened this issue Nov 19, 2020 · 1 comment · Fixed by #2762

Comments

@ntorba
Copy link

ntorba commented Nov 19, 2020

Hello!

Quick ask about the seldon-core-operator helm chart. I'm using it as a dependency in another helm chart, and I would like to install it into a different namespace (seldon-system) from other dependencies.
This can be done using ambassador helm chart as a dependency because they use a namespaceOverride, in the values.yaml file and assign the namespace based on a template in the _helpers.tpl file like this:

{{/*
Create chart namespace based on override value.
*/}}
{{- define "seldon-core.namespace" -}}
{{- if .Values.namespaceOverride -}}
{{- .Values.namespaceOverride -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- end -}}

and then specifying the namespace in kubernetes manifests like this:

namespace: {{ include "seldon-core.namespace" . }}

It looks like it would be pretty quick to implement. I'm willing to create the PR if the team is open to this change.

Thanks!

@ntorba ntorba added the triage Needs to be triaged and prioritised accordingly label Nov 19, 2020
@ukclivecox
Copy link
Contributor

Sounds useful.
To do the PR though as we generate the Helm templates from kustomize config you would need to update https://github.com/SeldonIO/seldon-core/blob/master/operator/helm/split_resources.py

There are quite a few references there to the namespace so some testing would be needed.

There is a Makefile in that folder. To recreate the helm templates run make create

@ukclivecox ukclivecox added awaiting-feedback and removed triage Needs to be triaged and prioritised accordingly labels Nov 20, 2020
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 a pull request may close this issue.

2 participants