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

Adding windows deprecated banners for rke1 on the clusters and provisioning pages #4851

Merged
merged 1 commit into from
Jul 22, 2022
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
5 changes: 4 additions & 1 deletion lib/global-admin/addon/clusters/index/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export default Controller.extend({
return cluster;
}
});
})
}),

hasWindowsRke1Cluster: computed('_allClusters.[]', function() {
return get(this, '_allClusters').any((cluster) => cluster.isWindows && cluster.isRKE);
})
});
6 changes: 6 additions & 0 deletions lib/global-admin/addon/clusters/index/template.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{{#if hasWindowsRke1Cluster}}
<div>
{{banner-message icon='icon-alert' color='bg-warning mb-10 mt-10' message=(t
'clusterNew.rke.windowsSupport.deprecated')}}
</div>
{{/if}}
<section class="header">
<h1>
{{t "clustersPage.header"}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<label class="acc-label">
{{t "clusterNew.rke.windowsSupport.label"}}
</label>
{{banner-message icon='icon-alert' color='bg-warning mb-10 mt-10' message=(t 'clusterNew.rke.windowsSupport.deprecated')}}
<CheckComputedOverride
@applyClusterTemplate={{applyClusterTemplate}}
@clusterTemplateCreate={{clusterTemplateCreate}}
Expand Down
1 change: 1 addition & 0 deletions translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4735,6 +4735,7 @@ clusterNew:
even: Setting {count} etcd nodes is a waste of hardware because it doesn't increase the quorum until you have an odd number.
noEtcd: The number of etcd nodes should not be less than 1.
windowsSupport:
deprecated: Windows support is being deprecated for RKE1. We suggest migrating to RKE2/K3s.
disabled: Not support {plugin} network provider.
help: Available for Kubernetes 1.15 or above with Flannel network provider.
label: Windows Support
Expand Down