Skip to content

Commit

Permalink
added health and readiness flags and restat option
Browse files Browse the repository at this point in the history
  • Loading branch information
r0light committed Apr 3, 2024
1 parent af416f8 commit 6099a1a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/entities/deploymentMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ function getDeploymentMappingProperties(): EntityProperty[] {
value: "never",
text: "never"
},
{
value: "onReboot",
text: "on reboot"
},
{
value: "onProcessFailure",
text: "on process failure"
Expand Down
12 changes: 12 additions & 0 deletions src/totypa/parsedProfiles/cna_modeling_tosca_profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,18 @@ export const cna_modeling_tosca_profile: TOSCA_Service_Template = {
"required": true,
"description": "Flag to specify whether this endpoint is idempotent, meaning that the effect of a successful invocation is independent of the number of times it is invoked.",
"default": false
},
"readiness_check": {
"type": "boolean",
"required": true,
"description": "Flag to specify whether this endpoint is used as a readiness check",
"default": false
},
"health_check": {
"type": "boolean",
"required": true,
"description": "Flag to specify whether this endpoint is used as a health check",
"default": false
}
},
"capabilities": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ export type CnaQualityModelEntitiesEndpoint = {
properties?: {
rate_limiting: string,
idempotent: boolean,
readiness_check: boolean,
health_check: boolean,
},
attributes?: {
tosca_id?: string,
Expand Down
10 changes: 10 additions & 0 deletions tosca-profiles/cna-modeling-tosca-profile/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,16 @@ node_types:
required: true
description: Flag to specify whether this endpoint is idempotent, meaning that the effect of a successful invocation is independent of the number of times it is invoked.
default: false
readiness_check:
type: boolean
required: true
description: Flag to specify whether this endpoint is used as a readiness check
default: false
health_check:
type: boolean
required: true
description: Flag to specify whether this endpoint is used as a health check
default: false
capabilities:
# Allow assigning exactly one Endpoint Capability
endpoint:
Expand Down

0 comments on commit 6099a1a

Please sign in to comment.