move ambient tests to ambient profile (#15241)

Signed-off-by: Faseela K <faseela.k@est.tech>
This commit is contained in:
Faseela K 2024-06-04 22:28:06 +02:00 committed by GitHub
parent 631295fd6a
commit cf4143b18b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 13 deletions

View File

@ -18,12 +18,19 @@ $ kubectl label namespace default istio.io/dataplane-mode-
$ kubectl label namespace default istio.io/use-waypoint-
{{< /text >}}
## Remove waypoint proxies and uninstall Istio
## Remove waypoint proxies
To remove waypoint proxies, installed policies, and uninstall Istio, run the following commands:
{{< text bash >}}
$ istioctl x waypoint delete --all
{{< /text >}}
## Uninstall Istio
To uninstall Istio:
{{< text syntax=bash snip_id=none >}}
$ istioctl uninstall -y --purge
$ kubectl delete namespace istio-system
{{< /text >}}

View File

@ -25,10 +25,8 @@ kubectl label namespace default istio.io/dataplane-mode-
kubectl label namespace default istio.io/use-waypoint-
}
snip_remove_waypoint_proxies_and_uninstall_istio_1() {
snip_remove_waypoint_proxies_1() {
istioctl x waypoint delete --all
istioctl uninstall -y --purge
kubectl delete namespace istio-system
}
snip_remove_the_sample_application_1() {

View File

@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# @setup profile=none
# @setup profile=ambient
set -e
set -u
@ -27,7 +27,6 @@ source "content/en/docs/ambient/getting-started/enforce-auth-policies/snips.sh"
source "content/en/docs/ambient/getting-started/manage-traffic/snips.sh"
source "content/en/docs/ambient/getting-started/cleanup/snips.sh"
snip_install_ambient
snip_install_k8s_gateway_api
_wait_for_deployment istio-system istiod
@ -71,7 +70,7 @@ _verify_lines snip_test_traffic_split "
# @cleanup
snip_remove_the_ambient_and_waypoint_labels_1
snip_remove_waypoint_proxies_and_uninstall_istio_1
snip_remove_waypoint_proxies_1
snip_remove_the_sample_application_1
samples/bookinfo/platform/kube/cleanup.sh
snip_remove_the_kubernetes_gateway_api_crds_1
snip_remove_the_kubernetes_gateway_api_crds_1

View File

@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# @setup profile=none
# @setup profile=ambient
set -e
set -u
@ -31,9 +31,6 @@ source "content/en/docs/ambient/getting-started/cleanup/snips.sh"
# Kubernetes Gateway API CRDs are required by waypoint proxy.
snip_install_k8s_gateway_api
# install istio with ambient profile
snip_install_ambient
_wait_for_deployment istio-system istiod
_wait_for_daemonset istio-system ztunnel
_wait_for_daemonset istio-system istio-cni-node
@ -91,7 +88,7 @@ _verify_same snip_verify_the_traffic_targeting_the_service_3 "$snip_verify_the_t
# @cleanup
snip_cleanup_1
snip_remove_the_ambient_and_waypoint_labels_1
snip_remove_waypoint_proxies_and_uninstall_istio_1
snip_remove_waypoint_proxies_1
snip_remove_the_sample_application_1
samples/bookinfo/platform/kube/cleanup.sh
snip_remove_the_kubernetes_gateway_api_crds_1