Skip to content

Commit

Permalink
fix: correct schema definition
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Apr 20, 2023
1 parent 610cb14 commit b287bd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/src/types/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function serviceFromConfig<M extends GardenModule = GardenModule>(
}

export const deployStates = ["ready", "deploying", "stopped", "unhealthy", "unknown", "outdated", "missing"] as const
export type DeployState = (typeof deployStates)[number]
export type DeployState = typeof deployStates[number]

/**
* Given a list of states, return a single state representing the list.
Expand Down Expand Up @@ -227,7 +227,7 @@ export const serviceStatusSchema = () =>
lastError: joi.string().description("Latest error status message of the service (if any)."),
outputs: joiVariables().description("A map of values output from the deployment."),
runningReplicas: joi.number().description("How many replicas of the service are currently running."),
deployState: joi
state: joi
.string()
.valid(...deployStates)
.default("unknown")
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ deployStatuses:
runningReplicas:
# The current deployment status of the service.
deployState:
state:
# When the service was last updated by the provider.
updatedAt:
Expand Down Expand Up @@ -437,7 +437,7 @@ When this flag is not used, all services in the project are cleaned up simultane
runningReplicas:
# The current deployment status of the service.
deployState:
state:
# When the service was last updated by the provider.
updatedAt:
Expand Down Expand Up @@ -2654,7 +2654,7 @@ actions:
runningReplicas:

# The current deployment status of the service.
deployState:
state:

# When the service was last updated by the provider.
updatedAt:
Expand Down

0 comments on commit b287bd4

Please sign in to comment.