Skip to content

Commit

Permalink
Add default network setting and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
guangbochen authored and gitlawr committed Oct 26, 2020
1 parent 8630978 commit 8cbe186
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 1 deletion.
31 changes: 31 additions & 0 deletions deploy/charts/harvester/crds/harvester.cattle.io_settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,37 @@ spec:
type: object
source:
type: string
status:
properties:
conditions:
items:
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
to another.
type: string
lastUpdateTime:
description: The last time this condition was updated.
type: string
message:
description: Human-readable message indicating details about last
transition
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of the condition.
type: string
required:
- status
- type
type: object
type: array
type: object
value:
type: string
type: object
Expand Down
7 changes: 7 additions & 0 deletions pkg/apis/harvester.cattle.io/v1alpha1/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@ type Setting struct {

// +optional
Source string `json:"source,omitempty"`

Status SettingStatus `json:"status,omitempty"`
}

type SettingStatus struct {
// +optional
Conditions []Condition `json:"conditions,omitempty"`
}
22 changes: 22 additions & 0 deletions pkg/apis/harvester.cattle.io/v1alpha1/zz_generated_deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 109 additions & 1 deletion pkg/generated/controllers/harvester.cattle.io/v1alpha1/setting.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8cbe186

Please sign in to comment.