From 7f42ba56c97b6ecd94e437dadd51b3491c4dadc5 Mon Sep 17 00:00:00 2001 From: Scott Nichols Date: Wed, 1 Dec 2021 08:35:15 -0800 Subject: [PATCH] [Correction] Upgrade fulcios to use of the google privateca api at v1 (#252) * Upgrade fulcios usage of the goole privateca api to v1 Signed-off-by: Scott Nichols * Adding a flag to select the google private ca api version at runtime Signed-off-by: Scott Nichols * lint fix. Signed-off-by: Scott Nichols * correct which api is called. Signed-off-by: Scott Nichols --- pkg/api/ca.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/ca.go b/pkg/api/ca.go index 09b5cccd9..e86ff1452 100644 --- a/pkg/api/ca.go +++ b/pkg/api/ca.go @@ -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) }