mirror of https://github.com/istio/istio.io.git
Update grab_operator_yamls.sh script to point to istio/istio (#6352)
This commit is contained in:
parent
664b4453af
commit
b0792d4790
|
@ -44,21 +44,21 @@ rm -f "${output_dir}"/operator.yaml
|
|||
touch "${output_dir}"/operator.yaml
|
||||
echo "operator/*"
|
||||
pushd "${tempdir_operator}" >/dev/null || exit
|
||||
git clone -q --single-branch --branch "${operator_tag}" https://github.com/istio/operator.git
|
||||
pushd operator >/dev/null || exit
|
||||
git clone -q --single-branch --branch "${operator_tag}" https://github.com/istio/istio.git operator
|
||||
pushd operator/operator >/dev/null || exit
|
||||
git checkout -q "${operator_tag}"
|
||||
|
||||
# Generate the profiles
|
||||
for profile in "${operator_profiles[@]}"
|
||||
do
|
||||
cp deploy/crds/istio_v1alpha2_istiocontrolplane_cr.yaml "${output_dir}"/operator-profile-"${profile}".yaml
|
||||
cp deploy/crds/istio_v1alpha1_istiooperator_cr.yaml "${output_dir}"/operator-profile-"${profile}".yaml
|
||||
sed -i "s/profile: default/profile: ${profile}/g" "${output_dir}"/operator-profile-"${profile}".yaml
|
||||
done
|
||||
|
||||
# Great care should be taken when modifying the ordering of this list. This
|
||||
# script cats these files together in order with a yaml separator.
|
||||
|
||||
operator_manifest_files=( "deploy/namespace.yaml" "deploy/crds/istio_v1alpha2_istiocontrolplane_crd.yaml" "deploy/service_account.yaml" "deploy/clusterrole.yaml" "deploy/clusterrole_binding.yaml" "deploy/service.yaml" "deploy/operator.yaml" )
|
||||
operator_manifest_files=( "deploy/namespace.yaml" "deploy/crds/istio_v1alpha1_istiooperator_crd.yaml" "deploy/service_account.yaml" "deploy/clusterrole.yaml" "deploy/clusterrole_binding.yaml" "deploy/service.yaml" "deploy/operator.yaml" )
|
||||
|
||||
# Generate the main manifest
|
||||
cat "${operator_manifest_files[@]}" >> "${output_dir}"/operator.yaml
|
||||
|
|
Loading…
Reference in New Issue