Skip to content
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

Ignore ClusterName for copySnapshot API #58

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

kyriechen96
Copy link
Contributor

@kyriechen96 kyriechen96 commented Feb 7, 2023

Issue #, if available:
v0.23.1 code-controller considers ClusterName as required field for snapshot, but memorydb copySnapshot API should have empty ClusterName.

Description of changes:
Set is_required value of ClusterName to false for snapshot.

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

@ack-prow ack-prow bot requested review from a-hilaly and RedbackThomson February 7, 2023 19:56
@ack-prow ack-prow bot added the approved label Feb 7, 2023
@@ -209,6 +209,7 @@ resources:
path: SourceSnapshotName
ClusterName:
is_primary_key: false
is_required: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any changes to the API file which I would expect to see if this worked

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully it could work

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I understand - the v0.23.1 code-generator fixed a bug where we weren't properly setting required on fields that were imported as custom. Because we now are, and this field was required, it was marking it as such even though we don't want it to be. So setting the is_required manually suppresses that. 👍🏼

@kyriechen96
Copy link
Contributor Author

/retest

@RedbackThomson
Copy link
Contributor

/lgtm

1 similar comment
@RedbackThomson
Copy link
Contributor

/lgtm

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

ack-prow bot commented Feb 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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:
  • OWNERS [RedbackThomson,kyriechen96]

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 merged commit 49b75f9 into aws-controllers-k8s:main Feb 9, 2023
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