Skip to content

Commit

Permalink
fix(types): node affinity types (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
omBratteng authored Apr 23, 2024
1 parent 3080304 commit 6c5fa07
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/kubernetes/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,23 @@ export type NodeSelectorTerms = {
}
| {
operator: Input<'Exists' | 'DoesNotExist'>;
values?: never;
}
);

export type NodeAffinity = {
requiredDuringSchedulingIgnoredDuringExecution?: Input<{
nodeSelectorTerms: Input<NodeSelectorTerms[]>;
nodeSelectorTerms: Input<
{
matchExpressions: Input<NodeSelectorTerms[]>;
}[]
>;
}>;
preferredDuringSchedulingIgnoredDuringExecution?: Input<
{
weight: Input<number>;
preference: Input<{
matchExpressions: Input<NodeSelectorTerms>;
matchExpressions: Input<NodeSelectorTerms[]>;
}>;
}[]
>;
Expand Down

0 comments on commit 6c5fa07

Please sign in to comment.