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

RKE1 deprecation banner on cluster management page #13379

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions shell/assets/translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,8 @@ cluster:
=1 { {pool_name}: The provided value for {fields} was not found in the list of expected values. This can happen with clusters provisioned outside of Rancher or when options for the provider have changed. }
other { {pool_name}: The provided values for {fields} were not found in the list of expected values. This can happen with clusters provisioned outside of Rancher or when options for the provider have changed. }
}
rke1DeprecationMessage: 'Rancher Kubernetes Engine (RKE / RKE1) will reach end of life on July 31, 2025. Rancher 2.12.0 and later will no longer support provisioning or managing downstream RKE1 clusters. We recommend replatforming RKE1 clusters to RKE2 to ensure continued support and security updates. Learn more about the transition <a href="https://www.suse.com/support/kb/doc/?id=000021518" target="_blank" rel="noopener noreferrer nofollow">here</a>.'
rke1DeprecationShortMessage: Rancher Kubernetes Engine (RKE / RKE1) will reach end of life on July 31, 2025. Rancher 2.12.0 and later will no longer support provisioning or managing downstream RKE1 clusters.
rkeTemplateUpgrade: Template revision {name} available for upgrade
cloudCredentials:
renew: Renew Cloud Credentials
Expand Down
6 changes: 6 additions & 0 deletions shell/detail/provisioning.cattle.io.cluster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,12 @@ export default {
color="error"
:label="$fetchState.error"
/>

<Banner
v-if="value.isRke1"
color="warning"
label-key="cluster.banner.rke1DeprecationMessage"
/>
<ResourceTabs
:value="value"
:default-tab="defaultTab"
Expand Down
9 changes: 8 additions & 1 deletion shell/edit/provisioning.cattle.io.cluster/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import CreateEditView from '@shell/mixins/create-edit-view';
import Loading from '@shell/components/Loading';
import { Banner } from '@components/Banner';
import CruResource from '@shell/components/CruResource';
import SelectIconGrid from '@shell/components/SelectIconGrid';
import EmberPage from '@shell/components/EmberPage';
Expand Down Expand Up @@ -50,7 +51,8 @@ export default {
Loading,
Rke2Config,
SelectIconGrid,
ToggleSwitch
ToggleSwitch,
Banner
},

mixins: [CreateEditView],
Expand Down Expand Up @@ -668,6 +670,11 @@ export default {
</div>
{{ obj.label }}
</h4>
<Banner
v-if="provisioner === _RKE1 && i === 1"
color="warning"
label-key="cluster.banner.rke1DeprecationShortMessage"
/>
<SelectIconGrid
:rows="obj.types"
key-field="id"
Expand Down
14 changes: 11 additions & 3 deletions shell/list/provisioning.cattle.io.cluster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ export default {
const res = await allHash(hash);

this.mgmtClusters = res.mgmtClusters;
this.showRke1DeprecationWarning = this.rows.some((r) => r.isRke1);
},

data() {
return {
resource: CAPI.RANCHER_CLUSTER,
schema: this.$store.getters['management/schemaFor'](CAPI.RANCHER_CLUSTER),
mgmtClusters: [],
resource: CAPI.RANCHER_CLUSTER,
schema: this.$store.getters['management/schemaFor'](CAPI.RANCHER_CLUSTER),
mgmtClusters: [],
showRke1DeprecationWarning: false
};
},

Expand Down Expand Up @@ -180,6 +182,12 @@ export default {

<template>
<div>
<Banner
v-if="showRke1DeprecationWarning"
color="warning"
label-key="cluster.banner.rke1DeprecationMessage"
/>

<Banner
v-if="hiddenHarvesterCount"
color="info"
Expand Down
Loading