Skip to content

Commit

Permalink
Add PriorityClassName field to profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
  • Loading branch information
welteki authored and alexellis committed Aug 8, 2024
1 parent c182c02 commit 6f5a753
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/apis/openfaas/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@ type ProfileSpec struct {
// +optional
Resources *corev1.ResourceRequirements `json:"resources,omitempty"`

// If specified, indicates the function pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords
// which indicate the highest priorities with the former being the highest priority.
// Any other name must be defined by creating a PriorityClass object with that name.
// If not specified, the function pod priority will be default or zero if there is no default.
//
// +optional
PriorityClassName string `json:"priorityClassName,omitempty"`

// Strategy allows customizing the deployment strategy for function deployments.
//
// +optional
Expand Down

0 comments on commit 6f5a753

Please sign in to comment.