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

Separate out a fi.InstallContext #14814

Merged
merged 2 commits into from
Dec 20, 2022

Conversation

johngmyers
Copy link
Member

This clarifies that the phase that installs the kops-configuration unit needs a lot less state. It sets us up to move more state into NodeupSubContext without having to create fake state in the install path.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 19, 2022
@k8s-ci-robot k8s-ci-robot added area/nodeup size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 19, 2022
@johngmyers johngmyers changed the title Separate out a fi.InstallContext WIP Separate out a fi.InstallContext Dec 19, 2022
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 19, 2022
Tasks: tasks,
}
i.Build(buildContext)

// If there is a package task, we need an update packages task
Copy link
Member

Choose a reason for hiding this comment

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

I guess the idea is that we know there isn't a Package task? That makes sense if so!

Copy link
Member Author

Choose a reason for hiding this comment

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

There's only a File and a Service.

@@ -165,16 +146,16 @@ func (i *Installation) buildEnvFile() *nodetasks.File {
sysconfig += key + "=" + value + "\n"
}

task := &nodetasks.File{
task := &nodetasks.InstallFile{File: nodetasks.File{
Copy link
Member

Choose a reason for hiding this comment

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

A little awkward codewise, but I see the value!

(Would be great if these ended up as interfaces where the File task could implement both, but we have that conflict on Run... we could get rid of Run maybe, but ... not in this PR!)

@justinsb
Copy link
Member

/approve
/lgtm

Thanks - would be nice if we didn't have to wrap File and Service, but it seems like we're moving forwards here!

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 19, 2022
@johngmyers
Copy link
Member Author

I was actually wrapping in the other direction until I figured I was touching too much code.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 20, 2022
@johngmyers johngmyers changed the title WIP Separate out a fi.InstallContext Separate out a fi.InstallContext Dec 20, 2022
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 20, 2022
@justinsb
Copy link
Member

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 20, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 9aa2a51 into kubernetes:master Dec 20, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.26 milestone Dec 20, 2022
@johngmyers johngmyers deleted the nodeup-install branch December 20, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants