diff --git a/.github/configs/wordlist.txt b/.github/configs/wordlist.txt index 5399dd3c6..2f81774e6 100644 --- a/.github/configs/wordlist.txt +++ b/.github/configs/wordlist.txt @@ -767,4 +767,8 @@ RpsImage BusyLoopOnSandboxStartup DirigentControlPlaneIP InvokeProtocol -autoscaler \ No newline at end of file +autoscaler +FailAt +FailComponent +FailNode +FailureEnabled \ No newline at end of file diff --git a/pkg/config/parser.go b/pkg/config/parser.go index b9ca80815..a39046118 100644 --- a/pkg/config/parser.go +++ b/pkg/config/parser.go @@ -99,7 +99,7 @@ func ReadConfigurationFile(path string) LoaderConfiguration { func ReadFailureConfiguration(path string) *FailureConfiguration { byteValue, err := os.ReadFile(path) if err != nil { - log.Errorf("Failure configuration not found at '%s'...", path) + log.Warnf("Failure configuration not found at '%s'...", path) return &FailureConfiguration{} } diff --git a/pkg/driver/failure/triggers.go b/pkg/driver/failure/triggers.go index 33ee6798d..eabeae496 100644 --- a/pkg/driver/failure/triggers.go +++ b/pkg/driver/failure/triggers.go @@ -12,7 +12,7 @@ import ( const NodeSeparator = " " func ScheduleFailure(platform string, config *config.FailureConfiguration) { - if config.FailAt != 0 && config.FailComponent != "" { + if config != nil && config.FailAt != 0 && config.FailComponent != "" { switch platform { case "Knative", "Knative-RPS": triggerKnativeFailure(config.FailNode, config.FailComponent, config.FailAt)