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