-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce support for
helm install
(#170)
* Add support for: * Helm install subcommand * Timeout parameter for helm install * Yamllint fixes * Fix variable name * Applied changes based on PR CR * Updated handling of oc_action to be more robust * Updated handling of oc_action to be more robust * Updated handling of oc_action to be more robust Co-authored-by: Øystein Bedin <bedin@redhat.com>
- Loading branch information
Showing
4 changed files
with
30 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
--- | ||
client: oc | ||
default_oc_action: apply | ||
|
||
tmp_inv_dir: '' | ||
|
||
include_tags: '' | ||
exclude_tags: '' | ||
|
||
provision: true | ||
|
||
params_from_vars: {} | ||
|
||
|
||
|
||
########################################################################################## | ||
### OpenShift Client options | ||
# these default values are meant to be replaced runtime if other values are to be used | ||
# - for example 'client=kubectl' | ||
|
||
client: oc | ||
default_oc_action: apply | ||
oc_ignore_unknown_parameters: true | ||
|
||
oc_action_command: >- | ||
| {{ client }} {{ oc_action }} \ | ||
{{ target_namespace }} \ | ||
-f - \ | ||
{{ (oc_action | regex_search('delete')) | ternary(' --ignore-not-found', '') }} \ | ||
{{ (client == 'kubectl' and not (oc_action | regex_search('delete|patch'))) | ternary(' --validate=false', '') }} \ | ||
{{ flags }} | ||
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