Skip to content

Commit b03870b

Browse files
committed
[migration-crd] origin/destination omitempty
1 parent 2b722ec commit b03870b

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

api/v1alpha1/migration_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type MigrationSpec struct {
3030

3131
// MigrationStatus defines the observed state of Migration.
3232
type MigrationStatus struct {
33-
Origin string `json:"origin"`
34-
Destination string `json:"destination"`
33+
Origin string `json:"origin,omitempty"`
34+
Destination string `json:"destination,omitempty"`
3535
Type string `json:"type,omitempty"`
3636
Started metav1.Time `json:"started,omitempty"`
3737
ErrMsg string `json:"errMsg,omitempty"`

charts/kvm-node-agent/crds/migration-crd.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ spec:
141141
type: string
142142
type:
143143
type: string
144-
required:
145-
- destination
146-
- origin
147144
type: object
148145
type: object
149146
served: true

config/crd/bases/kvm.cloud.sap_migrations.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ spec:
142142
type: string
143143
type:
144144
type: string
145-
required:
146-
- destination
147-
- origin
148145
type: object
149146
type: object
150147
served: true

0 commit comments

Comments
 (0)