Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Assign new, non-nil map.
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-barry committed Dec 1, 2023
1 parent 7ca650c commit 0cfd7fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/v1/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ func EnsureAssetsInNamespace(config *Config) error {
if registration, err := FetchRegistration(token); err == nil {
// the data gets set as if the config map was able to be fetched even though it was
// obtained from the API
qpointRootCaConfigMap.Data["ca.crt"] = registration.Ca
qpointRootCaConfigMap.Data = map[string]string{
"ca.crt": registration.Ca,
}
} else {
return fmt.Errorf("missing configuration for Qpoint Root CA, check instructions")
}
Expand Down

0 comments on commit 0cfd7fc

Please sign in to comment.