Skip to content

Commit

Permalink
adds MaxResourceLimitExceedec and JobTimeOut app event types
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefmih committed Mar 25, 2024
1 parent 7c4a92d commit d65fd8e
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 57 deletions.
103 changes: 52 additions & 51 deletions generated/go/porter/v1/agent_app_event_types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions generated/js/src/porter/v1/agent_app_event_types_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export declare enum AppEventType {
INSUFFICIENT_RESOURCES = 1,

/**
* APP_EVENT_TYPE_MAX_RESOURCE_LIMIT is generated when pods can't be scheduled because the node group has reached maximum capacity
* APP_EVENT_TYPE_MAX_RESOURCE_LIMIT_EXCEEDED is generated when pods can't be scheduled because the node group has reached maximum capacity
*
* @generated from enum value: APP_EVENT_TYPE_MAX_RESOURCE_LIMIT = 3;
* @generated from enum value: APP_EVENT_TYPE_MAX_RESOURCE_LIMIT_EXCEEDED = 3;
*/
MAX_RESOURCE_LIMIT = 3,
MAX_RESOURCE_LIMIT_EXCEEDED = 3,

/**
* APP_EVENT_TYPE_INSUFFICIENT_CPU is generated when pods can't be scheduled because there is insufficient CPU
Expand Down
2 changes: 1 addition & 1 deletion generated/js/src/porter/v1/agent_app_event_types_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const AppEventType = /*@__PURE__*/ proto3.makeEnum(
[
{no: 0, name: "APP_EVENT_TYPE_UNSPECIFIED", localName: "UNSPECIFIED"},
{no: 1, name: "APP_EVENT_TYPE_INSUFFICIENT_RESOURCES", localName: "INSUFFICIENT_RESOURCES"},
{no: 3, name: "APP_EVENT_TYPE_MAX_RESOURCE_LIMIT", localName: "MAX_RESOURCE_LIMIT"},
{no: 3, name: "APP_EVENT_TYPE_MAX_RESOURCE_LIMIT_EXCEEDED", localName: "MAX_RESOURCE_LIMIT_EXCEEDED"},
{no: 5, name: "APP_EVENT_TYPE_INSUFFICIENT_CPU", localName: "INSUFFICIENT_CPU"},
{no: 10, name: "APP_EVENT_TYPE_INSUFFICIENT_MEMORY", localName: "INSUFFICIENT_MEMORY"},
{no: 15, name: "APP_EVENT_TYPE_STUCK_PENDING", localName: "STUCK_PENDING"},
Expand Down
4 changes: 2 additions & 2 deletions porter/v1/agent_app_event_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ enum AppEventType {
// This is either CPU or Memory, but agent cannot resolve
APP_EVENT_TYPE_INSUFFICIENT_RESOURCES = 1;

// APP_EVENT_TYPE_MAX_RESOURCE_LIMIT is generated when pods can't be scheduled because the node group has reached maximum capacity
APP_EVENT_TYPE_MAX_RESOURCE_LIMIT = 3;
// APP_EVENT_TYPE_MAX_RESOURCE_LIMIT_EXCEEDED is generated when pods can't be scheduled because the node group has reached maximum capacity
APP_EVENT_TYPE_MAX_RESOURCE_LIMIT_EXCEEDED = 3;

// APP_EVENT_TYPE_INSUFFICIENT_CPU is generated when pods can't be scheduled because there is insufficient CPU
APP_EVENT_TYPE_INSUFFICIENT_CPU = 5;
Expand Down

0 comments on commit d65fd8e

Please sign in to comment.