Skip to content

Commit

Permalink
Merge pull request #165 from steadybit/feat/advice_experiment_templates
Browse files Browse the repository at this point in the history
chore: Renaming Freemarker-based templates to official file extension (.ftl)
  • Loading branch information
ManuelGerding authored Dec 19, 2024
2 parents d0b0a96 + 840820a commit 3f677f7
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GetAdviceDescriptionEphemeralStorageLimit() advice_kit_api.AdviceDefinition
Type: "EXPERIMENT",
Name: "Ephemeral Storage Overload",
ShortDescription: "Check how ${target.attr('steadybit.label')} behaves when exceeding the ephemeral storage limit and whether your remaining Kubernetes resources at the host function properly.",
Experiment: extutil.Ptr(advice_kit_api.Experiment(advice_common.ReadAdviceFile(EphemeralStorageLimitContent, "experiment_ephemeral_storage_limit.json"))),
Experiment: extutil.Ptr(advice_kit_api.Experiment(advice_common.ReadAdviceFile(EphemeralStorageLimitContent, "experiment_ephemeral_storage_limit.json.ftl"))),
},
}),
},
Expand Down
2 changes: 1 addition & 1 deletion extadvice/probes/probes.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GetAdviceDescriptionProbes() advice_kit_api.AdviceDefinition {
Type: "EXPERIMENT",
Name: "Container's Unhealthiness Is Detected Within Expected Failure Rates",
ShortDescription: "Verify that Kubernetes can detect an unhealthy container of gateway, restarts the container, and routes traffic afterward within the expected failure rates.",
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(ProbesContent, "experiment_pod_lifecycle.json_template"))),
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(ProbesContent, "experiment_pod_lifecycle.json.ftl"))),
},
}),
},
Expand Down
2 changes: 1 addition & 1 deletion extadvice/single_aws_zone/single_aws_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GetAdviceDescriptionSingleAwsZone() advice_kit_api.AdviceDefinition {
Type: "EXPERIMENT",
Name: "Availability Zone Outage",
ShortDescription: "When a single AWS availability zone fails, there are still pods of ${target.attr('steadybit.label')} ready to continue providing offered features.",
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(SingleAwsZoneContent, "experiment_zone_outage.json_template"))),
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(SingleAwsZoneContent, "experiment_zone_outage.json.ftl"))),
},
}),
},
Expand Down
2 changes: 1 addition & 1 deletion extadvice/single_azure_zone/single_azure_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GetAdviceDescriptionSingleAzureZone() advice_kit_api.AdviceDefinition {
Type: "EXPERIMENT",
Name: "Availability Zone Outage",
ShortDescription: "When a single Azure availability zone fails, there are still pods of ${target.attr('steadybit.label')} ready to continue providing offered features.",
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(SingleAzureZoneContent, "experiment_zone_outage.json_template"))),
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(SingleAzureZoneContent, "experiment_zone_outage.json.ftl"))),
},
}),
},
Expand Down
2 changes: 1 addition & 1 deletion extadvice/single_gcp_zone/single_gcp_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GetAdviceDescriptionSingleGcpZone() advice_kit_api.AdviceDefinition {
Type: "EXPERIMENT",
Name: "Availability Zone Outage",
ShortDescription: "When a single GCP availability zone fails, there are still pods of ${target.attr('steadybit.label')} ready to continue providing offered features.",
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(SingleGcpZoneContent, "experiment_zone_outage.json_template"))),
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(SingleGcpZoneContent, "experiment_zone_outage.json.ftl"))),
},
}),
},
Expand Down
2 changes: 1 addition & 1 deletion extadvice/single_replica/single_replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func GetAdviceDescriptionSingleReplica() advice_kit_api.AdviceDefinition {
Type: "EXPERIMENT",
Name: "Single Pod Failure",
ShortDescription: "In case one pod of ${target.attr('steadybit.label')} fails, Kubernetes manages this accordingly by routing the traffic to the other pods within expected failure rates.",
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(SingleReplicaContent, "experiment_pod_failure.json_template"))),
ExperimentTemplate: extutil.Ptr(advice_kit_api.ExperimentTemplate(advice_common.ReadAdviceFile(SingleReplicaContent, "experiment_pod_failure.json.ftl"))),
},
}),
},
Expand Down

0 comments on commit 3f677f7

Please sign in to comment.