Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kauana dos Santos committed Jul 11, 2023
1 parent 7f51c74 commit c8063c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/core/configmaps/features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ data:
# this example block and unindented to be in the data block
# to actually change the configuration.
# Default SecurityContext settings to secure-by-default values
# if unset.
#
# Indicates whether secure-pod-defaults support is enabled
# WARNING: Cannot safely be disabled once enabled.
# See: TBD
secure-pod-defaults: "enabled"
# Indicates whether multi container support is enabled
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/config/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func defaultFeaturesConfig() *Features {
PodSpecInitContainers: Disabled,
PodSpecDNSPolicy: Disabled,
PodSpecDNSConfig: Disabled,
SecurePodDefaults: Disabled,
SecurePodDefaults: Enabled,
TagHeaderBasedRouting: Disabled,
AutoDetectHTTP2: Disabled,
}
Expand Down
6 changes: 5 additions & 1 deletion pkg/apis/serving/fieldmask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,11 @@ func TestPodSecurityContextMask(t *testing.T) {
},
}

want := &corev1.PodSecurityContext{}
want := &corev1.PodSecurityContext{
SeccompProfile: &corev1.SeccompProfile{
Type: corev1.SeccompProfileTypeRuntimeDefault,
},
}
ctx := context.Background()

got := PodSecurityContextMask(ctx, in)
Expand Down

0 comments on commit c8063c3

Please sign in to comment.