removing the helm chart

This commit is contained in:
Arsham Teymouri
2021-08-23 11:26:12 +03:00
parent 64816c14e5
commit cfe1363958
19 changed files with 8 additions and 888 deletions
+8 -15
View File
@@ -25,23 +25,15 @@ stages:
.deploy-k8s: &deploy-k8s
image: paritytech/kubetools:3.5.3
script:
- echo "Deploying using image $BACKEND_IMAGE_FULL_NAME"
- echo "Using Helm `helm version --short`"
- export KUBERNETES_VERSION_TAG="$CI_PIPELINE_ID"
- |-
echo "Deploying using image $BACKEND_IMAGE_FULL_NAME"
echo "Using Helm `helm version --short`"
export KUBERNETES_VERSION_TAG="$CI_PIPELINE_ID"
sed -i "s/version:.*/version: $KUBERNETES_VERSION_TAG/" ./helm/Chart.yaml
- |-
sed -i "s/appVersion:.*/appVersion: $KUBERNETES_VERSION_TAG/" ./helm/Chart.yaml
# validate the chart
- helm template
--create-namespace
--namespace $KUBE_NAMESPACE
--set image.backend.repository="${CONTAINER_REGISTRY}/${BACKEND_CONTAINER_REPO}"
--set image.backend.tag="${CI_COMMIT_SHORT_SHA}"
--set image.frontend.repository="${CONTAINER_REGISTRY}/${FRONTEND_CONTAINER_REPO}"
--set image.frontend.tag="${CI_COMMIT_SHORT_SHA}"
$KUBE_NAMESPACE ./helm/
# install the chart into the relevant cluster
- |-
helm repo add parity https://paritytech.github.io/helm-charts/
helm repo update
- helm upgrade
--install
--atomic
@@ -52,7 +44,8 @@ stages:
--set image.backend.tag="${CI_COMMIT_SHORT_SHA}"
--set image.frontend.repository="${CONTAINER_REGISTRY}/${FRONTEND_CONTAINER_REPO}"
--set image.frontend.tag="${CI_COMMIT_SHORT_SHA}"
$KUBE_NAMESPACE ./helm/
--values https://gitlab.parity.io/parity/infrastructure/cloud-infra/-/raw/master/parity-stg/kubernetes/helm/substrate-telemetry/values-parity.yaml
$KUBE_NAMESPACE parity/substrate-telemetry
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success