aws / aws/eks-anywhere

Allow creation of eks-a objects only through the cli command

Open
#465 0 comments 0 reactions 0 assignees View on GitHub
status/notstarted
Dominant language
Go
Stars
2.1k
Forks
328
Avg merge
1d 4h
Merged PRs (30d)
9

Description

Webhooks for some of the CRDs like [Cluster](https://github.com/aws/eks-anywhere/blob/main/pkg/api/v1alpha1/cluster_webhook.go#L49) and [VSphereDatacenterConfig](https://github.com/aws/eks-anywhere/blob/main/pkg/api/v1alpha1/vspheredatacenterconfig_webhook.go) block creation of EKS-A CRs through kubectl allowing them to be only created through the cli command.
This is the expected behavior for now for all EKS-A CRDs and to keep it consistent, modify the webhooks for CRDs that don't currently block creation, for example [OIDCConfig](https://github.com/aws/eks-anywhere/blob/main/pkg/api/v1alpha1/oidcconfig_webhook.go) and [GitOpsConfig](https://github.com/aws/eks-anywhere/blob/main/pkg/api/v1alpha1/gitopsconfig_webhook.go)

Contributor guide

Open the contributing guide

Research direction

Start by comparing the webhook behavior in pkg/api/v1alpha1/cluster_webhook.go and pkg/api/v1alpha1/vspheredatacenterconfig_webhook.go with oidcconfig_webhook.go and gitopsconfig_webhook.go. Search the other EKS-A CRD webhooks for the same creation check, then run the relevant webhook tests. Done means every EKS-A CRD consistently blocks creation through kubectl while allowing the CLI flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.