File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export interface ApplicationArgs {
3434 nameSuffix ?: string ;
3535 minReplicas ?: number ;
3636 maxReplicas : number ;
37- limits : Input < Pick < PodResources , 'memory' > > ;
37+ limits : Input < Partial < PodResources > > ;
3838 requests ?: Input < PodResources > ;
3939 dependsOn ?: Input < Resource > [ ] ;
4040 /** @deprecated please use the new ports */
@@ -77,7 +77,7 @@ export interface CronArgs {
7777 schedule ?: string ;
7878 concurrencyPolicy ?: string ;
7979 activeDeadlineSeconds ?: number ;
80- limits : Input < Pick < PodResources , 'memory' > > ;
80+ limits : Input < Partial < PodResources > > ;
8181 requests ?: Input < PodResources > ;
8282 dependsOn ?: Input < Resource > [ ] ;
8383 env ?: Input < k8s . types . input . core . v1 . EnvVar > [ ] ;
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ export function nodeOptions(memory: number): { name: string; value: string } {
2323
2424// Do not limit cpu (https://home.robusta.dev/blog/stop-using-cpu-limits/)
2525export function stripCpuFromLimits (
26- requests : Input < PodResources > ,
27- ) : Output < Omit < PodResources , 'cpu' > > {
26+ requests : Input < Partial < PodResources > > ,
27+ ) : Output < Omit < Partial < PodResources > , 'cpu' > > {
2828 // eslint-disable-next-line @typescript-eslint/no-unused-vars
2929 return all ( [ requests ] ) . apply ( ( [ { cpu, ...rest } ] ) => rest ) ;
3030}
You can’t perform that action at this time.
0 commit comments