mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-09-24 19:47:55 +00:00
Slightly change spec
This commit is contained in:
@@ -89,8 +89,18 @@ func (in *SealedVolumeSpec) DeepCopyInto(out *SealedVolumeSpec) {
|
||||
*out = *in
|
||||
if in.Passphrase != nil {
|
||||
in, out := &in.Passphrase, &out.Passphrase
|
||||
*out = new(SecretSpec)
|
||||
**out = **in
|
||||
*out = make(map[string]*SecretSpec, len(*in))
|
||||
for key, val := range *in {
|
||||
var outVal *SecretSpec
|
||||
if val == nil {
|
||||
(*out)[key] = nil
|
||||
} else {
|
||||
in, out := &val, &outVal
|
||||
*out = new(SecretSpec)
|
||||
**out = **in
|
||||
}
|
||||
(*out)[key] = outVal
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user