<commit_before>#!/bin/bash
# This script generates and copies helm charts within the helm tree of this repo.
# Initial setup

set -o errexit
set -o nounset
set -o pipefail
set -x

# shellcheck disable=SC1091
source "/workspace/gcb_env.sh"


WORK_DIR=$(mktemp -d)
HELM_DIR=$(mktemp -d)

echo WORK_DIR = "$WORK_DIR"
echo HELM_DIR = "$HELM_DIR"

# Helm setup
HELM_BUILD_DIR="/workspace/charts"
HELM="helm --home $HELM_DIR"

# Copy Istio release files to WORK_DIR
gsutil cp  "gs://${CB_GCS_BUILD_PATH}/istio-${CB_VERSION}-linux.tar.gz" .
tar -zxf "istio-${CB_VERSION}-linux.tar.gz"
mkdir -vp "$WORK_DIR/istio"
cp -R "./istio-${CB_VERSION}/install" "$WORK_DIR/istio/install"

pushd "$WORK_DIR"
    git clone -b master https://github.com/istio/cni.git
popd


# Charts to extract from repos
CHARTS=(
  "${WORK_DIR}/istio/install/kubernetes/helm/istio"
  "${WORK_DIR}/istio/install/kubernetes/helm/istio-remote"
  "${WORK_DIR}/cni/deployments/kubernetes/install/helm/istio-cni"
)<commit_msg>Adding istio-init chart to release (#11443)<commit_after>#!/bin/bash
# This script generates and copies helm charts within the helm tree of this repo.
# Initial setup

set -o errexit
set -o nounset
set -o pipefail
set -x

# shellcheck disable=SC1091
source "/workspace/gcb_env.sh"


WORK_DIR=$(mktemp -d)
HELM_DIR=$(mktemp -d)

echo WORK_DIR = "$WORK_DIR"
echo HELM_DIR = "$HELM_DIR"

# Helm setup
HELM_BUILD_DIR="/workspace/charts"
HELM="helm --home $HELM_DIR"

# Copy Istio release files to WORK_DIR
gsutil cp  "gs://${CB_GCS_BUILD_PATH}/istio-${CB_VERSION}-linux.tar.gz" .
tar -zxf "istio-${CB_VERSION}-linux.tar.gz"
mkdir -vp "$WORK_DIR/istio"
cp -R "./istio-${CB_VERSION}/install" "$WORK_DIR/istio/install"

pushd "$WORK_DIR"
    git clone -b master https://github.com/istio/cni.git
popd


# Charts to extract from repos
CHARTS=(
  "${WORK_DIR}/istio/install/kubernetes/helm/istio"
  "${WORK_DIR}/istio/install/kubernetes/helm/istio-init"
  "${WORK_DIR}/istio/install/kubernetes/helm/istio-remote"
  "${WORK_DIR}/cni/deployments/kubernetes/install/helm/istio-cni"
)
{'fraction_non_alphanumeric': 0.1505114466634194, 'fraction_numerical': 0.0063321967851924016, 'mean_word_length': 4.551351351351351, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6784558', 'n_tokens_mistral': 829, 'n_tokens_neox': 789, 'n_words': 174}