Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions api/v1/requirement_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,30 @@ type RequirementSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of Requirement. Edit requirement_types.go to remove/update
Foo string `json:"foo,omitempty"`
// +kubebuilder:validation:Required
Template OperationSpec `json:"template"`
// +kubebuilder:validation:Required
EnableCache bool `json:"enableCache"`
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Pattern:=`^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$`
ExpireAt string `json:"expireAt,omitempty"`
}

// RequirementStatus defines the observed state of Requirement.
type RequirementStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
OperationId string `json:"operationId"`
OperationName string `json:"operationName"`
CacheKey string `json:"originalCacheKey"`
Phase string `json:"phase"`
Conditions []metav1.Condition `json:"conditions"`
}

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=`.status.phase`
// +kubebuilder:printcolumn:name="OperationId",type="string",JSONPath=`.status.operationId`

// Requirement is the Schema for the requirements API.
type Requirement struct {
Expand Down
12 changes: 10 additions & 2 deletions api/v1/zz_generated.deepcopy.go

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

7,592 changes: 7,590 additions & 2 deletions config/crd/bases/app.github.com_requirements.yaml

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions internal/controller/mocks/mock_requirement_adapter.go

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

Loading
Loading