Sync from rancher/charts

pull/5/head
Daishan 2020-08-02 10:27:46 -07:00
parent 86a611ad28
commit b559f16e0b
9 changed files with 13 additions and 40 deletions

View File

@ -2,7 +2,7 @@ name: CI-pullrequest
on:
pull_request:
branches: [ master ]
branches: [ gh-pages ]
jobs:
build:

View File

@ -2,7 +2,7 @@ name: CI-push
on:
push:
branches: [ master ]
branches: [ gh-pages ]
jobs:
build:

View File

@ -1 +0,0 @@
partner-charts.rancher.io

View File

@ -1,29 +0,0 @@
apiVersion: v1
entries:
dynatrace-oneagent-operator:
- annotations:
catalog.cattle.io/certified: partner
catalog.cattle.io/namespace: dynatrace-oneagent-operator-system
catalog.cattle.io/release-name: dynatrace-oneagent-operator
apiVersion: v2
appVersion: 0.8.0
created: "2020-07-31T19:17:56.763530948Z"
description: The Dynatrace OneAgent Operator Helm chart for Kubernetes and Openshift
digest: 03e23ce41e3a83dbfa218ed2a59948e34df6d1757f506373a07bc6d359be7c58
home: https://www.dynatrace.com/
icon: https://assets.dynatrace.com/global/resources/Signet_Logo_RGB_CP_512x512px.png
maintainers:
- email: marco.mader@dynatrace.com
name: DTMad
- email: luis.garcia@dynatrace.com
name: lrgar
- email: michael.mayr@dynatrace.com
name: mmayr-at
name: dynatrace-oneagent-operator
sources:
- https://github.com/Dynatrace/helm-charts
type: application
urls:
- https://dev-charts.rancher.io/dynatrace-oneagent-operator/dynatrace-oneagent-operator-0.8.000.tgz
version: 0.8.000
generated: "2020-07-31T19:17:56.735465007Z"

View File

@ -1,5 +1,5 @@
url: https://github.com/Dynatrace/helm-charts
subdirectory: dynatrace-oneagent-operator
commit: dynatrace-oneagent-operator-v0.8.0
commit: b705675f8020979642fe44af51e7886ecf8502ee
type: git
packageVersion: 00

View File

@ -4,7 +4,7 @@ set -e
add=0
for f in packages/*; do
if [[ -z $CHART || $CHART == $(basename -- ${f}) ]]; then
mkdir -p docs/$(basename -- ${f})
mkdir -p assets/$(basename -- ${f})
if [[ -d ${f}/overlay ]]; then
cp -R ${f}/overlay/* ${f}/charts
fi
@ -13,11 +13,12 @@ for f in packages/*; do
packageVersion=$(yq r ${f}/package.yaml packageVersion)
yq w -i ${f}/charts/Chart.yaml 'version' "${version}${packageVersion}"
fi
helm package ${f}/charts --destination docs/$(basename -- ${f})
git checkout docs/$(basename -- ${f})/"$(basename -- ${f})-$(yq r ${f}/charts/Chart.yaml version).tgz" || true
helm package ${f}/charts --destination assets/$(basename -- ${f})
git checkout assets/$(basename -- ${f})/"$(basename -- ${f})-$(yq r ${f}/charts/Chart.yaml version).tgz" 2>/dev/null || true
fi
done
if [[ -n $(git ls-files --other | grep "tgz") ]]; then
helm repo index --merge ./docs/index.yaml --url https://dev-charts.rancher.io docs
helm repo index --merge ./assets/index.yaml --url assets assets
cp ./assets/index.yaml .
fi

View File

@ -27,7 +27,8 @@ for f in packages/*; do
fi
if [[ $type == 'git' ]]; then
mkdir -p /tmp/tmp-charts
git clone $url /tmp/tmp-charts
git clone --depth=1 --no-tags $url /tmp/tmp-charts
git fetch origin $commit
pwd=$(pwd)
cd /tmp/tmp-charts
git checkout $commit

View File

@ -19,9 +19,10 @@ for f in packages/*; do
mkdir -p ${f}/charts
if [[ $type == 'git' ]]; then
mkdir -p /tmp/tmp-charts
git clone $url /tmp/tmp-charts
git clone --depth=1 --no-tags $url /tmp/tmp-charts
pwd=$(pwd)
cd /tmp/tmp-charts
git fetch origin $commit
git checkout $commit
cd $pwd
rm -rf ${f}/charts