Skip to content

Commit

Permalink
Merge pull request #1808 from enxebre/awsendpoint-comments
Browse files Browse the repository at this point in the history
Add comments to clarify aws endpoints controllers
  • Loading branch information
openshift-merge-robot authored Oct 18, 2022
2 parents e9c6b9f + 4b04129 commit 5f903f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const (
defaultResync = 10 * time.Hour
)

// PrivateServiceObserver watches a given Service type LB and reconciles
// an awsEndpointService CR representation for it.
type PrivateServiceObserver struct {
client.Client

Expand Down Expand Up @@ -171,6 +173,8 @@ const (
routerDomain = "apps"
)

// AWSEndpointServiceReconciler watches AWSEndpointService resources and reconciles
// the existence of AWS Endpoints for it in the guest cluster infrastructure.
type AWSEndpointServiceReconciler struct {
client.Client
ec2Client ec2iface.EC2API
Expand Down
3 changes: 3 additions & 0 deletions hypershift-operator/controllers/platform/aws/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ const (
lbNotActiveRequeueDuration = 20 * time.Second
)

// AWSEndpointServiceReconciler watches HC/NodePools/awsEndpointService and reconcile the awsEndpointService
// CRs existing for the KubeAPIServerPrivateService and the PrivateRouterService.
// It creates the endpoint service in AWS and keeps the SubnetIDs up to date so NodePools are able to attach to the service endpoint.
type AWSEndpointServiceReconciler struct {
client.Client
upsert.CreateOrUpdateProvider
Expand Down

0 comments on commit 5f903f2

Please sign in to comment.