-
Notifications
You must be signed in to change notification settings - Fork 100
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
Enh/default cri #1059
Enh/default cri #1059
Conversation
# Conflicts: # frontend/src/components/ShootWorkers/ContainerRuntime.vue # frontend/src/components/ShootWorkers/WorkerInputGeneric.vue
# Conflicts: # frontend/src/components/ShootWorkers/ContainerRuntime.vue # frontend/src/components/ShootWorkers/ManageWorkers.vue # frontend/src/components/ShootWorkers/WorkerInputGeneric.vue # frontend/src/store/modules/shoots/index.js # frontend/src/utils/index.js # frontend/tests/unit/utils.spec.js
containerRuntime: { | ||
get () { | ||
return get(this.worker, 'cri.name') | ||
}, | ||
set (value) { | ||
set(this.worker, 'cri.name', value) | ||
} | ||
}, |
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.
Why do we use the name containerRuntime
for the cri.name
. In would prefer criName
.
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.
ok, done
} | ||
}, | ||
validations, | ||
computed: { | ||
containerRuntimeItems () { | ||
const containerRuntimes = map(this.machineImageCri, 'name') | ||
return uniq([...containerRuntimes, DEFAULT_CONTAINER_RUNTIME]) | ||
return map(this.machineImageCri, 'name') |
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 would propose to rename the property containerRuntimeItems
to criNames
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.
ok, done
}, | ||
ociRuntimeItems () { | ||
const containerRuntime = find(this.machineImageCri, ['name', this.containerRuntime]) | ||
const ociRuntimes = get(containerRuntime, 'containerRuntimes', []) | ||
return map(ociRuntimes, 'type') | ||
const ociRuntimess = get(containerRuntime, 'containerRuntimes', []) |
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 would also rename ociRuntimeItems
to criContainerRuntimeTypes
. This helps me to map the property to the corresponding part in the cloudProfile.
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.
ok, done
const ociRuntimess = get(containerRuntime, 'containerRuntimes', []) | ||
return map(ociRuntimess, 'type') | ||
}, | ||
containerRuntime: { |
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.
Rename containerRuntime
to criName
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.
ok, done
set(this.worker, 'cri.name', value) | ||
} | ||
}, | ||
ociRuntimes: { |
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.
rename ociRuntimes
to selectedCriContainerRuntimeTypes
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.
ok, done
Co-authored-by: Holger Koser <holger.koser@sap.com>
Co-authored-by: Holger Koser <holger.koser@sap.com>
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.
/lgtm
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.
/lgtm
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1039 Fixes #1038
Special notes for your reviewer:
Release note: