chore: Change refactoring of implementation to maintain behaviour

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-05-02 10:11:52 -07:00
1 parent 8395c262ad
commit dcc5495312
8 files changed
+103 -94

No files matched your search

@@ -3,28 +3,10 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type {
KubeObjectMetadata,
KubeObjectStatus,
NamespaceScopedMetadata,
BaseKubeObjectCondition,
} from "../api-types";
import type { KubeObjectStatus, NamespaceScopedMetadata, BaseKubeObjectCondition } from "../api-types";
import { KubeObject } from "../kube-object";
import type { PodTemplateSpec } from "../types/pod-template-spec";
export interface Scale {
apiVersion: "autoscaling/v1";
kind: "Scale";
metadata: KubeObjectMetadata;
spec: {
replicas: number;
};
status: {
replicas: number;
selector: string;
};
}
export interface ReplicationControllerSpec {
/**
* Minimum number of seconds for which a newly created pod should be ready without any of its container crashing,
+27
View File
@@ -0,0 +1,27 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type { KubeObjectMetadata } from "../api-types";
export interface Scale {
apiVersion: "autoscaling/v1";
kind: "Scale";
metadata: KubeObjectMetadata;
spec: {
replicas: number;
};
status: {
replicas: number;
selector: string;
};
}
export interface ScaleCreateOptions {
apiVersion?: "autoscaling/v1";
kind?: "Scale";
spec: {
replicas: number;
};
}