Skip to content

Instantly share code, notes, and snippets.

View alice-sawatzky's full-sized avatar

Alice alice-sawatzky

View GitHub Profile
#!/bin/bash
function helm::adopt() {
local chart_name=${1}
local release_name=${2}
local manifest_file_path=${3}
local tiller_namespace=${4:-kube-system}
# Check that the release has not been created yet
if [[ "$(kubectl get -n ${tiller_namespace} cm -l NAME=${release_name},OWNER=TILLER -o name)" != "" ]] ; then