Skip to content

Commit

Permalink
fixing code-gen-version,test-cases,etc
Browse files Browse the repository at this point in the history
  • Loading branch information
rkurduka committed Sep 25, 2023
1 parent fdc8455 commit 29f48f7
Show file tree
Hide file tree
Showing 21 changed files with 556 additions and 512 deletions.
10 changes: 5 additions & 5 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2023-09-20T11:19:38Z"
build_hash: e9b68590da73ce9143ba1e4361cebdc1d876c81e
build_date: "2023-09-24T06:21:32Z"
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
go_version: go1.20.3
version: v0.26.1-7-ge9b6859
api_directory_checksum: 5fba18fb7f9bccf860caf2da80e33859d4f93020
version: v0.27.1
api_directory_checksum: 62d52ec595b37efec3f76b5863d14477e41b4987
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
generator_config_info:
file_checksum: ae8176be538fe3f653bc1bad979f59bba34b1cbc
file_checksum: 4a938ee6da37ee5c79556fdbdafce4b1376b1da3
original_file_name: generator.yaml
last_modification:
reason: API generation
11 changes: 9 additions & 2 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ ignore:
- SecurityGroupRule.GroupOwnerId
- SecurityGroupRule.ReferencedGroupInfo
- TerminateInstancesInput.DryRun
- CreateLaunchTemplateInput.ClientToken
- CreateLaunchTemplateInput.DryRun
- CreateLaunchTemplateInput.Tags
resource_names:
- AccountAttribute
- CapacityReservation
Expand Down Expand Up @@ -210,6 +213,12 @@ resources:
print:
path: Status.latestVersionNumber
name: LatestVersion
Tags:
from:
operation: CreateTags
path: Tags
compare:
is_ignored: True
tags:
ignore: true
renames:
Expand All @@ -226,8 +235,6 @@ resources:
DescribeLaunchTemplate:
input_fields:
LaunchTemplateName: Name
reconcile:
requeue_on_success_seconds: 60
hooks:
sdk_update_post_build_request:
template_path: hooks/launch_template/sdk_update_post_build_request.go.tpl
Expand Down
20 changes: 5 additions & 15 deletions apis/v1alpha1/launch_template.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 11 additions & 21 deletions apis/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed cmd/controller/controller
Binary file not shown.
15 changes: 8 additions & 7 deletions cmd/controller/main.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions config/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ spec:
- "$(AWS_REGION)"
- --aws-endpoint-url
- "$(AWS_ENDPOINT_URL)"
- --enable-development-logging
- "$(ACK_ENABLE_DEVELOPMENT_LOGGING)"
- --enable-development-logging=$(ACK_ENABLE_DEVELOPMENT_LOGGING)
- --log-level
- "$(ACK_LOG_LEVEL)"
- --resource-tags
- "$(ACK_RESOURCE_TAGS)"
- --watch-namespace
- "$(ACK_WATCH_NAMESPACE)"
- --enable-leader-election=$(ENABLE_LEADER_ELECTION)
- --leader-election-namespace
- "$(LEADER_ELECTION_NAMESPACE)"
image: controller:latest
name: controller
ports:
Expand Down Expand Up @@ -66,6 +68,10 @@ spec:
value: "info"
- name: ACK_RESOURCE_TAGS
value: "services.k8s.aws/controller-version=%CONTROLLER_SERVICE%-%CONTROLLER_VERSION%,services.k8s.aws/namespace=%K8S_NAMESPACE%"
- name: ENABLE_LEADER_ELECTION
value: "false"
- name: LEADER_ELECTION_NAMESPACE
value: "ack-system"
securityContext:
allowPrivilegeEscalation: false
privileged: false
Expand All @@ -79,5 +85,6 @@ spec:
terminationGracePeriodSeconds: 10
serviceAccountName: ack-ec2-controller
hostIPC: false
hostNetwork: false
hostPID: false
hostNetwork: false
dnsPolicy: ClusterFirst
36 changes: 13 additions & 23 deletions config/crd/bases/ec2.services.k8s.aws_launchtemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,9 @@ spec:
description: "LaunchTemplateSpec defines the desired state of LaunchTemplate.
\n Describes a launch template."
properties:
clientToken:
description: "Unique, case-sensitive identifier you provide to ensure
the idempotency of the request. For more information, see Ensuring
idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
\n Constraint: Maximum 128 ASCII characters."
type: string
defaultVersionNumber:
format: int64
type: integer
dryRun:
description: Checks whether you have the required permissions for
the action, without actually making the request, and provides an
error response. If you have the required permissions, the error
response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
type: boolean
launchTemplateData:
description: The information for the launch template.
properties:
Expand Down Expand Up @@ -577,6 +565,19 @@ spec:
type: array
type: object
type: array
tags:
description: The tags. The value parameter is required, but if you
don't want the tag to have a value, specify the parameter with no
value, and we set the value to an empty string.
items:
description: Describes a tag.
properties:
key:
type: string
value:
type: string
type: object
type: array
versionDescription:
description: A description for the first version of the launch template.
type: string
Expand Down Expand Up @@ -663,17 +664,6 @@ spec:
launchTemplateID:
description: The ID of the launch template.
type: string
tags:
description: The tags for the launch template.
items:
description: Describes a tag.
properties:
key:
type: string
value:
type: string
type: object
type: array
type: object
type: object
served: true
Expand Down
3 changes: 2 additions & 1 deletion config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ resources:
- role-reader.yaml
- role-writer.yaml
- service-account.yaml

- leader-election-role.yaml
- leader-election-role-binding.yaml
11 changes: 9 additions & 2 deletions generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ ignore:
- SecurityGroupRule.GroupOwnerId
- SecurityGroupRule.ReferencedGroupInfo
- TerminateInstancesInput.DryRun
- CreateLaunchTemplateInput.ClientToken
- CreateLaunchTemplateInput.DryRun
- CreateLaunchTemplateInput.Tags
resource_names:
- AccountAttribute
- CapacityReservation
Expand Down Expand Up @@ -210,6 +213,12 @@ resources:
print:
path: Status.latestVersionNumber
name: LatestVersion
Tags:
from:
operation: CreateTags
path: Tags
compare:
is_ignored: True
tags:
ignore: true
renames:
Expand All @@ -226,8 +235,6 @@ resources:
DescribeLaunchTemplate:
input_fields:
LaunchTemplateName: Name
reconcile:
requeue_on_success_seconds: 60
hooks:
sdk_update_post_build_request:
template_path: hooks/launch_template/sdk_update_post_build_request.go.tpl
Expand Down
36 changes: 13 additions & 23 deletions helm/crds/ec2.services.k8s.aws_launchtemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,9 @@ spec:
description: "LaunchTemplateSpec defines the desired state of LaunchTemplate.
\n Describes a launch template."
properties:
clientToken:
description: "Unique, case-sensitive identifier you provide to ensure
the idempotency of the request. For more information, see Ensuring
idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
\n Constraint: Maximum 128 ASCII characters."
type: string
defaultVersionNumber:
format: int64
type: integer
dryRun:
description: Checks whether you have the required permissions for
the action, without actually making the request, and provides an
error response. If you have the required permissions, the error
response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
type: boolean
launchTemplateData:
description: The information for the launch template.
properties:
Expand Down Expand Up @@ -577,6 +565,19 @@ spec:
type: array
type: object
type: array
tags:
description: The tags. The value parameter is required, but if you
don't want the tag to have a value, specify the parameter with no
value, and we set the value to an empty string.
items:
description: Describes a tag.
properties:
key:
type: string
value:
type: string
type: object
type: array
versionDescription:
description: A description for the first version of the launch template.
type: string
Expand Down Expand Up @@ -663,17 +664,6 @@ spec:
launchTemplateID:
description: The ID of the launch template.
type: string
tags:
description: The tags for the launch template.
items:
description: Describes a tag.
properties:
key:
type: string
value:
type: string
type: object
type: array
type: object
type: object
served: true
Expand Down
Loading

0 comments on commit 29f48f7

Please sign in to comment.