-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes PR feedback
- Loading branch information
Warren Fernandes
committed
Jul 28, 2020
1 parent
eadd21c
commit 12a1960
Showing
7 changed files
with
53 additions
and
10 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# clusterctl generate yaml | ||
|
||
The `clusterctl generate yaml` command processes yaml using clusterct's yaml | ||
processor. | ||
|
||
clusterctl ships with a simple yaml processor that performs variable | ||
substitution that takes into account of default values. | ||
|
||
Variable values are either sourced from the clusterctl config file or | ||
from environment variables. | ||
|
||
Under the hood, clusterctl's yaml processor uses | ||
[drone/envsubst][drone-envsusbt] to replace variables and uses the defaults if | ||
necessary. | ||
|
||
Current usage of the command is as follows: | ||
```bash | ||
# Generates a configuration file with variable values using a template from a | ||
# specific URL. | ||
clusterctl generate yaml --from https://github.com/foo-org/foo-repository/blob/master/cluster-template.yaml | ||
|
||
# Generates a configuration file with variable values using | ||
# a template stored locally. | ||
clusterctl generate yaml --from ~/workspace/cluster-template.yaml | ||
``` | ||
|
||
|
||
<!-- Links --> | ||
[drone-envsusbt]: https://github.com/drone/envsusbt |
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