https://github.com/nhomble/helm-contains
check for existence
https://github.com/nhomble/helm-contains
helm helm-plugin
Last synced: 3 months ago
JSON representation
check for existence
- Host: GitHub
- URL: https://github.com/nhomble/helm-contains
- Owner: nhomble
- License: cc0-1.0
- Created: 2021-06-29T04:43:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-29T05:29:33.000Z (almost 4 years ago)
- Last Synced: 2025-01-21T00:47:27.587Z (4 months ago)
- Topics: helm, helm-plugin
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= helm contains
image:https://github.com/nhomble/helm-contains/actions/workflows/check-install.yml/badge.svg[Check Install] image:https://github.com/nhomble/helm-contains/actions/workflows/linter.yml/badge.svg[Linter]
[.lead]
check for existence of chart== Usage
[source,bash]
----
if [[ $(helm contains ${CHART_NAME}) = "true" ]]; then
echo "exists"
else
echo "nope"
fi
----And helm args are used as expected
[source,bash]
----
if [[ $(helm contains ${CHART_NAME} -n ${NOT_DEFAULT_NAMESPACE}) = "true" ]]; then
echo "exists"
fi
----== Install
[source,bash]
----
helm plugin install https://github.com/nhomble/helm-contains
----