When using the `flyte-binary` helm chart is there ...
# flyte-deployment
m
When using the
flyte-binary
helm chart is there a way to specify which project's you'd like automatically defined? I'm looking for something like
initialProjects
from the
flyte-core
helm chart
I'm also happy to contribute the change to the
flyte-binary
helm chart which calls
flyteadmin
in an
initContainer
, but I'm working on the basis this wasn't ported to
flyte-binary
for a reason?
s
cc @Yee /@jeev
j
y
it wasn’t ported because i think it was an extra init container in the other chart, and we just wanted to avoid that.
j
maybe we can just make it a config?
y
we can i suppose.
adds to the config though, and it’s a lot as it is.
j
true
y
not against it, just a bit concerned about config bloat
y
helm config
m
got it 👍🏼
y
flyte admin config is more easily managed i feel
if we add this, i’d add this only to the single binary config
m
From my perspective, being able to update our helm values.yaml and pass values into the admin_config has been quite nice.
j
right
y
like the cfg.Admin block here
y
yeah right?
j
that’s what i was thinking too. then some plumbing from helm values into the configmap?
y
yeah
mike you want to do this? or jeev?
j
@Mike Ossareh up to you
m
I'm happy to take a look at it. It gives me a good reason to better familiarize myself with your configmap.
y
awesome
🙂
m
is flytestdlib/config just a light wrapper over pflag?
(lazy web, I'm looking now :))
y
yeah
m
If I create an issue to track this; can one of you assign it to me?
y
yup
thanks
m
👍🏼
ty
y
thank you
m
@jeev & @Yee I (finally!!) got around to implementing this. https://github.com/flyteorg/flyte/pull/3631 I'm not sure where is best to document this change; I'm happy to do so, but I'll need a pointer to where best to put those docs.
y
oh nice thanks.
not to pile, but would you be up for adding to the flyte-binary helm chart as well?
i think it’s okay to keep as seed projects
j
@Mike Ossareh looks like the PR is close and just needs some final touches :)
wanna talk about the names and configmap structure here?
m
hey @jeev 👋🏼
just looking over the changes; there are three outstanding: • not bumping the chart number - I’ve rolled this back • moving the flyte args up to 000-core.yaml - done • what to call the helm chart key - I’m happy to take direction on this.
j
@Mike Ossareh: still seeing the version changes, but that probably needs
make helm
as far as the helm chart key goes: do we even need it? or can we just expose directly under the
configuration
key? im not super opinionated on this. will defer to you and @Yee. everything else lgtm! thanks for the valuable contribution!
m
@jeev good spot with the `make helm`; I forgot that. I’ve run it and the version changes have bumped. re: the configuration key. You’re suggesting: •
configuration.admin
configuration.propeller
configuration.dataCatalog
instead of
configuration.flyte-binary.[admin,propeller,dataCatalog]
. I’m fine with this personally; it’s sort of the same thing from my POV 🙂 so I’m happy to do whatever you and @Yee suggest I do.
j
no strong opinions from me. i was suggesting that because all of configuration is technically already for
flyte-binary
m
@jeev / @Yee here’s a diff that demonstrates the suggestion above: https://github.com/ossareh/flyte/pull/1/files some things to consider: 1.
000-core.yaml
already has a top level
admin
entry 2. the args for
flyte-binary
are in a
Section
called
flyte
a. we either change
cmd/single/config.go
to use a different section name b. or we accept that 000-core.yaml cannot have a top level
admin
key and we put the flyte-binary args under
flyte:
in the ConfgMap. If the diff above is acceptable, I’ll cherry pick the commit onto the existing PR in the flyte repo - the PR above is just for demonstration purposes.
Here’s another example: https://github.com/ossareh/flyte/pull/2 This is based on this feedback from Yee.
y
i like that last one.
jeev if you don’t mind can we just merge that?
j
yea feel free!
m
OK; I'll migrate the commit over to the main PR branch and then ping y'all here when it's pushed.
@Yee I've pushed the update with the new values.yaml - as per above. LMK if you see anything odd.
155 Views