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

Show banner that Weave is deprecated for k8s >= 1.27 #5062

Merged
merged 4 commits into from
Sep 6, 2023

Conversation

nwmac
Copy link
Member

@nwmac nwmac commented Sep 1, 2023

Addresses: rancher/dashboard#9556

Shows a deprecation banner if the user selects Weave network and a Kubernetes version >= 1.27

This will need manual testing as it requires a configured cloud credential to get to cluster provisioning.

@nwmac nwmac added this to the v2.8.0 milestone Sep 1, 2023
@nwmac nwmac self-assigned this Sep 1, 2023
Copy link
Member

@mantis-toboggan-md mantis-toboggan-md left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving anyway because it's nitpicky of me but it looks like this could be contained in a computed prop for better readability:

  weaveDeprecated: computed('config.network.plugin', 'config.kubernetesVersion', function(){
    const plugin = get(this, 'config.network.plugin');
    const kubernetesVersion = get(this, 'config.kubernetesVersion');

    return (plugin === WEAVE && gte(coerceVersion(kubernetesVersion), 'v1.27.0'));
  }),

Copy link
Member

@mantis-toboggan-md mantis-toboggan-md left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants