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

Add prefer-bundled-bin as an agent flag #6545

Merged
merged 3 commits into from
Nov 22, 2022

Conversation

dereknola
Copy link
Member

@dereknola dereknola commented Nov 22, 2022

Signed-off-by: Derek Nola [email protected]

Proposed Changes

Types of Changes

Verification

Deploy a server and agent on nodes with prefer-bundled-bin flag for both.

Testing

Linked Issues

#3117

User-Facing Change

NONE

Further Comments

@dereknola dereknola requested a review from a team as a code owner November 22, 2022 18:04
Copy link
Member

@brandond brandond left a comment

Choose a reason for hiding this comment

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

Nit: rather than copy-pasting the flag definition between both files, add it as a var like the DebugFlag in root.go and just reference that var in the list:

k3s/pkg/cli/cmds/root.go

Lines 14 to 18 in 1beecb2

DebugFlag = cli.BoolFlag{
Name: "debug",
Usage: "(logging) Turn on debug logs",
Destination: &Debug,
EnvVar: version.ProgramUpper + "_DEBUG",

DebugFlag,

DebugFlag,

Signed-off-by: Derek Nola <[email protected]>
Copy link
Member

@cwayne18 cwayne18 left a comment

Choose a reason for hiding this comment

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

Thank you very much for adding the test, LGTM

@dereknola dereknola merged commit 614da78 into k3s-io:master Nov 22, 2022
brandond pushed a commit to brandond/k3s that referenced this pull request Dec 1, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
brandond pushed a commit to brandond/k3s that referenced this pull request Dec 1, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
brandond pushed a commit to brandond/k3s that referenced this pull request Dec 1, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
brandond pushed a commit to brandond/k3s that referenced this pull request Dec 1, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
brandond pushed a commit to brandond/k3s that referenced this pull request Dec 1, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
brandond pushed a commit to brandond/k3s that referenced this pull request Dec 1, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
brandond pushed a commit to brandond/k3s that referenced this pull request Dec 2, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
brandond pushed a commit that referenced this pull request Dec 2, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
brandond pushed a commit that referenced this pull request Dec 2, 2022
* Add prefer-bundled-bin as an agent flag
* Add E2E test for prefer-bundled-bin

Signed-off-by: Derek Nola <[email protected]>
(cherry picked from commit 614da78)
Signed-off-by: Brad Davidson <[email protected]>
@dereknola dereknola deleted the prefer_agent branch December 7, 2022 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants