Skip to content

Commit 95f5fbc

Browse files
tas50claude
andauthored
⭐ Add GCP Artifact Registry support with 9 new resource types and ~45 fields (#6701)
* Add GCP artifact registry Add new resources for exploring the GCP Artifact Registry Signed-off-by: Tim Smith <tsmith84@gmail.com> * ✨ Add policyType discriminator to cleanupPolicy and format to formatConfig Adds a policyType field ("condition" or "mostRecentVersions") to cleanupPolicy so MQL users can filter by type before inspecting type-specific sub-resources. Adds a format field to formatConfig mirroring the parent repository's format so the sub-resource is self-describing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * 🟢 Add tests for artifact registry helpers, extract pure functions Extract cleanupPolicyType() and extractFormatConfigFields() as testable pure functions. Add tests covering cleanup policy type discrimination, format config field extraction for Docker/Maven/NPM, and vuln scan timestamp handling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * 🐛 Guard against nil args["name"] in repository init, simplify nil-map check Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * 🐛 Use safe type assertions in repository init Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * 🧹 Initialize upstreamPolicies as empty slice instead of nil Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * 🧹 Align policyType/format versions to 11.6.1, clarify cleanup policy comments Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Address review: fix spellcheck, use stable IAM binding IDs - Add KFP to spelling expect list to fix CI spellcheck failure. - Use role-based IAM binding IDs (repoPath + "/" + role) instead of index-based IDs for stability across API call reordering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * 🧹 Regenerate gcp.lr.go after rebase Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Signed-off-by: Tim Smith <tsmith84@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ed01e23 commit 95f5fbc

File tree

8 files changed

+2274
-206
lines changed

8 files changed

+2274
-206
lines changed

.github/actions/spelling/expect.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ alpn
77
antispam
88
appslot
99
arp
10+
artifactregistry
1011
atlassian
1112
auditlog
1213
Auths
@@ -112,6 +113,7 @@ istio
112113
jira
113114
jsonbody
114115
junos
116+
KFP
115117
kqueue
116118
KSK
117119
labelmatchstatement
@@ -180,6 +182,7 @@ psc
180182
PTn
181183
pushconfig
182184
Pzi
185+
Pzs
183186
pzs
184187
querypack
185188
RABBITMQ

providers/gcp/go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go 1.25.6
77
require (
88
cloud.google.com/go/accessapproval v1.8.8
99
cloud.google.com/go/alloydb v1.21.0
10+
cloud.google.com/go/artifactregistry v1.20.0
1011
cloud.google.com/go/bigquery v1.74.0
1112
cloud.google.com/go/bigtable v1.42.0
1213
cloud.google.com/go/cloudtasks v1.13.7

providers/gcp/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ cloud.google.com/go/accessapproval v1.8.8 h1:gq8OS+rQWgGRo91D2qztN+ion6AZ2T1CxBI
3535
cloud.google.com/go/accessapproval v1.8.8/go.mod h1:RFwPY9JDKseP4gJrX1BlAVsP5O6kI8NdGlTmaeDefmk=
3636
cloud.google.com/go/alloydb v1.21.0 h1:f8udyaV5PmAKcsTOOsIlgJdLBf4DrO+ML5o/iJvdCLY=
3737
cloud.google.com/go/alloydb v1.21.0/go.mod h1:efq3vWn7CuGn+BHuts4QxyvcAR8qZ0+H+I43ebguhzY=
38+
cloud.google.com/go/artifactregistry v1.20.0 h1:j/XQiQfaeTyQeNj3HNk4iDFREVnY/fxkHIjsxpaDs8A=
39+
cloud.google.com/go/artifactregistry v1.20.0/go.mod h1:0G9wdbGyDFkvrYH+2AlQs9MuTJdbY8Vg45M8VjlI8rc=
3840
cloud.google.com/go/auth v0.18.2 h1:+Nbt5Ev0xEqxlNjd6c+yYUeosQ5TtEUaNcN/3FozlaM=
3941
cloud.google.com/go/auth v0.18.2/go.mod h1:xD+oY7gcahcu7G2SG2DsBerfFxgPAJz17zz2joOFF3M=
4042
cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc=

0 commit comments

Comments
 (0)