Skip to content

Commit

Permalink
chore: change selection template labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed Dec 23, 2024
1 parent 3723ea2 commit 7d17bc8
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions extaz/availability_zone_attack_blackhole.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ func (e *azBlackholeAction) Describe() action_kit_api.ActionDescription {
TargetType: azTargetType,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by zone",
Label: "zone",
Description: extutil.Ptr("Find zone by name"),
Query: "aws.zone=\"\"",
},
{
Label: "by zone-id",
Label: "zone-id",
Description: extutil.Ptr("Find zone by zone id"),
Query: "aws.zone.id=\"\"",
},
Expand Down
4 changes: 2 additions & 2 deletions extec2/instance_attack_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ func (e *ec2InstanceStateAction) Describe() action_kit_api.ActionDescription {
TargetType: ec2TargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by instance-id",
Label: "instance-id",
Description: extutil.Ptr("Find ec2-instance by instance-id"),
Query: "aws-ec2.instance.id=\"\"",
},
{
Label: "by instance-name",
Label: "instance-name",
Description: extutil.Ptr("Find ec2-instance by instance-name"),
Query: "aws-ec2.instance.name=\"\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extecs/service_attack_scale.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (e *ecsServiceScaleAction) Describe() action_kit_api.ActionDescription {
TargetType: ecsServiceTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by service and cluster",
Label: "cluster and service",
Description: extutil.Ptr("Find ecs service by cluster and service name"),
Query: "aws-ecs.cluster.name=\"\" and aws-ecs.service.name=\"\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extecs/service_event_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (f EcsServiceEventLogAction) Describe() action_kit_api.ActionDescription {
QuantityRestriction: extutil.Ptr(action_kit_api.All),
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "default",
Label: "cluster and service",
Description: extutil.Ptr("Find service by cluster and service name"),
Query: "aws-ecs.cluster.name=\"\" AND aws-ecs.service.name=\"\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extecs/service_task_count_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (f EcsServiceTaskCountCheckAction) Describe() action_kit_api.ActionDescript
QuantityRestriction: extutil.Ptr(action_kit_api.All),
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "default",
Label: "cluster and service",
Description: extutil.Ptr("Find service by cluster and service name"),
Query: "aws-ecs.cluster.name=\"\" AND aws-ecs.service.name=\"\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extecs/task_attack_ssm.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func newEcsTaskSsmAction(makeDescription func() action_kit_api.ActionDescription
TargetType: ecsTaskTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by service and cluster",
Label: "cluster and service",
Description: extutil.Ptr("Find ecs task by cluster and service name"),
Query: "aws-ecs.cluster.name=\"\" and aws-ecs.service.name=\"\" and aws-ecs.task.amazon-ssm-agent=\"true\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extecs/task_attack_stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (e *ecsTaskStopAction) Describe() action_kit_api.ActionDescription {
TargetType: ecsTaskTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by service and cluster",
Label: "cluster and service",
Description: extutil.Ptr("Find ecs task by cluster and service name"),
Query: "aws-ecs.cluster.name=\"\" and aws-ecs.service.name=\"\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extelasticache/node_group_attack_failover.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (f elasticacheNodeGroupFailoverAttack) Describe() action_kit_api.ActionDesc
TargetType: elasticacheNodeGroupTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by elasticache nodegroup id",
Label: "elasticache nodegroup id",
Description: extutil.Ptr("Find node groups by replication group id and node group id"),
Query: "aws.elasticache.replication-group.id=\"\" and aws.elasticache.replication-group.node-group.id=\"\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extelb/alb_attack_static_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (e *albStaticResponseAction) Describe() action_kit_api.ActionDescription {
TargetType: albTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by name",
Label: "name",
Description: extutil.Ptr("Find load balancer by name"),
Query: "aws-elb.alb.name=\"\"",
},
Expand Down
4 changes: 2 additions & 2 deletions extfis/start_experiment.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ func (f FisExperimentAction) Describe() action_kit_api.ActionDescription {
QuantityRestriction: extutil.Ptr(action_kit_api.ExactlyOne),
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by template-id",
Label: "template-id",
Description: extutil.Ptr("Find fis-template by template-id"),
Query: "aws.fis.experiment.template.id=\"\"",
},
{
Label: "by template-name",
Label: "template-name",
Description: extutil.Ptr("Find fis-template by template-name"),
Query: "aws.fis.experiment.template.name=\"\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extlambda/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
TargetType: lambdaTargetID,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by function name",
Label: "function name",
Query: "aws.lambda.function-name=\"\"",
},
}),
Expand Down
2 changes: 1 addition & 1 deletion extmsk/reboot_broker_attack.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (f mskRebootBrokerAttack) Describe() action_kit_api.ActionDescription {
TargetType: mskBrokerTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by msk cluster id and broker id",
Label: "msk cluster id and broker id",
Description: extutil.Ptr("Find broker by id and cluster id"),
Query: "aws.msk.cluster.id=\"\" and aws.msk.cluster.broker.id=\"\"",
},
Expand Down
2 changes: 1 addition & 1 deletion extrds/cluster_attack_failover.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (f rdsClusterFailoverAttack) Describe() action_kit_api.ActionDescription {
TargetType: rdsClusterTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by rds cluster id",
Label: "rds cluster id",
Query: "aws.rds.cluster.id=\"\"",
},
}),
Expand Down
2 changes: 1 addition & 1 deletion extrds/instance_attack_reboot.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (f rdsInstanceRebootAttack) Describe() action_kit_api.ActionDescription {
TargetType: rdsInstanceTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by rds instance id",
Label: "rds instance id",
Query: "aws.rds.instance.id=\"\"",
},
}),
Expand Down
2 changes: 1 addition & 1 deletion extrds/instance_attack_stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (f rdsInstanceStopAttack) Describe() action_kit_api.ActionDescription {
TargetType: rdsInstanceTargetId,
SelectionTemplates: extutil.Ptr([]action_kit_api.TargetSelectionTemplate{
{
Label: "by rds instance id",
Label: "rds instance id",
Query: "aws.rds.instance.id=\"\"",
},
}),
Expand Down

0 comments on commit 7d17bc8

Please sign in to comment.