Skip to content

Commit

Permalink
[Correction] Upgrade fulcios to use of the google privateca api at v1 (
Browse files Browse the repository at this point in the history
…#252)

* Upgrade fulcios usage of the goole privateca api to v1

Signed-off-by: Scott Nichols <n3wscott@chainguard.dev>

* Adding a flag to select the google private ca api version at runtime

Signed-off-by: Scott Nichols <n3wscott@chainguard.dev>

* lint fix.

Signed-off-by: Scott Nichols <n3wscott@chainguard.dev>

* correct which api is called.

Signed-off-by: Scott Nichols <n3wscott@chainguard.dev>
  • Loading branch information
n3wscott committed Dec 1, 2021
1 parent 71ab4d9 commit 7f42ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ func CA() certauth.CertificateAuthority {
version := viper.GetString("gcp_private_ca_version")
switch version {
case "v1":
ca, err = googlecav1beta1.NewCertAuthorityService()
case "v1beta1":
ca, err = googlecav1.NewCertAuthorityService()
case "v1beta1":
ca, err = googlecav1beta1.NewCertAuthorityService()
default:
err = fmt.Errorf("invalid value for gcp_private_ca_version: %v", version)
}
Expand Down

0 comments on commit 7f42ba5

Please sign in to comment.