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
feat: adding kind.cluster.creation.image configuration property for kind cluster #3508
feat: adding kind.cluster.creation.image configuration property for kind cluster #3508
Conversation
700076c
to
8c063be
Compare
hello @axel7083 and thanks for the contribution I'm wondering if instead of having to specify the image we could not specify the version with a dropdown ? like 1.21, 1.22, ... 1.27 and then it's the extension that picks up the right image ? |
I was hesitant to do that instead, but maybe some people would want to use custom image, and making a dropdown force use to ask which version do we support ? How far do we go under the minor version ? Some version go from X.X.0 to X.X.11, that would be very long dropdown. If we select only major version, people could desire to have more control over the version used. |
Yes there is simplicity over configurability here. maybe 2 fields like one for the lazy people and another for the 'custom' value one dropdown with it's not blocking the PR, just that I think from usability, just selecting |
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.
thanks for the awesome contrib, if you could take some remarks (specific field for mustache template rather than extraConfig, all parameters in the audit function, and maybe prefix image by controlPlane
I was not able to find a way to disable a field based on item value. How to made such mechanism with the existing system ? The configuration does not really allows some kind of conditions podman-desktop/packages/main/src/plugin/configuration-registry.ts Lines 51 to 66 in 2dbcb14
And I was not able to find a way to change dynamically those value. If you know any way of doing it I would appreciate ! |
for now you won't have a dynamic field that will be displayed (it will be like 2 fields) select your version If other, please specify the image name (you can report error in the audit part like if I select latest but add an image in the other field) this PR https://github.com/containers/podman-desktop/pull/3251/files will bring a when clause so it's nice to be able to show/hide fields Maybe with that, we could have in the audit field, a set of a property that then display the field you can also focus on the custom image in this PR and in a later PR (or not) have dropdown / when clause, etc. |
Okey I would rather for this PR to focus on the custom image and having a dropdown with some major version later when the PR about the when condition will be merged. I resolved the comments with your suggestions |
thanks @axel7083 it looks nice, I will do additional tests but I won't probably merge new stuff a late Friday :-) |
Yeah no worries |
@axel7083 so it looks you'll need to tweak the code to match the styles (you can check that using yarn format:check and yarn lint:check (the PR check is failing) these checks are also performed automatically when committing so you should have somehow them disabled :-) |
@axel7083 it's missing 'fotmat:fix' do you have husky setting up properly the got hooks ? as you shouldn't be able to push commits without proper formatting |
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.
on the audit check, it needs to be cumulative and not first is the winner
@benoitf The |
…g kind cluster Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Co-authored-by: Florent BENOIT <fbenoit@redhat.com> Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Co-authored-by: Florent BENOIT <fbenoit@redhat.com> Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
7f7a0e9
to
6eecbb4
Compare
@axel7083 a flaky test |
thanks @axel7083 for your PR |
Thanks you for all of your comments and time ! :) |
What does this PR do?
The node's container image can be used to specify the Kubernetes version used for the control-planed. For example using
kindest/node:v1.25.8
will create a cluster with Kubernetes 1.25.8.Screenshot/screencast of this PR
Default creation page
Custom image creation page
Custom image without sha256
As explained in the official kind documentation
What issues does this PR fix or reference?
Allows to create Kubernetes cluster with specific version.
How to test this PR?
kindest/node:v1.27.2