-
Notifications
You must be signed in to change notification settings - Fork 21
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
Expose additional sveltos settings for service deployment #823
base: main
Are you sure you want to change the base?
Conversation
0d9878f
to
197c122
Compare
197c122
to
32388d9
Compare
32388d9
to
7484f80
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.
What are advantages of this implementation over the adding of valuesFrom field similar to the one used in sveltos types?
From my perspective:
- despite adding flexibility, current implementation increases complexity of hmc's types
- user still must fulfil values field instead of just referring to configMap/secret
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'd agree with @BROngineer, the initial idea should work but from a user's perspective it is unclear why the user should mix both hmc
and sveltos
fields within the hmc
's resources.
The previous variant didn't contain any fields from the sveltos
types, but now it does. Besides, the managedclusterservices
resource now has several such types. Why cannot we just reuse the whole specs from the sveltos, e.g., sveltos.Spec
and sveltos.HelmChart
, within the mcs
resource?
The |
I am not sure if I understood correctly. All the fields related to beach-head services are contained in
That might be better but part of the reason I couldn't expose the entire sveltos spec as it is, is because we are are using |
I meant that the The current approach works though, as I've mentioned earlier. Just wondering whether we could make the specs a little simpler to fill out without changing them too much depending on the features required. |
Description
ServiceSpec
and use that for both ManagedCluster and MultiClusterService. So the CR will now become:Example
I have the following secret with dummy credentials:
If I want to refer to this secret to pluck these credentials while deploying my application, I can use the following:
Now when looking at the kube deployment for
myappz
on the managed cluster, we can see that the values forUSERNAME
andPASSWORD
env variables for the pod have been set: