import { K8sResourceCommon } from './k8s'; export enum GitOpsDeploymentStrategy { automated = 'Automated', manual = 'Manual', } export enum GitOpsDeploymentHealthStatus { Healthy = 'Healthy', Progressing = 'Progressing', Degraded = 'Degraded', Suspended = 'Suspended', Missing = 'Missing', Unknown = 'Unknown', } export enum GitOpsDeploymentSyncStatus { Synced = 'Synced', Unknown = 'Unknown', OutOfSync = 'OutOfSync', } export type StatusResource = { group: string; health?: { status: string }; kind?: string; name?: string; namespace?: string; }; export type GitOpsDeploymentKind = { spec: { source: { path: string; repoUrl: string; }; type: GitOpsDeploymentStrategy; }; status: { health: { status: GitOpsDeploymentHealthStatus; message?: string; }; sync: { revision: string; status: GitOpsDeploymentSyncStatus; }; resources: StatusResource[]; }; } & K8sResourceCommon; export type GitOpsDeploymentManagedEnvironmentKind = { spec: { allowInsecureSkipTLSVerify: boolean; apiURL: string; credentialsSecret: string; }; status: { conditions: { type: string; status: string; reason: string; message?: string; }[]; }; } & K8sResourceCommon;