Skip to content

Commit

Permalink
[Backport] Add global.podSecurityStandards.enforced value for PSS mig…
Browse files Browse the repository at this point in the history
…ration.
  • Loading branch information
whites11 committed May 6, 2024
1 parent 7b6286a commit ffca885
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions service/controller/app/resource/configmap/desired_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ func Test_Resource_GetDesiredState(t *testing.T) {

if tc.expectedUserConfig != nil {
_ = ctrlClient.Get(ctx, types.NamespacedName{Name: tc.obj.GetName(), Namespace: tc.obj.GetNamespace()}, tc.obj)
if !reflect.DeepEqual(&tc.obj.Spec.UserConfig, tc.expectedUserConfig) {
t.Fatalf("want matching userconfig \n %s", cmp.Diff(&tc.obj.Spec.UserConfig, tc.expectedUserConfig))
if !reflect.DeepEqual(&tc.obj.Spec.UserConfig, tc.expectedUserConfig) { // nolint:gosec
t.Fatalf("want matching userconfig \n %s", cmp.Diff(&tc.obj.Spec.UserConfig, tc.expectedUserConfig)) // nolint:gosec
}
}
})
Expand Down
4 changes: 2 additions & 2 deletions service/controller/app/resource/secret/desired_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ func Test_Resource_GetDesiredState(t *testing.T) {

if tc.expectedUserConfig != nil {
_ = ctrlClient.Get(ctx, types.NamespacedName{Name: tc.obj.GetName(), Namespace: tc.obj.GetNamespace()}, tc.obj)
if !reflect.DeepEqual(&tc.obj.Spec.UserConfig, tc.expectedUserConfig) {
t.Fatalf("want matching userconfig \n %s", cmp.Diff(&tc.obj.Spec.UserConfig, tc.expectedUserConfig))
if !reflect.DeepEqual(&tc.obj.Spec.UserConfig, tc.expectedUserConfig) { // nolint:gosec
t.Fatalf("want matching userconfig \n %s", cmp.Diff(&tc.obj.Spec.UserConfig, tc.expectedUserConfig)) // nolint:gosec
}
}
})
Expand Down

0 comments on commit ffca885

Please sign in to comment.