Skip to content

Instantly share code, notes, and snippets.

@mcdan
Created January 31, 2020 18:11
Show Gist options
  • Save mcdan/765bd6c4b131e91d4a55bf284e59475e to your computer and use it in GitHub Desktop.
Save mcdan/765bd6c4b131e91d4a55bf284e59475e to your computer and use it in GitHub Desktop.
Deploying Newer Helm Charts

Zookeeper

This branch has all the changes I am proposing into upstream: https://git.corp.adobe.com/bladerunner/helm-charts/tree/bladerunner/zookeeper

To build:

cd helm-charts
git checkout bladerunner/zookeeper
cd incubator
helm package zookeeper
helm-publish zookeeper-2.1.3.tgz

Kafka

This branch has all the changes I am proposing into upstream: https://git.corp.adobe.com/bladerunner/helm-charts/tree/bladerunner/kafka

To build:

cd helm-charts
git checkout bladerunner/kafka
cd incubator
helm package kafka
helm-publish kafka-0.20.9.tgz
#!/bin/bash
packagePath=$1
isMac=$(uname -a | grep -c Darwin || true)
if [ ! -f "${packagePath}" ]; then
printf "Could not find helm packagePath to deploy: %s\n" ${packagePath}
exit 1
fi
if [ -z "${ARTIFACTORY_AUTH_TOKEN}" ]; then
printf "Please set the environment variable ARTIFACTORY_AUTH_TOKEN to your auth token.\n"
exit 1
fi
if [ ${isMac} -eq 1 ]; then
md5Command="md5 -q"
sha1command="shasum"
else
md5Command="md5sum"
sha1command="sha1sum"
fi
packageName=$(basename "${packagePath}")
ARTIFACT_MD5_CHECKSUM=$(${md5Command} "${packagePath}" | awk '{print $1}')
ARTIFACT_SHA1_CHECKSUM=$(${sha1command} "${packagePath}" | awk '{ print $1 }')
curl --fail -H "X-Checksum-MD5:${ARTIFACT_MD5_CHECKSUM}" \
-H "X-Checksum-Sha1:${ARTIFACT_SHA1_CHECKSUM}" \
-H "X-JFrog-Art-Api: ${ARTIFACTORY_AUTH_TOKEN}" -T "${packagePath}" \
"https://artifactory.corp.adobe.com/artifactory/list/helm-bladerunner-snapshot/${packageName}"%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment