aws / aws/eks-anywhere

Add parsing validations for SnowMachineConfig and SnowDatacenterConfig

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

Description

Add validations for Snow specific objects (similar to [this ](https://github.com/aws/eks-anywhere/blob/main/pkg/api/v1alpha1/cluster.go#L269)for the Cluster object) to ensure that only valid fields are passed in.

Passing in invalid fields could lead to unexpected behavior like [this](https://github.com/aws/eks-anywhere/issues/5566)

Contributor guide

Open the contributing guide

Research direction

Start with pkg/api/v1alpha1/cluster.go, especially the Cluster validation referenced in the issue, then locate SnowMachineConfig and SnowDatacenterConfig and their validation entry points. Done means invalid or unknown fields are rejected for both Snow-specific objects, consistently with Cluster validation, with coverage for the affected cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design
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.