mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-04-27 11:30:52 +00:00
Add omitempty
on PartitionSpec fields to make the optional
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
parent
aa736211af
commit
3b9477b6ea
@ -34,10 +34,10 @@ type SealedVolumeSpec struct {
|
||||
// any of the fields: Label, DeviceName, UUID. The Secret defines the secret
|
||||
// which decrypts the partition.
|
||||
type PartitionSpec struct {
|
||||
Label string `json:"label"`
|
||||
DeviceName string `json:"deviceName"`
|
||||
UUID string `json:"uuid"`
|
||||
Secret *SecretSpec `json:"secret"`
|
||||
Label string `json:"label,omitempty"`
|
||||
DeviceName string `json:"deviceName,omitempty"`
|
||||
UUID string `json:"uuid,omitempty"`
|
||||
Secret *SecretSpec `json:"secret,omitempty"`
|
||||
}
|
||||
|
||||
type SecretSpec struct {
|
||||
|
@ -56,11 +56,6 @@ spec:
|
||||
type: object
|
||||
uuid:
|
||||
type: string
|
||||
required:
|
||||
- deviceName
|
||||
- label
|
||||
- secret
|
||||
- uuid
|
||||
type: object
|
||||
type: array
|
||||
quarantined:
|
||||
|
Loading…
Reference in New Issue
Block a user