-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
v1alpha3: Move some GCE-specific fields to CloudProvider.GCE #14813
Conversation
/retest |
// This is a legacy setting because the nodes & control-plane run under the same serviceaccount | ||
klog.Warningf("using legacy spec.cloudConfig.gceServiceAccount=%q setting", c.Cluster.Spec.CloudConfig.GCEServiceAccount) | ||
klog.Warningf("using legacy spec.cloudProvider.gce.serviceAccount=%q setting", c.Cluster.Spec.CloudProvider.GCE.ServiceAccount) |
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.
Nit: until we make v1alpha3 the default, we probably should keep the v1alpha2 names? I recognize this is a pain though...
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.
We're maintaining a mapping table in cluster_spec.md. If we don't adjust as we go, we're bound to miss a few when we change the default.
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.
We could create a helper function that can translate between API versions (in future), even if we don't do the mapping at first... But maybe that's good for another PR
@@ -123,8 +123,6 @@ ensure-install-dir | |||
|
|||
cat > conf/cluster_spec.yaml << '__EOF_CLUSTER_SPEC' | |||
cloudConfig: | |||
gcpPDCSIDriver: |
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.
We might need to embed the GCE config so we know when to restart instances?
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.
The only thing in there is an "enabled" flag. If there were config, it would go into the addon manifest, which I don't think needs an instance restart to be applied. If we add something that requires nodeup to change its build-out behavior, I'd hope we add that setting to nodeup.Config.
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.
The GCE service account goes into the ASGs and the bucket ACLs. I would think the former would cause instances to be marked for rolling update.
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.
OK - sgtm! Merge and iterate :-)
One question about whether we need to output the GCE config to ensure we know when to rolling-update instances... |
/lgtm cancel |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman, justinsb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.