Skip to content

Commit

Permalink
Make conditions optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rxbn committed Feb 20, 2023
1 parent 01f6889 commit 31c1668
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions api/v1beta1/account_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type AccountStatusZones struct {
// AccountStatus defines the observed state of Account
type AccountStatus struct {
// Conditions contains the different condition statuses for the Account object.
// +optional
Conditions []metav1.Condition `json:"conditions"`
// Zones contains all the zones of the Account
// +optional
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/dnsrecord_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type DNSRecordSpec struct {
// DNSRecordStatus defines the observed state of DNSRecord
type DNSRecordStatus struct {
// Conditions contains the different condition statuses for the DNSRecord object.
// +optional
Conditions []metav1.Condition `json:"conditions"`
// Cloudflare DNS record ID
// +optional
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/ip_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type IPSpec struct {
// IPStatus defines the observed state of IP
type IPStatus struct {
// Conditions contains the different condition statuses for the IP object.
// +optional
Conditions []metav1.Condition `json:"conditions"`
// LastObservedIP contains the IP address observed at the last interval (used to determine whether the IP has changed)
// +optional
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/zone_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type ZoneSpec struct {
// ZoneStatus defines the observed state of Zone
type ZoneStatus struct {
// Conditions contains the different condition statuses for the Zone object.
// +optional
Conditions []metav1.Condition `json:"conditions"`
}

Expand Down
2 changes: 0 additions & 2 deletions config/crd/bases/cf.containeroo.ch_accounts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ spec:
type: string
type: object
type: array
required:
- conditions
type: object
type: object
served: true
Expand Down
2 changes: 0 additions & 2 deletions config/crd/bases/cf.containeroo.ch_dnsrecords.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ spec:
recordID:
description: Cloudflare DNS record ID
type: string
required:
- conditions
type: object
type: object
served: true
Expand Down
2 changes: 0 additions & 2 deletions config/crd/bases/cf.containeroo.ch_ips.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ spec:
description: LastObservedIP contains the IP address observed at the
last interval (used to determine whether the IP has changed)
type: string
required:
- conditions
type: object
type: object
served: true
Expand Down
2 changes: 0 additions & 2 deletions config/crd/bases/cf.containeroo.ch_zones.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ spec:
- type
type: object
type: array
required:
- conditions
type: object
type: object
served: true
Expand Down

0 comments on commit 31c1668

Please sign in to comment.