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

Update CertificateAuthority customSetDefaults method #54

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

ndbhat
Copy link
Contributor

@ndbhat ndbhat commented Jun 28, 2024

Description of changes:

  1. Set fields of a to the fields of b in customSetDefaults method

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

@ndbhat ndbhat requested a review from anbaig June 28, 2024 15:06
@ack-prow ack-prow bot requested a review from divyansh-gupta June 28, 2024 15:06
@ack-prow ack-prow bot added the approved label Jun 28, 2024
if ackcompare.IsNil(a.ko.Spec.UsageMode) && ackcompare.IsNotNil(b.ko.Spec.UsageMode) {
a.ko.Spec.UsageMode = defaultUsageMode
if ackcompare.IsNil(desired.ko.Spec.UsageMode) && ackcompare.IsNotNil(latest.ko.Spec.UsageMode) {
desired.ko.Spec.UsageMode = latest.ko.Spec.UsageMode
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the naming is flipped.

You want to set latest/current to the desired state.

Comment on lines 22 to 23
desired *resource,
latest *resource,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know in the generator.yaml there is a definition given with the parameters being a,b. Not sure how the generator works but wanted to call that out in case we need to fix generator.yaml

Comment on lines 22 to 23
a *resource,
b *resource,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you update these names to be more descriptive?

Copy link
Collaborator

Choose a reason for hiding this comment

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

we are just going to leave this the same as this is the standard naming scheme across all ACK controllers.

@anbaig anbaig added the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2024
@ack-prow ack-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2024
Copy link

ack-prow bot commented Jul 8, 2024

New changes are detected. LGTM label has been removed.

Copy link

ack-prow bot commented Jul 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anbaig, ndbhat

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

@anbaig anbaig added the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2024
@ack-prow ack-prow bot merged commit 4a85bf6 into aws-controllers-k8s:main Jul 8, 2024
5 of 6 checks passed
@ndbhat ndbhat deleted the ca-custom-delta branch July 12, 2024 15:40
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
2 participants