Skip to content

Commit b99c907

Browse files
authored
add LogGroup resource management (#2)
Adds resource management for LogGroup resources in CloudWatchLogs. Issue aws-controllers-k8s/community#1093 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a14f44a commit b99c907

Some content is hidden

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

47 files changed

+2982
-159
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: "2023-05-16T13:18:05Z"
3-
build_hash: 9e2542cf2c0f92c014524c269474055cca758d70
2+
build_date: "2023-05-17T17:54:16Z"
3+
build_hash: dbc9ad5612781ebcf7b44f4eb3e7e68adf33be7e
44
go_version: go1.19.4
5-
version: v0.26.0-3-g9e2542c
6-
api_directory_checksum: 6751e4536ba166d4032da77bb1494e1069c89fd0
5+
version: v0.26.1-1-gdbc9ad5
6+
api_directory_checksum: 3ff9a19363bdb135f3328c6c7e803d6eaa8eea44
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.263
99
generator_config_info:
10-
file_checksum: 1a9f83edb39c41da8e5cc3cc6e3e294f33f2e302
10+
file_checksum: 14f5a4f533d7c8a4142d63046eda2f044f42fed7
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// +k8s:deepcopy-gen=package
2-
// Package v1alpha1 is the v1alpha1 version of the cloudwatch.services.k8s.aws API.
3-
// +groupName=cloudwatch.services.k8s.aws
2+
// Package v1alpha1 is the v1alpha1 version of the cloudwatchlogs.services.k8s.aws API.
3+
// +groupName=cloudwatchlogs.services.k8s.aws
44
package v1alpha1

apis/v1alpha1/enums.go

Lines changed: 26 additions & 83 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: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
1+
sdk_names:
2+
model_name: logs
3+
client_interface: CloudWatchLogsAPI
4+
client_struct: CloudWatchLogs
15
ignore:
26
resource_names:
3-
- ExportTask
4-
- LogGroup
5-
- LogStream
6-
model_name: logs
7+
- ExportTask
8+
#- LogGroup
9+
- LogStream
10+
resources:
11+
LogGroup:
12+
exceptions:
13+
terminal_codes:
14+
- InvalidParameterException
15+
fields:
16+
Name:
17+
type: string
18+
is_primary_key: true
19+
KMSKeyID:
20+
references:
21+
resource: Key
22+
service_name: kms
23+
path: Status.ACKResourceMetadata.ARN
24+
renames:
25+
operations:
26+
DescribeLogGroups:
27+
input_fields:
28+
LogGroupNamePattern: Name
29+
CreateLogGroup:
30+
input_fields:
31+
LogGroupName: Name
32+
DeleteLogGroup:
33+
input_fields:
34+
LogGroupName: Name

apis/v1alpha1/groupversion_info.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/log_group.go

Lines changed: 82 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: 99 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)