Skip to content

add support for domainame #48

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rushmash91
Copy link
Member

@rushmash91 rushmash91 commented Jul 15, 2025

Issue aws-controllers-k8s/community#2550

Description of changes:
add support for domainame #tamer

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 michaelhtm July 15, 2025 20:05
Copy link

ack-prow bot commented Jul 15, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rushmash91

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 Jul 15, 2025
@rushmash91 rushmash91 force-pushed the domainame branch 2 times, most recently from e2cb9e4 to cc46786 Compare July 15, 2025 21:45
path: Status.ID
is_required: true
is_immutable: true
Copy link
Member Author

Choose a reason for hiding this comment

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

this looks incorrect..

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Copy link

ack-prow bot commented Jul 16, 2025

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

Test name Commit Details Required Rerun command
apigateway-verify-attribution 0584afa link false /test apigateway-verify-attribution

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.

Copy link
Member

@michaelhtm michaelhtm left a comment

Choose a reason for hiding this comment

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

Congrats on your first PR @rushmash91 x tamer@ 🚀🚀
left a few comments

Comment on lines +433 to +434
is_required: true
Copy link
Member

Choose a reason for hiding this comment

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

not sure if these two are needed..the model should have marked it as required

- InvalidParameter
DomainName:
Copy link
Member

Choose a reason for hiding this comment

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

Should we rename the resource to DomainNameResource? A resource named DomainName doesn't feel right

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm I think Domain name is better for this resource. What about it doesn't feel right?

Copy link
Member

Choose a reason for hiding this comment

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

It would just be weird to have something like DomainName.Spec.DomainName or DomainName.Spec.Name..it feels very misleading to me..

DomainName:
fields:
DomainName:
Copy link
Member

Choose a reason for hiding this comment

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

we could rename this to Name?

synced:
when:
- path: Status.DomainNameStatus
Copy link
Member

Choose a reason for hiding this comment

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

maybe rename this to just Status as well?

"github.com/aws-controllers-k8s/apigateway-controller/pkg/util/patch"
)

func updateDomainNameInput(desired, latest *resource, input *svcsdk.UpdateDomainNameInput, delta *compare.Delta) error {
Copy link
Member

Choose a reason for hiding this comment

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

why do we want to return error here?

defer func() { exit(err) }()

// Get the ARN of the domain name
resourceARN := rm.getDomainNameARN(*desired.ko.Spec.DomainName)
Copy link
Member

Choose a reason for hiding this comment

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

Create seems to already be returning the ARN https://docs.aws.amazon.com/apigateway/latest/api/API_CreateDomainName.html#apigw-CreateDomainName-response-domainNameArn

Should we instead use latest...ARN?

Copy link
Member

Choose a reason for hiding this comment

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

maybe we just need to rename it to ARN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants