Skip to content

Commit

Permalink
chore: Remove delete from supported verbs in NodeClaims (aws#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis authored Nov 9, 2023
1 parent 41074dd commit e32aafc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/apis/v1beta1/nodeclaim_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

"github.com/samber/lo"
"go.uber.org/multierr"
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/apimachinery/pkg/util/sets"
Expand Down Expand Up @@ -57,6 +58,13 @@ var (
)
)

func (in *NodeClaim) SupportedVerbs() []admissionregistrationv1.OperationType {
return []admissionregistrationv1.OperationType{
admissionregistrationv1.Create,
admissionregistrationv1.Update,
}
}

// Validate the NodeClaim
func (in *NodeClaim) Validate(_ context.Context) (errs *apis.FieldError) {
return errs.Also(
Expand Down

0 comments on commit e32aafc

Please sign in to comment.