Skip to content

Commit

Permalink
operator/pkg: unit test cert tasks
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamed Awnallah <[email protected]>
  • Loading branch information
mohamedawnallah committed Oct 17, 2024
1 parent 2b2b78a commit 62b6f6b
Show file tree
Hide file tree
Showing 2 changed files with 428 additions and 1 deletion.
2 changes: 1 addition & 1 deletion operator/pkg/tasks/init/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func runCertTask(cc, caCert *certs.CertConfig) func(d workflow.RunData) error {
}

if cc.CAName != caCert.Name {
return fmt.Errorf("expected CAname for %s, but was %s", cc.CAName, cc.Name)
return fmt.Errorf("mismatched CA name: expected %s but got %s", cc.CAName, caCert.Name)
}

if err := mutateCertConfig(data, cc); err != nil {
Expand Down
Loading

0 comments on commit 62b6f6b

Please sign in to comment.