Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#3896 from shraddhabang/main
Browse files Browse the repository at this point in the history
Fix controller crash due enabling shield protection after AWSSDKGoV2 upgrade
  • Loading branch information
k8s-ci-robot authored Oct 17, 2024
2 parents 16c8849 + f2a3169 commit 808fcbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/deploy/shield/protection_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (m *defaultProtectionManager) GetProtection(ctx context.Context, resourceAR
return nil, err
}
}
if resp.Protection != nil {
if resp != nil && resp.Protection != nil {
protectionInfo = &ProtectionInfo{
Name: awssdk.ToString(resp.Protection.Name),
ID: awssdk.ToString(resp.Protection.Id),
Expand Down

0 comments on commit 808fcbc

Please sign in to comment.