Skip to content

Commit

Permalink
fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie committed Oct 12, 2023
1 parent 66783aa commit d02dc13
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/license/api/v1/license_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const (

// LicenseStatus defines the observed state of License
type LicenseStatus struct {
// +kubebuilder:validation:Enum=Pending;Failed;Active:default=Pending
//+kubebuilder:validation:Enum=Pending;Failed;Active
//+kubebuilder:default=Pending
Phase LicenseStatusPhase `json:"phase,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ spec:
description: LicenseStatus defines the observed state of License
properties:
phase:
default: Pending
enum:
- Pending
- Failed
- Active
type: string
type: object
type: object
Expand Down
5 changes: 5 additions & 0 deletions controllers/license/deploy/manifests/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ spec:
description: LicenseStatus defines the observed state of License
properties:
phase:
default: Pending
enum:
- Pending
- Failed
- Active
type: string
type: object
type: object
Expand Down

0 comments on commit d02dc13

Please sign in to comment.