Skip to content

Commit

Permalink
Don't mask RuntimeClassName field
Browse files Browse the repository at this point in the history
Related: knative#5306
  • Loading branch information
snir911 committed Aug 3, 2020
1 parent 5abb0f3 commit 3852e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/serving/fieldmask.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func PodSpecMask(ctx context.Context, in *corev1.PodSpec) *corev1.PodSpec {
out.Volumes = in.Volumes
out.ImagePullSecrets = in.ImagePullSecrets
out.EnableServiceLinks = in.EnableServiceLinks
out.RuntimeClassName = in.RuntimeClassName

// Feature fields
if cfg.Features.PodSpecAffinity != config.Disabled {
Expand Down Expand Up @@ -187,7 +188,6 @@ func PodSpecMask(ctx context.Context, in *corev1.PodSpec) *corev1.PodSpec {
out.Priority = nil
out.DNSConfig = nil
out.ReadinessGates = nil
out.RuntimeClassName = nil

return out
}
Expand Down

0 comments on commit 3852e9c

Please sign in to comment.