Converting services.js and service.js to TS

This commit is contained in:
Eric Herbrandson
2020-08-23 16:38:27 -05:00
parent e35a88fff8
commit f5769b55bc
3 changed files with 48 additions and 8 deletions

View File

@@ -397,7 +397,6 @@ interface JobStatus {
export interface Job extends ApiItem<JobSpec, JobStatus> {
}
interface DeploymentSpec {
template: {
spec: Spec;
@@ -408,4 +407,27 @@ interface DeploymentStatus {
}
export interface Deployment extends ApiItem<DeploymentSpec, DeploymentStatus> {
}
interface Port {
name: string;
port: number;
targetPort: number;
protocol: string;
}
interface ServiceSpec {
clusterIP: string;
type: string;
sessionAffinity: string;
selector?: {
app: string;
}
ports: Port[];
}
interface ServiceStatus {
}
export interface Service extends ApiItem<ServiceSpec, ServiceStatus> {
}