Skip to content

Commit 596cf34

Browse files
authored
Add Support for CredentialARN, CustomRoleARN, UpstreamRegistry, and UpstreamRepositoryPrefix to PullThroughCacheRule (#125)
Issue #, if available: [2589](aws-controllers-k8s/community#2589) Description of changes: - Upgrade aws-sdk-go-v2 to 1.38.1 - Remove CredentialARN and UpstreamRegistry from ignored fields - Regenerate PullThroughCacheRule CRD and controller code to include CredentialARN, CustomRoleARN, UpstreamRegistry, and UpstreamRepositoryPrefix fields - Add .vscode to .gitignore By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent bfecb13 commit 596cf34

18 files changed

+675
-67
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.swp
33
*~
44
.idea
5+
.vscode
56
/docs/site
67
bin
78
build
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-08-14T23:50:01Z"
3-
build_hash: b6df33f8c7f55b234555c0b578b8de43c74771a8
4-
go_version: go1.24.6
5-
version: v0.51.0
6-
api_directory_checksum: b1483b12f27211a1ddd173b9d2b87b0d1e6065a4
2+
build_date: "2025-08-22T23:52:19Z"
3+
build_hash: 1045a5e99038b11b0630ca2f2f69c3bae4bedba6
4+
go_version: go1.25.0
5+
version: v0.51.0-1-g1045a5e
6+
api_directory_checksum: a02c92c1fc20760c9af96da828ba7e0542ab69ba
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.32.6
8+
aws_sdk_go_version: v1.38.1
99
generator_config_info:
10-
file_checksum: e3a1a758e7d029514ae612e827701b5d3bdc2c27
10+
file_checksum: 251b971a278822d87fec11b66bfc87de187bb5ef
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/enums.go

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ resources:
7171
is_immutable: true
7272
UpstreamRegistryURL:
7373
is_immutable: true
74+
UpstreamRegistry:
75+
is_immutable: true
76+
UpstreamRepositoryPrefix:
77+
is_immutable: true
78+
CredentialARN:
79+
references:
80+
resource: Secret
81+
service_name: secretsmanager
82+
path: Status.ACKResourceMetadata.ARN
83+
CustomRoleARN:
84+
references:
85+
resource: Role
86+
service_name: iam
87+
path: Status.ACKResourceMetadata.ARN
7488
hooks:
7589
sdk_read_many_post_build_request:
7690
template_path: hooks/pull_through_cache_rule/sdk_read_many_post_build_request.go.tpl
@@ -84,7 +98,5 @@ ignore:
8498
resource_names:
8599
- RepositoryCreationTemplate
86100
field_paths:
87-
- CreatePullThroughCacheRuleOutput.CredentialArn
88-
- CreatePullThroughCacheRuleOutput.UpstreamRegistry
89-
- CreatePullThroughCacheRuleInput.UpstreamRegistry
90-
- CreatePullThroughCacheRuleInput.CredentialArn
101+
- CreateRepositoryInput.ImageTagMutabilityExclusionFilters
102+
- CreateRepositoryOutput.Repository.ImageTagMutabilityExclusionFilters

apis/v1alpha1/pull_through_cache_rule.go

Lines changed: 35 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/types.go

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/controller/main.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)