mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
12 lines
374 B
TypeScript
12 lines
374 B
TypeScript
import type { V1StatefulSet } from '@kubernetes/client-node';
|
|
|
|
import { ResourceInstance } from '../services/resources/resources.instance.ts';
|
|
|
|
class StatefulSetInstance extends ResourceInstance<V1StatefulSet> {
|
|
public get ready() {
|
|
return this.exists && this.manifest?.status?.readyReplicas === this.manifest?.status?.replicas;
|
|
}
|
|
}
|
|
|
|
export { StatefulSetInstance };
|