Skip to content

Commit

Permalink
Remove code setting name/namespace overriding secret templates
Browse files Browse the repository at this point in the history
  • Loading branch information
tarikdem committed Jun 13, 2024
1 parent 9439ac6 commit d2216ff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/apis/sealedsecrets/v1alpha1/sealedsecret_expansion.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,6 @@ func (s *SealedSecret) Unseal(codecs runtimeserializer.CodecFactory, privKeys ma
return nil, fmt.Errorf("using deprecated 'data' field, use 'encryptedData' or flip the feature flag")
}

// Ensure these are set to what we expect
secret.SetNamespace(smeta.GetNamespace())
secret.SetName(smeta.GetName())

gvk := s.GetObjectKind().GroupVersionKind()
if anno, ok := s.Spec.Template.Annotations[SealedSecretSkipSetOwnerReferencesAnnotation]; !ok || anno != "true" {
// Refer back to owning SealedSecret
Expand Down

0 comments on commit d2216ff

Please sign in to comment.