mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
updates
This commit is contained in:
11
src/instances/stateful-set.ts
Normal file
11
src/instances/stateful-set.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user