 |
Subscribe to this site |
|
test

Published 4 months ago
by
Reid
def helm_push(Map config = [HELM_CHART:"HELM_CHART_NAME", DESTINATION:"dev", NEW: "sdfsf"]){
println(config.HELM_CHART)
println(config.DESTINATION)
println(config.NEW)
}
def helm_push2(Map config) {
HELM_CHART = config.HELM_CHART ?: "HELM_CHART_NAME"
DESTINATION = config.DESTINATION ?: "dev"
NEW = config.NEW ?: "safasf"
println(HELM_CHART)
println(DESTINATION)
println(NEW)
}
helm_push([DESTINATION: "prod"])
helm_push2([HELM_CHART:"Chart Name", DESTINATION:"prod"])