Skip to content

Commit 8da4c71

Browse files
authored
feat: SecurityPolicy resource (#3)
Issue [#2211](aws-controllers-k8s/community#2211) Description of changes: Add support for SecurityPolicy resource By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 09ac821 commit 8da4c71

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3578
-41
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-05-06T07:32:41Z"
3-
build_hash: f8dc5330705b3752ce07dce0ac831161fd4cb14f
2+
build_date: "2025-06-18T18:22:02Z"
3+
build_hash: e675923dfc54d8b6e09730098c3e3e1056d3c1e9
44
go_version: go1.24.1
5-
version: v0.45.0
6-
api_directory_checksum: 6ba172987a7066c165c3ce93488cd478ee6f05dd
5+
version: v0.48.0
6+
api_directory_checksum: 149cb1432b3f51556b5ac241c2a57f57c6a1a580
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 7bb757920e6cd50190dae15544a965fbc41933b6
10+
file_checksum: fbbdaf93971d4dd3acf80603af15a0cc0106f054
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,29 @@ ignore:
44
- Collection
55
- LifecyclePolicy
66
- SecurityConfig
7-
- SecurityPolicy
7+
# - SecurityPolicy
88
- VpcEndpoint
9+
field_paths:
10+
- CreateSecurityPolicyOutput.SecurityPolicyDetail.Policy
11+
- CreateSecurityPolicyOutput.SecurityPolicyDetail.ClientToken
12+
- CreateSecurityPolicyInput.ClientToken
13+
resources:
14+
SecurityPolicy:
15+
# Tags are not supported for SecurityPolicy
16+
# https://docs.aws.amazon.com/opensearch-service/latest/developerguide/tag-collection.html
17+
tags:
18+
ignore: true
19+
hooks:
20+
delta_pre_compare:
21+
code: customPreCompare(delta, a, b)
22+
sdk_read_one_post_set_output:
23+
template_path: hooks/security_policy/sdk_read_one_post_set_output.go.tpl
24+
fields:
25+
Type:
26+
go_tag: json:"type"
27+
is_immutable: true
28+
Policy:
29+
compare:
30+
is_ignored: true
31+
Name:
32+
is_immutable: true

apis/v1alpha1/security_policy.go

Lines changed: 92 additions & 0 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: 190 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)