Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Annotate seed node via file #310

Merged
merged 2 commits into from Oct 21, 2020
Merged

Annotate seed node via file #310

merged 2 commits into from Oct 21, 2020

Conversation

bboreham
Copy link
Contributor

We put the node plan on each node as an annotation.
The plan value can contain shell characters such as ' and !, so put the contents in a file before calling kubectl annotate.

Interestingly there is no option in kubectl to take the value from a file, so we still have to cat it on the command-line.

This change is based on http://github.com/weaveworks/cluster-api-provider-existinginfra/pull/30, since I noticed WriteFile() was in a strange place.

It can contain shell characters such as single quote and !, so put
the contents in a file before calling `kubectl annotate`.

Interestingly there is no option in `kubectl` to take the value from
a file, so we still have to `cat` it on the command-line.
Copy link
Contributor

@palemtnrider palemtnrider left a comment

Choose a reason for hiding this comment

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

Changes worked for me to fix the seed node annotation.

@bboreham bboreham merged commit daeaf15 into master Oct 21, 2020
@bboreham bboreham deleted the annotate-via-file branch October 21, 2020 10:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants