fix typos

This commit is contained in:
Nikola Jokic 2025-06-10 13:31:55 +02:00
parent 99c79734bd
commit ce10608956
No known key found for this signature in database
GPG Key ID: E4104494F9B8DDF6
3 changed files with 7 additions and 3 deletions

View File

@ -80,7 +80,7 @@ spec:
certificatePath: {{ .Values.keyVault.azureKeyVault.certificatePath }}
secretKey: {{ .Values.keyVault.azureKeyVault.secretKey }}
{{- else }}
{{- fail "Unsupported vaultConfig type: " .Values.vaultConfig.type }}
{{- fail "Unsupported keyVault type: " .Values.keyVault.type }}
{{- end }}
{{- end }}

View File

@ -91,7 +91,11 @@ func Read(ctx context.Context, configPath string) (*Config, error) {
return nil, fmt.Errorf("config validation failed: %w", err)
}
return &config, ctx.Err()
if ctx.Err() != nil {
return nil, ctx.Err()
}
return &config, nil
}
// Validate checks the configuration for errors.

View File

@ -69,7 +69,7 @@ func TestConfigValidationAppKey(t *testing.T) {
RunnerScaleSetId: 1,
}
err := config.Validate()
expectedError := "AppConfig validation failed: no credentials provided: either a PAT or GitHub App credentials should be provide"
expectedError := "AppConfig validation failed: no credentials provided: either a PAT or GitHub App credentials should be provided"
assert.ErrorContains(t, err, expectedError, "Expected error about missing auth")
})
}