-
Notifications
You must be signed in to change notification settings - Fork 10
Base Configs Support - Phase 1 #455
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0eb8f89
initial
elainezhao1 17d28a8
updates
elainezhao1 4c2f544
updates
elainezhao1 a6e3ccd
address some comments
elainezhao1 e90f0a7
rebase
elainezhao1 a80847b
rebase
elainezhao1 2e8bbdd
update schema
elainezhao1 2ba2a8f
address more feedback
elainezhao1 3e0aad7
Merge branch 'main' into user/elaine/poc1
elainezhao1 e10c7d1
update tests
elainezhao1 15e0bd6
Merge ValidateConfig and createImageCustomizerParameters.
cwize1 7a61336
Bug fix
cwize1 3017e68
Feedback updates
cwize1 ed28023
Split off ResolvedConfig from ImageCustomizerParameters.
cwize1 efc0bf2
resolve and rebase
elainezhao1 deb63e5
another rebase
elainezhao1 6ea0f26
Currently, the `ValidateConfig` and the `createResolvedConfig`
cwize1 89eaa04
another rebase
elainezhao1 4070cdb
another rebase
elainezhao1 9737ab1
another rebase
elainezhao1 f9dc60b
address comments
elainezhao1 a46a4b6
address more comments
elainezhao1 b1a4166
resolve comments
elainezhao1 7d8022e
add doc and rename test files
elainezhao1 344f754
add doc and rename test files
elainezhao1 b8895b7
update doc
elainezhao1 a6ea660
line wrap
elainezhao1 fcbee70
Merge branch 'main' into user/elaine/poc1
elainezhao1 2ba46bf
resolve more comments
elainezhao1 2bff675
Merge branch 'user/elaine/poc1' of github.com:microsoft/azure-linux-i…
elainezhao1 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package imagecustomizerapi | ||
|
|
||
| import ( | ||
| "fmt" | ||
| "strings" | ||
| ) | ||
|
|
||
| type BaseConfig struct { | ||
| Path string `yaml:"path" json:"path"` | ||
| } | ||
|
|
||
| func (b BaseConfig) IsValid() error { | ||
| if strings.TrimSpace(b.Path) == "" { | ||
| return fmt.Errorf("path must not be empty or whitespace") | ||
| } | ||
| return nil | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.