This repository has been archived by the owner on May 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Handling configurable machine setup/installation #664
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5cd6e74
Rename GCEProviderConfig.Image field to OS
kcoronado 6bc01dd
Replace hardcoded startup script with machine setup configs.
kcoronado 242d193
Remove call to preloaded script in generate-image
kcoronado 9b9a8b9
Create/mount configmap for machine setup configs
kcoronado bd5d0ec
fixup 6bc01dd Remove nil check for ConfigWatch
kcoronado a2782a1
fixup 6bc01dd fix metadata method parameters
kcoronado dfc5f96
fixup 6bc01dd must use full image path in configs
kcoronado 9c5614b
fixup 6bc01dd fix config_types.go
kcoronado 88ceb5d
fixup 6bc01dd fix config_types_test.go
kcoronado c79b5a0
fixup 9b9a8b9 fix config_types_test.go
kcoronado 7e00e5b
fixup 6bc01dd fix create flag and default value
kcoronado 1cc6a4d
fixup 6bc01dd fix spacing in configs file
kcoronado 078e7e8
fixup 6bc01dd add TODO
kcoronado 5c450a0
fixup 6bc01dd fix env vars template bug
kcoronado e1d2b28
fixup 6bc01dd roles must be exact match
kcoronado 6eea28e
fixup 6bc01dd move ARCH env var to scripts
kcoronado 66a419f
fixup 6bc01dd fix role matching check
kcoronado e829e94
fixup 6bc01dd rename gce-machine-controller flag
kcoronado c124da1
fixup 6bc01dd add comments/documentation
kcoronado c1c88ef
fixup 6bc01dd return error if >1 config match
kcoronado 1cfe66b
fixup 9b9a8b9 add TODO for improving configmap visibility
kcoronado File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is a great method for testing with unit tests.
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.
I agree, but it makes a call to the GCE API to check that the image is there and I was having trouble figuring out how to mock it (otherwise I would have added the test when I refactored this method in a previous PR). Rob is working on a PR (#688) to set up a fake client so I can write a unit test for this method once that gets merged.