-
Notifications
You must be signed in to change notification settings - Fork 37
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
Upgrade kops to 1.22 #708
Upgrade kops to 1.22 #708
Conversation
k8sClient, err := k8s.NewFromFile(kops.GetKubeConfigPath(), logger) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
_, err = k8sClient.UpdateStorageClassVolumeBindingMode("gp2") | ||
if err != nil { | ||
return err | ||
} | ||
logger.WithField("name", kopsMetadata.Name).Info("Successfully updated storage class") |
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.
This block fails at the moment and in my understanding of things is totally obsolete and can be safely removed. But if your understanding is different @gabrieljackson and @Szymongib feel free to correct me.
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.
Hmm, I can't remember what this was used for, but would agree that if there are no perceived issues then it should be okay to remove. The code was added by @stylianosrigas so let's check with him as well.
d72f5d3
to
44812b9
Compare
@@ -79,11 +79,11 @@ func (c *Cmd) CreateCluster(name, cloud string, kopsRequest *model.KopsMetadataR | |||
// Example setValue: spec.kubernetesVersion=1.10.0 | |||
func (c *Cmd) SetCluster(name, setValue string) error { |
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.
There is another SetInstanceGroup
method that should need this change: https://github.com/mattermost/mattermost-cloud/blob/master/internal/tools/kops/instance_groups.go#L221
k8sClient, err := k8s.NewFromFile(kops.GetKubeConfigPath(), logger) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
_, err = k8sClient.UpdateStorageClassVolumeBindingMode("gp2") | ||
if err != nil { | ||
return err | ||
} | ||
logger.WithField("name", kopsMetadata.Name).Info("Successfully updated storage class") |
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.
Hmm, I can't remember what this was used for, but would agree that if there are no perceived issues then it should be okay to remove. The code was added by @stylianosrigas so let's check with him as well.
Issue: CLD-1543 Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
Issue: Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
Issue: Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
Issue:
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 as long as both a cluster resize and upgrade were performed alongside creation and deletion tests.
This reverts commit 83000f7.
Issue: CLD-1543
Summary
Upgrade kops to 1.22
Ticket Link
https://mattermost.atlassian.net/browse/CLD-1543
Release Note