-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add helm installation steps for multi-cluster #15459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
istio-testing
merged 61 commits into
istio:master
from
nshankar13:nshankar/helm-multicluster-install-steps
Nov 23, 2024
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
e124a45
Add helm installation steps for multi-primary
nshankar13 29c43f6
Update clusterid
nshankar13 e57043c
Update config steps
nshankar13 4414af2
Edit steps
nshankar13 cd76042
Update multi-primary steps
nshankar13 f794a65
Update files and docs
nshankar13 ed24633
Add primary-remote steps
nshankar13 5884f48
Edit spacing
nshankar13 5d95d6a
Remove var
nshankar13 37d6088
Fix cluster name
nshankar13 870a964
Update snips
nshankar13 742d426
Update docs
nshankar13 f04601e
Update commands
nshankar13 4de0b70
Update docs
nshankar13 bbdf866
Update note
nshankar13 beba394
Resolve comments and UTs
nshankar13 91aa5ab
Add quotes
nshankar13 8e8d784
Run make gen
nshankar13 edb980f
Add more quotes
nshankar13 0ac81a9
Fix lints
nshankar13 04e065a
fix lint and spelling
nshankar13 063fb10
Update tests
nshankar13 b1ae4b3
Add new tests for helm
nshankar13 f950f01
Fix test
nshankar13 acd82b5
Update go.mod
nshankar13 7e329e5
Update installation scripts
nshankar13 83cae5f
Update helm repo setup scripts
nshankar13 0ad0344
Update cleanup steps
nshankar13 42894b7
Update script and lint
nshankar13 917d893
update cleanup step
nshankar13 6949cfd
Update cleanup steps
nshankar13 bcaf949
Update cleanup steps
nshankar13 053973b
Fix cleanup script
nshankar13 38470a8
Fix installation steps
nshankar13 3174716
Update scripts
nshankar13 8e0105f
Update istio-system ns creation steps
nshankar13 ad528e0
Fix CRD cleanup
nshankar13 1022641
Update Helm CRD Cleanup
nshankar13 89a0bbb
Update cleanup
nshankar13 554342c
Remove additional var
nshankar13 1270918
Resolve comments
nshankar13 42ca1db
fix go.mod
nshankar13 bb9a621
Fix lint
nshankar13 8bd2b9d
update charts for remote profile
nshankar13 876e1a7
Update indentation
nshankar13 6a33956
Update indentation
nshankar13 00c9795
Fix lint
nshankar13 768e8ce
Fix numbering
nshankar13 0e9214a
Update installation steps
nshankar13 49e09fa
Add missing steps
nshankar13 25b913a
Update cleanup steps
nshankar13 51d19b9
Fix indentation
nshankar13 20d86ef
Update indentation
nshankar13 244acc5
Resolve comments
nshankar13 ab7aa69
Resolve comments
nshankar13 251237f
update go.mod
nshankar13 b283476
remove cleanup
nshankar13 573f5d4
Update CRD cleanup
nshankar13 14397c8
Update cleanup
nshankar13 276b87c
Update cleanup
nshankar13 56d1433
Rebase and update cleanup
nshankar13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
content/en/docs/setup/install/multicluster/multi-primary/helm_test.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#!/usr/bin/env bash | ||
# shellcheck disable=SC1090,SC2154 | ||
|
||
# Copyright Istio Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# @setup multicluster | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
source content/en/docs/setup/install/multicluster/common.sh | ||
set_single_network_vars | ||
setup_helm_repo | ||
|
||
function install_istio_helm { | ||
# Install Istio on the 2 clusters. Executing in | ||
# parallel to reduce test time. | ||
install_istio_on_cluster1_helm & | ||
install_istio_on_cluster2_helm & | ||
wait | ||
} | ||
|
||
function install_istio_on_cluster1_helm { | ||
echo "Installing Istio on Primary cluster: ${CTX_CLUSTER1}" | ||
snip_configure_cluster1_as_a_primary_3 | ||
snip_configure_cluster1_as_a_primary_4 | ||
} | ||
|
||
function install_istio_on_cluster2_helm { | ||
echo "Installing Istio on Primary cluster: ${CTX_CLUSTER2}" | ||
snip_configure_cluster2_as_a_primary_3 | ||
snip_configure_cluster2_as_a_primary_4 | ||
} | ||
|
||
function enable_endpoint_discovery { | ||
snip_enable_endpoint_discovery_1 | ||
snip_enable_endpoint_discovery_2 | ||
} | ||
|
||
time configure_trust | ||
time install_istio_helm | ||
time enable_endpoint_discovery | ||
time verify_load_balancing | ||
|
||
# @cleanup | ||
source content/en/docs/setup/install/multicluster/common.sh | ||
set_single_network_vars | ||
|
||
function cleanup_cluster1_helm { | ||
snip_cleanup_3 | ||
snip_cleanup_4 | ||
snip_delete_sample_ns_cluster_1 | ||
} | ||
|
||
function cleanup_cluster2_helm { | ||
snip_cleanup_5 | ||
snip_cleanup_6 | ||
snip_delete_sample_ns_cluster_2 | ||
} | ||
|
||
function cleanup_helm { | ||
cleanup_cluster1_helm | ||
cleanup_cluster2_helm | ||
snip_delete_crds | ||
} | ||
|
||
time cleanup_helm | ||
|
||
# Everything should be removed once cleanup completes. Use a small | ||
# timeout for comparing cluster snapshots before/after the test. | ||
export VERIFY_TIMEOUT=20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.