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

fix(k8s): fix requirements for auto upgrade #397

Merged
merged 1 commit into from
Feb 12, 2020
Merged
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
2 changes: 1 addition & 1 deletion scaleway/resource_k8s_cluster_beta.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func resourceScalewayK8SClusterBetaCreate(d *schema.ResourceData, m interface{})
// check if either all or none of the auto upgrade attribute are set.
// if one auto upgrade attribute is set, they all must be set.
// if none is set, auto upgrade attributes will be computed.
if okAutoUpgradeEnable == okAutoUpgradeDay && okAutoUpgradeEnable == okAutoUpgradeStartHour {
if okAutoUpgradeEnable != okAutoUpgradeDay || okAutoUpgradeEnable != okAutoUpgradeStartHour {
return fmt.Errorf("all field or zero field of auto_upgrade must be set")
}

Expand Down