From de27fd9170ad73ad188e0e924b43ea324fb5e1a3 Mon Sep 17 00:00:00 2001 From: Neelanjan Manna Date: Thu, 2 Jun 2022 15:16:32 +0530 Subject: [PATCH] Updates GCP experiment charts (#548) * removed .DS_Store Signed-off-by: Neelanjan Manna * corrected gcp-vm-instance-stop-by-label charts Signed-off-by: Neelanjan Manna * updated experiment charts Signed-off-by: Neelanjan Manna * updated experiment descriptions Signed-off-by: Neelanjan Manna * updated instance-stop-by-label charts for INSTANCE_AFFECTED_PERC env Signed-off-by: Neelanjan Manna --- charts/gcp/gcp-vm-disk-loss-by-label/experiment.yaml | 2 +- .../gcp-vm-disk-loss-by-label.chartserviceversion.yaml | 2 +- charts/gcp/gcp-vm-disk-loss/experiment.yaml | 2 +- .../gcp-vm-disk-loss.chartserviceversion.yaml | 2 +- charts/gcp/gcp-vm-instance-stop-by-label/engine.yaml | 5 +++++ .../gcp/gcp-vm-instance-stop-by-label/experiment.yaml | 7 ++++++- ...-vm-instance-stop-by-label.chartserviceversion.yaml | 10 +++++----- charts/gcp/gcp-vm-instance-stop/experiment.yaml | 2 +- .../gcp-vm-instance-stop.chartserviceversion.yaml | 2 +- 9 files changed, 22 insertions(+), 12 deletions(-) diff --git a/charts/gcp/gcp-vm-disk-loss-by-label/experiment.yaml b/charts/gcp/gcp-vm-disk-loss-by-label/experiment.yaml index 9cf031b..773443c 100644 --- a/charts/gcp/gcp-vm-disk-loss-by-label/experiment.yaml +++ b/charts/gcp/gcp-vm-disk-loss-by-label/experiment.yaml @@ -1,7 +1,7 @@ apiVersion: litmuschaos.io/v1alpha1 description: message: | - gcp vm disk loss by label experiment detaches the target persistent disk volumes by label for a fixed duration of time + Causes loss of a non-boot storage persistent disk from a GCP VM instance filtered by a label for a specified duration before attaching them back kind: ChaosExperiment metadata: name: gcp-vm-disk-loss-by-label diff --git a/charts/gcp/gcp-vm-disk-loss-by-label/gcp-vm-disk-loss-by-label.chartserviceversion.yaml b/charts/gcp/gcp-vm-disk-loss-by-label/gcp-vm-disk-loss-by-label.chartserviceversion.yaml index 620fca3..2aa5bee 100644 --- a/charts/gcp/gcp-vm-disk-loss-by-label/gcp-vm-disk-loss-by-label.chartserviceversion.yaml +++ b/charts/gcp/gcp-vm-disk-loss-by-label/gcp-vm-disk-loss-by-label.chartserviceversion.yaml @@ -8,7 +8,7 @@ metadata: spec: displayName: gcp-vm-disk-loss-by-label categoryDescription: > - gcp vm disk loss by label experiment detaches the target persistent disk volumes by label for a fixed duration of time + Causes loss of a non-boot storage persistent disk from a GCP VM instance filtered by a label for a specified duration before attaching them back keywords: - "Disk" - "GCP" diff --git a/charts/gcp/gcp-vm-disk-loss/experiment.yaml b/charts/gcp/gcp-vm-disk-loss/experiment.yaml index cb3cb87..dc9fa37 100644 --- a/charts/gcp/gcp-vm-disk-loss/experiment.yaml +++ b/charts/gcp/gcp-vm-disk-loss/experiment.yaml @@ -1,7 +1,7 @@ apiVersion: litmuschaos.io/v1alpha1 description: message: | - Causes loss of a non-boot storage persistent disk from a GCP VM instance for a specified duration of time + Causes loss of a non-boot storage persistent disk from a GCP VM instance for a specified duration before attaching them back kind: ChaosExperiment metadata: name: gcp-vm-disk-loss diff --git a/charts/gcp/gcp-vm-disk-loss/gcp-vm-disk-loss.chartserviceversion.yaml b/charts/gcp/gcp-vm-disk-loss/gcp-vm-disk-loss.chartserviceversion.yaml index c528124..452dffe 100644 --- a/charts/gcp/gcp-vm-disk-loss/gcp-vm-disk-loss.chartserviceversion.yaml +++ b/charts/gcp/gcp-vm-disk-loss/gcp-vm-disk-loss.chartserviceversion.yaml @@ -8,7 +8,7 @@ metadata: spec: displayName: gcp-vm-disk-loss categoryDescription: > - Causes loss of a non-boot storage persistent disk from a GCP VM instance for a specified duration of time + Causes loss of a non-boot storage persistent disk from a GCP VM instance for a specified duration before attaching them back keywords: - "Disk" - "GCP" diff --git a/charts/gcp/gcp-vm-instance-stop-by-label/engine.yaml b/charts/gcp/gcp-vm-instance-stop-by-label/engine.yaml index f4c62c4..34bf1be 100644 --- a/charts/gcp/gcp-vm-instance-stop-by-label/engine.yaml +++ b/charts/gcp/gcp-vm-instance-stop-by-label/engine.yaml @@ -39,3 +39,8 @@ spec: # enable it if the target instances are a part of a managed instance group - name: MANAGED_INSTANCE_GROUP value: 'disable' + + # set the percentage value of the instances with the given label + # which should be targeted as part of the chaos injection + - name: INSTANCE_AFFECTED_PERC + value: '' \ No newline at end of file diff --git a/charts/gcp/gcp-vm-instance-stop-by-label/experiment.yaml b/charts/gcp/gcp-vm-instance-stop-by-label/experiment.yaml index 5fe8081..4091b8f 100644 --- a/charts/gcp/gcp-vm-instance-stop-by-label/experiment.yaml +++ b/charts/gcp/gcp-vm-instance-stop-by-label/experiment.yaml @@ -1,7 +1,7 @@ apiVersion: litmuschaos.io/v1alpha1 description: message: | - gcp-vm-instance stop by label experiment causes gcp vm instances specified by a label to be stopped for a given time duration + Stops GCP VM instances and GKE nodes filtered by a label for a specified duration and later restarts them kind: ChaosExperiment metadata: name: gcp-vm-instance-stop-by-label @@ -78,6 +78,11 @@ spec: # enable it if the target instance is a part of a managed instance group - name: MANAGED_INSTANCE_GROUP value: 'disable' + + # set the percentage value of the instances with the given label + # which should be targeted as part of the chaos injection + - name: INSTANCE_AFFECTED_PERC + value: '' labels: name: gcp-vm-instance-stop-by-label diff --git a/charts/gcp/gcp-vm-instance-stop-by-label/gcp-vm-instance-stop-by-label.chartserviceversion.yaml b/charts/gcp/gcp-vm-instance-stop-by-label/gcp-vm-instance-stop-by-label.chartserviceversion.yaml index fb6bba5..f14399d 100644 --- a/charts/gcp/gcp-vm-instance-stop-by-label/gcp-vm-instance-stop-by-label.chartserviceversion.yaml +++ b/charts/gcp/gcp-vm-instance-stop-by-label/gcp-vm-instance-stop-by-label.chartserviceversion.yaml @@ -1,14 +1,14 @@ apiVersion: litmuchaos.io/v1alpha1 kind: ChartServiceVersion metadata: - name: gcp + name: gcp-vm-instance-stop-by-label version: 0.1.0 annotations: categories: gcp spec: - displayName: gcp-vm-disk-loss-by-label + displayName: gcp-vm-instance-stop-by-label categoryDescription: > - Stops GCP VM instances and GKE nodes filtered by a label for a specified duration of time and later restarts them + Stops GCP VM instances and GKE nodes filtered by a label for a specified duration and later restarts them keywords: - "VM" - "GCP" @@ -26,8 +26,8 @@ spec: app.kubernetes.io/version: latest links: - name: Documentation - url: https://litmuschaos.github.io/litmus/experiments/categories/gcp/gcp-vm-disk-loss-by-label/ + url: https://litmuschaos.github.io/litmus/experiments/categories/gcp/gcp-vm-instance-stop-by-label/ icon: - url: mediatype: "" - chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/gcp/gcp-vm-disk-loss-by-label/experiment.yaml + chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/gcp/gcp-vm-instance-stop-by-label/experiment.yaml diff --git a/charts/gcp/gcp-vm-instance-stop/experiment.yaml b/charts/gcp/gcp-vm-instance-stop/experiment.yaml index d26e431..f1a60ab 100644 --- a/charts/gcp/gcp-vm-instance-stop/experiment.yaml +++ b/charts/gcp/gcp-vm-instance-stop/experiment.yaml @@ -1,7 +1,7 @@ apiVersion: litmuschaos.io/v1alpha1 description: message: | - Stops GCP VM instances and GKE nodes for a specified duration of time and later restarts them + Stops GCP VM instances and GKE nodes for a specified duration and later restarts them kind: ChaosExperiment metadata: name: gcp-vm-instance-stop diff --git a/charts/gcp/gcp-vm-instance-stop/gcp-vm-instance-stop.chartserviceversion.yaml b/charts/gcp/gcp-vm-instance-stop/gcp-vm-instance-stop.chartserviceversion.yaml index fbb2ad8..6b8aab2 100644 --- a/charts/gcp/gcp-vm-instance-stop/gcp-vm-instance-stop.chartserviceversion.yaml +++ b/charts/gcp/gcp-vm-instance-stop/gcp-vm-instance-stop.chartserviceversion.yaml @@ -8,7 +8,7 @@ metadata: spec: displayName: gcp-vm-instance-stop categoryDescription: > - Stops GCP VM instances and GKE nodes for a specified duration of time and later restarts them + Stops GCP VM instances and GKE nodes for a specified duration and later restarts them keywords: - "VM" - "GCP"