Skip to content

Commit

Permalink
Fix privateca ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpang777 committed Nov 29, 2024
1 parent fc6b136 commit d2909b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/refs/v1beta1/privatecaref.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func ResolvePrivateCACAPoolRef(ctx context.Context, reader client.Reader, src cl
// External should be in the `projects/{project_id}/locations/{region}/caPools/{caPool}` format
if ref.External != "" {
tokens := strings.Split(ref.External, "/")
if len(tokens) == 6 && tokens[0] == "project" && tokens[2] == "locations" && tokens[4] == "caPools" {
if len(tokens) == 6 && tokens[0] == "projects" && tokens[2] == "locations" && tokens[4] == "caPools" {
ref = &PrivateCACAPoolRef{
External: fmt.Sprintf("projects/%s/locations/%s/caPools/%s", tokens[1], tokens[3], tokens[5]),
}
Expand Down

0 comments on commit d2909b1

Please sign in to comment.