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

Support managed os channel automatic deletion #195

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions pkg/elemental/edit/elemental.cattle.io.managedosversionchannel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ import CruResource from '@shell/components/CruResource.vue';
import CreateEditView from '@shell/mixins/create-edit-view';
import { LabeledInput } from '@components/Form/LabeledInput';
import NameNsDescription from '@shell/components/form/NameNsDescription';
import Checkbox from '@components/Form/Checkbox/Checkbox.vue';

export default {
name: 'ManagedOsVersionChannelEditView',
components: {
Loading, LabeledInput, CruResource, NameNsDescription
Loading,
LabeledInput,
CruResource,
NameNsDescription,
Checkbox
},
mixins: [CreateEditView],
props: {
Expand Down Expand Up @@ -44,7 +49,7 @@ export default {
</div>
</div>
<div v-if="value.spec" class="row mb-20">
<div class="col span-6 mb-20">
<div class="col span-8 mb-20">
<h3>{{ t('elemental.osversionchannels.create.spec') }}</h3>
<LabeledInput
v-model.trim="value.spec.options.image"
Expand All @@ -53,6 +58,13 @@ export default {
:placeholder="t('elemental.osversionchannels.create.registryUri.placeholder', null, true)"
:mode="mode"
/>
<Checkbox
v-model="value.spec.deleteNoLongerInSyncVersions"
:mode="mode"
:label="t('elemental.osversionchannels.create.automaticDelete')"
data-testid="os-version-channel-automatic-deletion"
class="mt-20"
/>
</div>
</div>
</CruResource>
Expand Down
1 change: 1 addition & 0 deletions pkg/elemental/l10n/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ elemental:
create:
configuration: Configuration
spec: Spec
automaticDelete: Automatically delete deprecated OS versions that are no longer included in the channel
registryUri:
label: Image registry path
placeholder: Enter an image registry path