-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: add specsFile to clabverter #151
Merged
Merged
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
72c2fa0
feat: add specsFile
beee173
revert helm.go
0aac4d6
fix lint
9e987b4
chore: appease lll in clabverter entrypoint
carlmontanari 17fe786
chore: appease wsl cuddle buddy
carlmontanari 52cca66
changeme
carlmontanari 7cc6c4c
feat: add specsFile
0e57432
revert helm.go
aa2b221
fix lint
aca8088
chore: appease lll in clabverter entrypoint
carlmontanari 5116d62
chore: appease wsl cuddle buddy
carlmontanari 64d92d0
refactor: do yaml merge nightmare to merge optional base spec setup i…
carlmontanari 8895ad0
Merge remote-tracking branch 'origin/refactor/yaml-merge-hell-for-spe…
carlmontanari b1ea797
first pass at overloading specsFile with cli opt values
f25a818
add topology.spec.status pointer for omitempty
ed3b2cd
change specsFile to topoSpecFile
7f12602
revert to pre omitempty/status pointer setup
carlmontanari 9d99558
refactor: new type for statusless topo for clabversion purposes
carlmontanari 8d93f66
first pass at overloading specsFile with cli opt values
f7aa55c
fix: conditions list type, revert omit empty things
carlmontanari 35a645e
change specsFile to topoSpecFile
36c9e33
add omitempty to topology.spec.connectivity
89ffc2d
remove empty string connectivity test
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,6 @@ cover.out | |
|
||
# goreleaser dist dir for testing builds and such locally | ||
.dist/ | ||
|
||
# build files | ||
cmd/clabverter/build/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
definition: | ||
containerlab: |- | ||
{{- .ClabConfig }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,3 @@ spec: | |
naming: {{ .Naming }} | ||
{{- end }} | ||
connectivity: vxlan | ||
definition: | ||
containerlab: |- | ||
{{- .ClabConfig }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
statusProbes: | ||
enabled: true | ||
excludedNodes: | ||
- baguette | ||
probeConfiguration: | ||
tcpProbeConfiguration: | ||
port: 22 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import ( | |
|
||
const ( | ||
topologyFile = "topologyFile" | ||
specsFile = "specsFile" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am rooting for shorter arg names, but for this feature I fail to find one. |
||
outputDirectory = "outputDirectory" | ||
destinationNamespace = "destinationNamespace" | ||
insecureRegistries = "insecureRegistries" | ||
|
@@ -37,6 +38,12 @@ If not set, clabverter will look for a file named '*.clab.y*ml'`, | |
Required: false, | ||
Value: "", | ||
}, | ||
&cli.StringFlag{ | ||
Name: specsFile, | ||
Usage: `set the values file to parse that will be included in the topology manifest spec.`, | ||
Required: false, | ||
Value: "", | ||
}, | ||
&cli.StringFlag{ | ||
Name: outputDirectory, | ||
Usage: "set the output directory for the converted manifest(s)", | ||
|
@@ -102,6 +109,7 @@ If not set, clabverter will look for a file named '*.clab.y*ml'`, | |
Action: func(c *cli.Context) error { | ||
err := clabernetesclabverter.MustNewClabverter( | ||
c.String(topologyFile), | ||
c.String(specsFile), | ||
c.String(outputDirectory), | ||
c.String(destinationNamespace), | ||
c.String(naming), | ||
|
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.
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.
🥖 😁