Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
jiamin13579 committed Mar 31, 2023
1 parent 1cf8fbd commit 3088054
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/webhooks/admission/pods/mutate/mutate_pod_test.go
Expand Up @@ -29,6 +29,7 @@ import (

func TestMutatePods(t *testing.T) {
affinityJsonStr := `{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"kubernetes.io/os","operator":"In","values":["linux"]}]}]}}}`

var affinity v1.Affinity
json.Unmarshal([]byte(affinityJsonStr), &affinity)

Expand Down

0 comments on commit 3088054

Please sign in to comment.