Skip to content

feature: Implement CacheServer Status similar to other types #182

@ntnn

Description

@ntnn

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?

  • I would like to work on this issue.

Additional Context

No response

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions