mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Turn on @typescript-eslint/strict-boolean-expressions
- Fix some bugs about bad conditions Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
d3f45bfe49
commit
1675c56e59
165 files changed
+853
-1141
No files matched your search
@@ -273,7 +273,7 @@ export type HorizontalPodAutoscalerMetricStatus =
|
||||
| OptionVariant<"ContainerResource", BaseHorizontalPodAutoscalerMetricStatus, "containerResource">;
|
||||
|
||||
export interface HorizontalPodAutoscalerSpec {
|
||||
scaleTargetRef: CrossVersionObjectReference;
|
||||
scaleTargetRef?: CrossVersionObjectReference;
|
||||
minReplicas?: number;
|
||||
maxReplicas: number;
|
||||
metrics?: HorizontalPodAutoscalerMetricSpec[];
|
||||
|
||||
@@ -81,8 +81,9 @@ export interface IngressRule {
|
||||
}
|
||||
|
||||
export interface IngressSpec {
|
||||
tls: {
|
||||
secretName: string;
|
||||
tls?: {
|
||||
secretName?: string;
|
||||
hosts?: string[];
|
||||
}[];
|
||||
rules?: IngressRule[];
|
||||
// extensions/v1beta1
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface PodMetricsContainerUsage {
|
||||
|
||||
export interface PodMetricsContainer {
|
||||
name: string;
|
||||
usage: PodMetricsContainerUsage;
|
||||
usage?: PodMetricsContainerUsage;
|
||||
}
|
||||
|
||||
export class PodMetrics extends KubeObject<NamespaceScopedMetadata, void, void> {
|
||||
|
||||
@@ -11,7 +11,7 @@ export interface PodSecurityPolicySpec {
|
||||
allowedCSIDrivers?: {
|
||||
name: string;
|
||||
}[];
|
||||
allowedCapabilities: string[];
|
||||
allowedCapabilities?: string[];
|
||||
allowedFlexVolumes?: {
|
||||
driver: string;
|
||||
}[];
|
||||
@@ -61,7 +61,7 @@ export interface PodSecurityPolicySpec {
|
||||
};
|
||||
seLinux?: {
|
||||
rule: string;
|
||||
seLinuxOptions: {
|
||||
seLinuxOptions?: {
|
||||
level: string;
|
||||
role: string;
|
||||
type: string;
|
||||
|
||||
@@ -41,16 +41,16 @@ export class ServicePort {
|
||||
}
|
||||
|
||||
export interface ServiceSpec {
|
||||
type: string;
|
||||
clusterIP: string;
|
||||
type?: string;
|
||||
clusterIP?: string;
|
||||
clusterIPs?: string[];
|
||||
externalTrafficPolicy?: string;
|
||||
externalName?: string;
|
||||
loadBalancerIP?: string;
|
||||
loadBalancerSourceRanges?: string[];
|
||||
sessionAffinity: string;
|
||||
selector: Partial<Record<string, string>>;
|
||||
ports: ServicePortSpec[];
|
||||
sessionAffinity?: string;
|
||||
selector?: Partial<Record<string, string>>;
|
||||
ports?: ServicePortSpec[];
|
||||
healthCheckNodePort?: number;
|
||||
externalIPs?: string[]; // https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
|
||||
topologyKeys?: string[];
|
||||
|
||||
@@ -37,9 +37,9 @@ export class StorageClass extends KubeObject<ClusterScopedMetadata, void, void>
|
||||
|
||||
allowedTopologies: TopologySelectorTerm[];
|
||||
|
||||
mountOptions: string[];
|
||||
mountOptions?: string[];
|
||||
|
||||
parameters: Partial<Record<string, string>>;
|
||||
parameters?: Partial<Record<string, string>>;
|
||||
|
||||
provisioner: string;
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ export interface PodUpdatePolicy {
|
||||
}
|
||||
|
||||
export interface VerticalPodAutoscalerSpec {
|
||||
targetRef: CrossVersionObjectReference;
|
||||
targetRef?: CrossVersionObjectReference;
|
||||
updatePolicy?: PodUpdatePolicy;
|
||||
resourcePolicy?: PodResourcePolicy;
|
||||
recommenders?: VerticalPodAutoscalerRecommenderSelector[];
|
||||
|
||||
Reference in new issue
Block a user