fix typos
This commit is contained in:
parent
99c79734bd
commit
ce10608956
|
|
@ -80,7 +80,7 @@ spec:
|
||||||
certificatePath: {{ .Values.keyVault.azureKeyVault.certificatePath }}
|
certificatePath: {{ .Values.keyVault.azureKeyVault.certificatePath }}
|
||||||
secretKey: {{ .Values.keyVault.azureKeyVault.secretKey }}
|
secretKey: {{ .Values.keyVault.azureKeyVault.secretKey }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- fail "Unsupported vaultConfig type: " .Values.vaultConfig.type }}
|
{{- fail "Unsupported keyVault type: " .Values.keyVault.type }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,11 @@ func Read(ctx context.Context, configPath string) (*Config, error) {
|
||||||
return nil, fmt.Errorf("config validation failed: %w", err)
|
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.
|
// Validate checks the configuration for errors.
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ func TestConfigValidationAppKey(t *testing.T) {
|
||||||
RunnerScaleSetId: 1,
|
RunnerScaleSetId: 1,
|
||||||
}
|
}
|
||||||
err := config.Validate()
|
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")
|
assert.ErrorContains(t, err, expectedError, "Expected error about missing auth")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue