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:
16
src/instances/helm-repo.ts
Normal file
16
src/instances/helm-repo.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { KubernetesObject } from '@kubernetes/client-node';
|
||||
|
||||
import { ResourceInstance } from '../services/resources/resources.ts';
|
||||
import type { K8SHelmRepositoryV1 } from '../__generated__/resources/K8SHelmRepositoryV1.ts';
|
||||
|
||||
class HelmRepoInstance extends ResourceInstance<KubernetesObject & K8SHelmRepositoryV1> {
|
||||
public get ready() {
|
||||
if (!this.exists) {
|
||||
return false;
|
||||
}
|
||||
const condition = this.getCondition('Ready');
|
||||
return condition?.status === 'True';
|
||||
}
|
||||
}
|
||||
|
||||
export { HelmRepoInstance };
|
||||
Reference in New Issue
Block a user