-
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
up: write static pod definitions on --write-config #19338
up: write static pod definitions on --write-config #19338
Conversation
88d266f
to
2040ac9
Compare
/retest centos mirrors... |
@@ -139,6 +127,18 @@ func (c *ClusterUpConfig) StartSelfHosted(out io.Writer) error { | |||
} | |||
} | |||
|
|||
// if we're supposed to write the config, we'll do that and then exit |
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.
Rather than re-ordering here, can we move the static pod creation to the BuildConfig
method, since we're treating it as 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.
good idea, moved.
2040ac9
to
b4bad38
Compare
substitutions["ETCD_VOLUME"] = `hostPath: | ||
path: ` + c.HostDataDir + "\n" | ||
} | ||
for _, staticPodLocation := range staticPodLocations { |
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.
you dropped the log statement here, maybe intentionally
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.
unintentionally, good catch, added it back.
b4bad38
to
161c301
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, mfojtik 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
/cc @deads2k
/cc @pweil-