Skip to content

add hooks for set identifiers #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

surajkota
Copy link
Member

Issue #, if available:
aws-controllers-k8s/community#1871

Description of changes:
PolicyName field in Describe and Put APIs for ScalingPolicy has a different name and shape.

API Field name Shape
PutScalingPolicy PolicyName String
DescribeScalingPolicies PolicyNames List of strings

Because of difference in names, the code gen skips adding it to additional resource identifier for SetIndentifiers. Hesitant to use rename because the shape type is different in both APIs (string vs list of string). Adding hooks to unblock

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@RedbackThomson
Copy link
Contributor

/lgtm

@ack-prow ack-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 7, 2023
@ack-prow
Copy link

ack-prow bot commented Aug 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RedbackThomson, surajkota

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow bot added the approved label Aug 7, 2023
@ack-prow
Copy link

ack-prow bot commented Aug 7, 2023

@surajkota: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
apigatewayv2-controller-test 7081d1c link true /test apigatewayv2-controller-test
s3-controller-test 7081d1c link true /test s3-controller-test
ecr-controller-test 7081d1c link true /test ecr-controller-test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@RedbackThomson RedbackThomson merged commit e0dc6c3 into aws-controllers-k8s:main Aug 7, 2023
ack-prow bot pushed a commit to aws-controllers-k8s/applicationautoscaling-controller that referenced this pull request Aug 7, 2023
## Description of changes:
Customer facing issue in using multiple scaling policies for a scalable dimension because originally the code assumed it is 1:1 mapping. To uniquely identify a scaling policy resource, we need policy name, resource-id, service namespace and scalable dimension. This PR adds ability to create multiple scaling policies per scalable dimension and also updates the following things:

- Pass PolicyName for sdkFind, it is a required field in CRD
- Added logic to error on missing required fields per description above for DescribeScalingPolicyInput
- Updated tests to cover multiple scaling policies scenario per dimension case
- Updated test logic to use correct dependency of fixtures and order of execution 
- Updates the tests to use object oriented style bootstrapping. Hit aws-controllers-k8s/test-infra#368 issue while trying to fix the issue and cannot use latest ack-test without updating the bootstrap logic
- Removed duplicate test with dynamodb. SageMaker and dynamodb tests are testing same thing while SM tests have more coverage. No reason to maintain both set of tests, dynamodb tests add additional bootstrapping as well

~~**:warning: Pending before merge**~~
Hit another issue described in aws-controllers-k8s/community#1871. Fix aws-controllers-k8s/code-generator#459 has been merged

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants