Kuadrant / kuadra

A kubernetes controller for managing users and access permissions in various services
Apache License 2.0
0 stars 5 forks source link

Route53 API #11

Closed eoinfennessy closed 6 months ago

eoinfennessy commented 1 year ago

What & how

  1. Create a route 53 client like the iam one
  2. Create a new wrapper in aws interfaces file similar to the iam one to add in the functions you will need for creating the hosted zone. A preexisting function that you can add to function are in this https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/route53 like Client.CreateHostedZone
  3. Create a new route53 controller similar to the awsaccount controller adding the new functions to the reconciller
  4. Call the new controller in the main.go Name server (NS) records should automatically get created for public hosted zones. "For public hosted zones, Route 53 automatically creates a default SOA record and four NS records for the zone." https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/route53#Client.CreateHostedZone
  5. Create tests for new functions following syntax of existing tests
  1. Follow the same approach as above to add the nameserver to the root hosted zone