Slightly change spec

This commit is contained in:
Ettore Di Giacinto
2022-10-13 22:21:06 +00:00
parent 7c6fa7df06
commit 673bfcbd56
4 changed files with 30 additions and 16 deletions

View File

@@ -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
}
}
}