You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Added
New displayName and variables.exampeValues properties in draft.yaml
# draft.yamllanguage: swiftdisplayName: Swift # Add a display name for the selected resource (language/deploymentType/addon)variables:
- name: "VERSION"description: "the version of swift used by the application"exampleValues: ["5.5","5.4"] # New optional field that is used to populate draft info, and which could be used in the cli for suggestions in the future.variableDefaults:
- name: "VERSION"value: 5.5
Added --dry-run and --dry-run-file flags to create command
--dry-run enables dry run mode in which no files are written to disk, prints the dry run summary to stdout
--dry-run-file specifies a file to write the dry run summary in json format (requires --dry-run flag)
# Example dry run output
{
"variables": {
"APPNAME": "testapp",
"BUILDERVERSION": "null",
"IMAGENAME": "testapp",
"LANGUAGE": "gomodule", # Note that this variable is in addition to the draft config variables"NAMESPACE": "default",
"PORT": "1323",
"SERVICEPORT": "80",
"VERSION": "1.18"
},
"filesToWrite": [
"langtest/.dockerignore",
"langtest/Dockerfile",
"langtest/charts/.helmignore",
"langtest/charts/Chart.yaml",
"langtest/charts/production.yaml",
"langtest/charts/templates/_helpers.tpl",
"langtest/charts/templates/deployment.yaml",
"langtest/charts/templates/namespace.yaml",
"langtest/charts/templates/service.yaml",
"langtest/charts/values.yaml"
]
}
Changed
BREAKING - info command output format includes additional information for supported languages with the following format changes:
keys are now camelCase
supportedLanguages is now an array of objects, enriched with displayName and exampleValues
# Example of the new info command output format
{
# keys are now camelCase, so supported_languages is now supportedLanguages"supportedLanguages": [
{
"name": "javascript",
"displayName": "JavaScript", # new field"exampleValues": { # new field"VERSION": [
"14.0",
"16.0"
]
}
},
...
],
# keys are now camelCase, so supported_deployment_types is now supportedDeploymentTypes"supportedDeploymentTypes": [
"helm",
...
]
}