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

route53-controller unable to find recordset upon adoption #2187

Open
mqhenning opened this issue Oct 8, 2024 · 1 comment
Open

route53-controller unable to find recordset upon adoption #2187

mqhenning opened this issue Oct 8, 2024 · 1 comment
Labels
area/adopted-resource Issues or PRs related to ACK Adopted Resources kind/bug Categorizes issue or PR as related to a bug. service/route53 Indicates issues or PRs that are related to route53-controller.

Comments

@mqhenning
Copy link

mqhenning commented Oct 8, 2024

Describe the bug
When using an AdoptedResource to adopt a route53 RecordSet, e.g. a CNAME, route53-controller is unable to adopt the record, throwing a resource not found error. Using version 0.0.17.

Stack trace:

{"level":"error","ts":"2024-10-08T16:23:39.266Z","msg":"Reconciler error","controller":"adoptedresource","controllerGroup":"services.k8s.aws","controllerKind":"AdoptedResource","AdoptedResource":{"name":"adopt-test-cname","namespace":"ack-system"},"namespace":"ack-system","name":"adopt-test-cname","reconcileID":"0245fc92-4704-4d0c-9e2b-de1721e9ce90","error":"resource not found","stacktrace":"[sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler](http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler)
     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324
 [sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem](http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem)
     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:261
 [sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2](http://sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2)
     /go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:222"}

Steps to reproduce
Create a route53 record, say via the AWS console. Create an adopted resource (using it's name, zoneID, recordType to specify it):

apiVersion: services.k8s.aws/v1alpha1
kind: AdoptedResource
metadata:
  name: test-adopted-recordset
spec:
  aws:
    nameOrID: <record name, e.g. test-record.organization.tld.>
    additionalKeys:
      hostedZoneID: <Zone ID, e.g Z00000000000>
      recordType: <type, e.g. CNAME>
  kubernetes:
    group: route53.services.k8s.aws
    kind: RecordSet
    metadata:
      name: <name, e.g. test-record.organization.tld.>

Expected outcome
The resource is adopted, and an ack-controlled resource is created.

Environment

  • Kubernetes version 1.30
  • Using EKS (yes/no), if so version? yes, 1.30
  • AWS service targeted (S3, RDS, etc.) Route53
@a-hilaly a-hilaly added area/adopted-resource Issues or PRs related to ACK Adopted Resources service/route53 Indicates issues or PRs that are related to route53-controller. kind/bug Categorizes issue or PR as related to a bug. labels Oct 8, 2024
@michalschott
Copy link

Having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/adopted-resource Issues or PRs related to ACK Adopted Resources kind/bug Categorizes issue or PR as related to a bug. service/route53 Indicates issues or PRs that are related to route53-controller.
Projects
None yet
Development

No branches or pull requests

3 participants