Feature Description
The CacheServer is a WIP and has no status at the moment:
|
// CacheServerStatus defines the observed state of CacheServer |
|
type CacheServerStatus struct { |
|
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster |
|
// Important: Run "make" to regenerate code after modifying this file |
|
} |
Proposed Solution
Follow the patterns from the FrontProxy, RootShard and Shard to implement a Phase and Conditions:
|
// ShardStatus defines the observed state of Shard |
|
type ShardStatus struct { |
|
Phase ShardPhase `json:"phase,omitempty"` |
|
|
|
// +listType=map |
|
// +listMapKey=type |
|
Conditions []metav1.Condition `json:"conditions,omitempty"` |
|
} |
|
|
|
type ShardPhase string |
|
|
|
const ( |
|
ShardPhaseProvisioning ShardPhase = "Provisioning" |
|
ShardPhaseRunning ShardPhase = "Running" |
|
ShardPhaseBundled ShardPhase = "Bundled" |
|
ShardPhaseDeleting ShardPhase = "Deleting" |
|
) |
Alternative Solutions
No response
Want to contribute?
Additional Context
No response
Feature Description
The CacheServer is a WIP and has no status at the moment:
kcp-operator/sdk/apis/operator/v1alpha1/cacheserver_types.go
Lines 54 to 58 in 7b7489f
Proposed Solution
Follow the patterns from the FrontProxy, RootShard and Shard to implement a Phase and Conditions:
kcp-operator/sdk/apis/operator/v1alpha1/shard_types.go
Lines 174 to 190 in 7b7489f
Alternative Solutions
No response
Want to contribute?
Additional Context
No response