Back to Skaffold

gRPC API

docs-v1/content/en/docs/references/api-v2/grpc.md

2.19.054.7 KB
Original Source
<!-- ****** WARNING!!! The file docs-v2/content/en/docs/references/api/grpc.md is generated based on proto/markdown.tmpl, and generated with ./hack/generate_proto.sh! Please edit the template file and not the markdown one directly! ****** -->

This is a generated reference for the [Skaffold API]({{<relref "/docs/design/api">}}) gRPC layer.

We also generate the [reference doc for the HTTP layer]({{<relref "/docs/references/api/swagger">}}).

<a name="v2/skaffold.proto"></a>

v2/skaffold.proto

You can find the source for v2/skaffold.proto on Github.

Services

<a name="proto.v2.SkaffoldV2Service"></a>

SkaffoldV2Service

Describes all the methods for the Skaffold API

Method NameRequest TypeResponse TypeDescription
GetState.google.protobuf.EmptyStateReturns the state of the current Skaffold execution
Events.google.protobuf.EmptyEvent streamReturns all the events of the current Skaffold execution from the start
ApplicationLogs.google.protobuf.EmptyEvent streamReturns all the user application logs of the current Skaffold execution
ExecuteUserIntentRequest.google.protobuf.EmptyAllows for a single execution of some or all of the phases (build, sync, deploy) in case autoBuild, autoDeploy or autoSync are disabled.
AutoBuildTriggerRequest.google.protobuf.EmptyAllows for enabling or disabling automatic build trigger
AutoSyncTriggerRequest.google.protobuf.EmptyAllows for enabling or disabling automatic sync trigger
AutoDeployTriggerRequest.google.protobuf.EmptyAllows for enabling or disabling automatic deploy trigger
HandleEvent.google.protobuf.EmptyEXPERIMENTAL. It allows for custom events to be implemented in custom builders for example.
<!-- end services -->

Data types

<a name="proto.v2.ActionableErr"></a>

ActionableErr

ActionableErr defines an error that occurred along with an optional list of suggestions

FieldTypeLabelDescription
errCodeproto.enums.StatusCodeerror code representing the error
messagestringmessage describing the error.
suggestionsSuggestionrepeatedlist of suggestions

<a name="proto.v2.ApplicationLogEvent"></a>

ApplicationLogEvent

ApplicationLogEvent represents a log that comes from one of the pods running in the user's application.

FieldTypeLabelDescription
containerNamestringcontainer that the log came from
podNamestringpod that the log came from
prefixstring
messagestringcontents of the log
richFormattedMessagestringfull message that skaffold writes, with format and color

<a name="proto.v2.BuildMetadata"></a>

BuildMetadata

FieldTypeLabelDescription
artifactsBuildMetadata.Artifactrepeated
typeproto.enums.BuildType
additionalBuildMetadata.AdditionalEntryrepeatedAdditional key value pairs to describe the build pipeline

<a name="proto.v2.BuildMetadata.AdditionalEntry"></a>

BuildMetadata.AdditionalEntry

FieldTypeLabelDescription
keystring
valuestring

<a name="proto.v2.BuildMetadata.Artifact"></a>

BuildMetadata.Artifact

FieldTypeLabelDescription
typeproto.enums.BuilderType
namestringimage name
contextstringskaffold.yaml context field
dockerfilestringskaffold.yaml path to dockerfile. Not guaranteed to be filled

<a name="proto.v2.BuildState"></a>

BuildState

BuildState maps Skaffold artifacts to their current build states

FieldTypeLabelDescription
artifactsBuildState.ArtifactsEntryrepeatedA map of artifact name -> build-state. Artifact name is defined in the skaffold.yaml. The build-state can be:
  • "NotStarted": not yet started
  • "InProgress": build started
  • "Complete": build succeeded
  • "Failed": build failed | | autoTrigger | bool | | | | statusCode | proto.enums.StatusCode | | |

<a name="proto.v2.BuildState.ArtifactsEntry"></a>

BuildState.ArtifactsEntry

FieldTypeLabelDescription
keystring
valuestring

<a name="proto.v2.BuildSubtaskEvent"></a>

BuildSubtaskEvent

BuildSubtaskvent describes the build status per artifact, and will be emitted by Skaffold anytime a build starts or finishes, successfully or not. If the build fails, an error will be attached to the event.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
artifactstringartifact name
stepstringwhich step of the build for the artifact oneof: Cache, Build, Push
statusstringartifact build status oneof: InProgress, Completed, Failed
actionableErrActionableErractionable error message
hostPlatformstringplatform of the host machine. For example linux/amd64
targetPlatformsstringcomma-delimited list of build target platforms. For example linux/amd64,linux/arm64

<a name="proto.v2.CloudRunReadyEvent"></a>

CloudRunReadyEvent

A Resource StatusCheck Event for a Cloud Run Service. Indicates that a Cloud Run Service has deployed successfully and is serving on the specified URL

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
resourcestringthe Cloud Run resource that was deployed
urlstringthe base URL that the Cloud Run service is serving on.
ready_revisionstringthe name of the revision that went ready.

<a name="proto.v2.DebuggingContainerEvent"></a>

DebuggingContainerEvent

DebuggingContainerEvent is raised when a debugging container is started or terminated

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
statusstringthe container status oneof: Started, Terminated
podNamestringthe pod name with the debugging container
containerNamestringthe name of the container configured for debugging
namespacestringthe namespace of the debugging container
artifactstringthe corresponding artifact's image name
runtimestringthe detected language runtime
workingDirstringthe working directory in the container image
debugPortsDebuggingContainerEvent.DebugPortsEntryrepeatedthe exposed debugging-related ports

<a name="proto.v2.DebuggingContainerEvent.DebugPortsEntry"></a>

DebuggingContainerEvent.DebugPortsEntry

FieldTypeLabelDescription
keystring
valueuint32

<a name="proto.v2.DeployMetadata"></a>

DeployMetadata

FieldTypeLabelDescription
deployersDeployMetadata.Deployerrepeated
clusterproto.enums.ClusterType

<a name="proto.v2.DeployMetadata.Deployer"></a>

DeployMetadata.Deployer

FieldTypeLabelDescription
typeproto.enums.DeployerType
countint32

<a name="proto.v2.DeployState"></a>

DeployState

DeployState describes the status of the current deploy

FieldTypeLabelDescription
statusstring
autoTriggerbool
statusCodeproto.enums.StatusCode

<a name="proto.v2.DeploySubtaskEvent"></a>

DeploySubtaskEvent

DeploySubtaskEvent represents the status of a deployment, and is emitted by Skaffold anytime a deployment starts or completes, successfully or not.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
statusstringdeployment status oneof: InProgress, Completed, Failed
actionableErrActionableErractionable error message

<a name="proto.v2.Event"></a>

Event

Event describes an event in the Skaffold process. It is one of MetaEvent, BuildEvent, TestEvent, DeployEvent, PortEvent, StatusCheckEvent, ResourceStatusCheckEvent, FileSyncEvent, or DebuggingContainerEvent.

FieldTypeLabelDescription
timestampgoogle.protobuf.Timestamptimestamp of the event.
metaEventMetaEventcontains general information regarding Skaffold like version info
skaffoldLogEventSkaffoldLogEventdescribes a log that comes from a skaffold phase
applicationLogEventApplicationLogEventdescribes a log that comes from the user's running application
taskEventTaskEventdescribes the start, end, or failure of a skaffold phase
buildSubtaskEventBuildSubtaskEventdescribes if the build status per artifact. Status could be one of "InProgress", "Completed" or "Failed".
deploySubtaskEventDeploySubtaskEventdescribes if the deployment has started, is in progress or is complete.
portEventPortForwardEventdescribes each port forwarding event.
statusCheckSubtaskEventStatusCheckSubtaskEventdescribes if the Status check has started, is in progress, has succeeded or failed.
fileSyncEventFileSyncEventdescribes the sync status.
debuggingContainerEventDebuggingContainerEventdescribes the appearance or disappearance of a debugging container
terminationEventTerminationEventdescribes a skaffold termination event
testEventTestSubtaskEventdescribes if the test has started, is in progress or is complete.
renderEventRenderSubtaskEventdescribes if the render has started, is in progress or is complete.
verifyEventVerifySubtaskEventdescribes if the render has started, is in progress or is complete.
cloudRunReadyEventCloudRunReadyEventdescribes a deployed Cloud Run service.
execEventExecSubtaskEventdescribes if the exec has started, is in progress or is complete.

<a name="proto.v2.ExecState"></a>

ExecState

ExecState describes the state of the current exec

FieldTypeLabelDescription
statusstringStatus of the current exec
statusCodeproto.enums.StatusCodeExecState status code

<a name="proto.v2.ExecSubtaskEvent"></a>

ExecSubtaskEvent

ExecSubtaskEvent represents the status of an exec, and is emitted by Skaffold anytime an exec starts or completes, successfully or not.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
statusstringexec status oneof: InProgress, Completed, Failed
actionableErrActionableErractionable error message

<a name="proto.v2.FileSyncEvent"></a>

FileSyncEvent

FileSyncEvent describes the sync status.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
fileCountint32number of files synced
imagestringthe container image to which files are sycned.
statusstringstatus of file sync. one of: Not Started, InProgress, Succeeded, Failed.
actionableErrActionableErractionable error message

<a name="proto.v2.FileSyncState"></a>

FileSyncState

FileSyncState contains the status of the current file sync

FieldTypeLabelDescription
statusstring
autoTriggerbool

<a name="proto.v2.IntOrString"></a>

IntOrString

IntOrString is a type that can hold an int32 or a string.

FieldTypeLabelDescription
typeint32type of stored value
intValint32int value
strValstringstring value

<a name="proto.v2.Intent"></a>

Intent

Intent represents user intents for a given phase.

FieldTypeLabelDescription
buildboolin case skaffold dev is ran with autoBuild=false, a build intent enables building once
syncboolin case skaffold dev is ran with autoSync=false, a sync intent enables file sync once
deployboolin case skaffold dev is ran with autoDeploy=false, a deploy intent enables deploys once
devloopboolin case skaffold dev is ran with autoDeploy=false, autoSync=false and autoBuild=false a devloop intent enables the entire dev loop once

<a name="proto.v2.MetaEvent"></a>

MetaEvent

MetaEvent provides general information regarding Skaffold

FieldTypeLabelDescription
entrystringentry, for example: "Starting Skaffold: {Version:v0.39.0-16-g5bb7c9e0 ConfigVersion:skaffold/v1 GitVersion: GitCommit:5bb7c9e078e4d522a5ffc42a2f1274fd17d75902 GitTreeState:dirty BuildDate01:29Z GoVersion:go1.13rc1 Compiler:gc Platform:linux/amd64}"
metadataMetadataMetadata describing skaffold pipeline

<a name="proto.v2.Metadata"></a>

Metadata

FieldTypeLabelDescription
buildBuildMetadata
deployDeployMetadata
testTestMetadata
runIDstring
renderRenderMetadata
additionalMetadata.AdditionalEntryrepeatedAdditional key value pairs to describe the build pipeline

<a name="proto.v2.Metadata.AdditionalEntry"></a>

Metadata.AdditionalEntry

FieldTypeLabelDescription
keystring
valuestring

<a name="proto.v2.PortForwardEvent"></a>

PortForwardEvent

PortForwardEvent Event describes each port forwarding event.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
localPortint32local port for forwarded resource
podNamestringpod name if port forwarded resourceType is Pod
containerNamestringcontainer name if specified in the kubernetes spec
namespacestringthe namespace of the resource to port forward.
portNamestring
resourceTypestringresource type e.g. "pod", "service".
resourceNamestringname of the resource to forward.
addressstringaddress on which to bind
targetPortIntOrStringtarget port is the resource port that will be forwarded.

<a name="proto.v2.RenderMetadata"></a>

RenderMetadata

RenderMetadata describes the render pipeline

FieldTypeLabelDescription
RenderersRenderMetadata.Rendererrepeated

<a name="proto.v2.RenderMetadata.Renderer"></a>

RenderMetadata.Renderer

FieldTypeLabelDescription
typeproto.enums.RenderType
countint32

<a name="proto.v2.RenderState"></a>

RenderState

RenderState describes the current state of the render

FieldTypeLabelDescription
statusstringStatus of the current render
statusCodeproto.enums.StatusCodeRenderstate status code

<a name="proto.v2.RenderSubtaskEvent"></a>

RenderSubtaskEvent

RenderSubtaskEvent represents the status of a render, and is emitted by Skaffold anytime a render starts or completes, successfully or not.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
statusstringrender status oneof: InProgress, Completed, Failed
actionableErrActionableErractionable error message

<a name="proto.v2.Request"></a>

Request

FieldTypeLabelDescription
namestring

<a name="proto.v2.Response"></a>

Response

FieldTypeLabelDescription
msgstring

<a name="proto.v2.SkaffoldLogEvent"></a>

SkaffoldLogEvent

SkaffoldLogEvent represents a piece of output that comes from a skaffold run, for example: "Generating tags...", "Step 1/3 : FROM gcr.io/distroless/base"

FieldTypeLabelDescription
task_idstringid of the task of skaffold that this log came from
subtask_idstringid of the subtask that the log came from
levelproto.enums.LogLevelstring origin = 3; // REMOVED: which tool the output came from ex: skaffold, docker

log level | | message | string | | contents of the log |

<a name="proto.v2.State"></a>

State

State represents the current state of the Skaffold components

FieldTypeLabelDescription
buildStateBuildState
deployStateDeployState
forwardedPortsState.ForwardedPortsEntryrepeated
statusCheckStateStatusCheckState
fileSyncStateFileSyncState
debuggingContainersDebuggingContainerEventrepeated
metadataMetadata
testStateTestState
renderStateRenderState
verifyStateVerifyState
execStateExecState

<a name="proto.v2.State.ForwardedPortsEntry"></a>

State.ForwardedPortsEntry

FieldTypeLabelDescription
keyint32
valuePortForwardEvent

<a name="proto.v2.StateResponse"></a>

StateResponse

FieldTypeLabelDescription
stateState

<a name="proto.v2.StatusCheckState"></a>

StatusCheckState

StatusCheckState describes the state of status check of current deployed resources.

FieldTypeLabelDescription
statusstring
resourcesStatusCheckState.ResourcesEntryrepeatedA map of resource name -> status-check-state. Where resource-name is the kubernetes resource name. The status-check-state can be
  • "NotStarted": indicates that status-check has just started.
  • "InProgress": InProgress is sent after every resource check is complete.
  • "Succeeded": - "Failed": | | statusCode | proto.enums.StatusCode | | StatusCheck statusCode |

<a name="proto.v2.StatusCheckState.ResourcesEntry"></a>

StatusCheckState.ResourcesEntry

FieldTypeLabelDescription
keystring
valuestring

<a name="proto.v2.StatusCheckSubtaskEvent"></a>

StatusCheckSubtaskEvent

A Resource StatusCheck Event, indicates progress for each kubernetes deployment. For every resource, there will be exactly one event with status Succeeded or Failed event. There can be multiple events with status Pending. Skaffold polls for resource status every 0.5 second. If the resource status changes, an event with status “Pending”, “Complete” and “Failed” will be sent with the new status.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
resourcestringid of the subtask which will be used in SkaffoldLog
statusstringid of the task of skaffold that this event came from
messagestring
statusCodeproto.enums.StatusCode
actionableErrActionableErractionable error message

<a name="proto.v2.Suggestion"></a>

Suggestion

Suggestion defines the action a user needs to recover from an error.

FieldTypeLabelDescription
suggestionCodeproto.enums.SuggestionCodecode representing a suggestion
actionstringaction represents the suggestion action

<a name="proto.v2.TaskEvent"></a>

TaskEvent

TaskEvent represent the different larger phases of a skaffold session, for example Build, Deploy, etc. If a phase fails, an actionable error will be attached

FieldTypeLabelDescription
idstringwill be used by SkaffoldLog to link it to a task. Follows the form "{task_name}-{iteration-number}"
taskstringtask name oneof: Tag, Build, Test, Deploy, StatusCheck, PortForward, DevLoop
descriptionstringadditional more descriptive text for the task
iterationint32which dev/debug iteration is currently running
statusstringartifact build status oneof: InProgress, Completed, Failed
actionableErrActionableErractionable error message

<a name="proto.v2.TerminationEvent"></a>

TerminationEvent

TerminationEvent marks the end of the skaffold session

FieldTypeLabelDescription
statusstringstatus oneof: Completed or Failed
errActionableErractionable error message

<a name="proto.v2.TestMetadata"></a>

TestMetadata

TestMetadata describes the test pipeline

FieldTypeLabelDescription
TestersTestMetadata.Testerrepeated

<a name="proto.v2.TestMetadata.Tester"></a>

TestMetadata.Tester

FieldTypeLabelDescription
typeproto.enums.TesterType
countint32

<a name="proto.v2.TestState"></a>

TestState

TestState describes the current state of the test

FieldTypeLabelDescription
statusstringStatus of the current test
statusCodeproto.enums.StatusCodeTeststate status code

<a name="proto.v2.TestSubtaskEvent"></a>

TestSubtaskEvent

TestSubtaskEvent represents the status of a test, and is emitted by Skaffold anytime a test starts or completes, successfully or not.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
statusstringtest status oneof: InProgress, Completed, Failed
actionableErrActionableErractionable error message

<a name="proto.v2.TriggerRequest"></a>

TriggerRequest

FieldTypeLabelDescription
stateTriggerState

<a name="proto.v2.TriggerState"></a>

TriggerState

TriggerState represents trigger state for a given phase.

FieldTypeLabelDescription
enabledboolenable or disable a trigger state

<a name="proto.v2.UserIntentRequest"></a>

UserIntentRequest

FieldTypeLabelDescription
intentIntent

<a name="proto.v2.VerifyState"></a>

VerifyState

VerifyState describes the current state of the render

FieldTypeLabelDescription
statusstringStatus of the current render
statusCodeproto.enums.StatusCodeVerifystate status code

<a name="proto.v2.VerifySubtaskEvent"></a>

VerifySubtaskEvent

VerifyEvent represents the status of a render, and is emitted by Skaffold anytime a render starts or completes, successfully or not.

FieldTypeLabelDescription
idstringid of the subtask which will be used in SkaffoldLog
task_idstringid of the task of skaffold that this event came from
statusstringrender status oneof: InProgress, Completed, Failed
actionableErrActionableErractionable error message
<!-- end messages --> <!-- end HasExtensions -->

<a name="proto.enums.BuildType"></a>

BuildType

Enum indicating build type i.e. local, cluster vs GCB

NameNumberDescription
UNKNOWN_BUILD_TYPE0Could not determine Build Type
CLUSTER1Cluster Build
GCB2GCB Build
LOCAL3Local Build

<a name="proto.enums.BuilderType"></a>

BuilderType

Enum indicating builders used

NameNumberDescription
UNKNOWN_BUILDER_TYPE0Could not determine builder type
JIB1JIB Builder
BAZEL2Bazel Builder
BUILDPACKS3Buildpacks Builder
CUSTOM4Custom Builder
KANIKO5Kaniko Builder
DOCKER6Docker Builder
KO7Ko Builder

<a name="proto.enums.ClusterType"></a>

ClusterType

Enum indicating cluster type the application is deployed to

NameNumberDescription
UNKNOWN_CLUSTER_TYPE0Could not determine Cluster Type
MINIKUBE1Minikube Cluster
GKE2GKE cluster
OTHER3All Cluster except Minikube and GKE

<a name="proto.enums.DeployerType"></a>

DeployerType

Enum indicating deploy tools used

NameNumberDescription
UNKNOWN_DEPLOYER_TYPE0Could not determine Deployer Type
HELM1Helm Deployer
KUSTOMIZE2Kustomize Deployer
KUBECTL3Kubectl Deployer
KPT4kpt Deployer

<a name="proto.enums.LogLevel"></a>

LogLevel

Enum indicating the log level of a line of output

NameNumberDescription
DEBUG0Debug Level
INFO1Info Level
WARN2Warn Level
ERROR3Error Level
FATAL4Fatal Level
PANIC5Panic Level
TRACE6Trace Level
STANDARD7User-visible output level

<a name="proto.enums.RenderType"></a>

RenderType

Enum indicating render manifests type

NameNumberDescription
UNKNOWN_RENDER_TYPE0Could not determine Render Type
RAWK8S1Raw Manifests
KUSTOMIZE_MANIFEST2kustomize manifests
HELM_CHART3helm charts
KPT_MANIFEST4kpt manifests

<a name="proto.enums.StatusCode"></a>

StatusCode

Enum for Status codes

These error codes are prepended by Phase Name e.g. INIT, BUILD, TEST, DEPLOY, STATUSCHECK, DEVINIT

For Success Error codes, use range 200 to 250.

For Unknown error codes, use range 500 to 600.

For Cancelled Error code, use range 800 to 850.

NameNumberDescription
OK0A default status code for events that do not have an associated phase. Typically seen with the DevEndEvent event on success.
STATUSCHECK_SUCCESS200Status Check Success
BUILD_SUCCESS201Build Success
RENDER_SUCCESS204Render Success
DEPLOY_SUCCESS202Deploy Success
TEST_SUCCESS203Test Success
BUILD_PUSH_ACCESS_DENIED101Build error due to push access denied
BUILD_PROJECT_NOT_FOUND102Build error due to GCP project not found.
BUILD_DOCKER_DAEMON_NOT_RUNNING103Docker build error due to docker daemon not running
BUILD_USER_ERROR104Build error due to user application code, e.g. compilation error, dockerfile error etc
BUILD_DOCKER_UNAVAILABLE105Build error due to docker not available
BUILD_DOCKER_UNAUTHORIZED106Docker build error due to user not authorized to perform the action
BUILD_DOCKER_SYSTEM_ERR107Docker system build error
BUILD_DOCKER_NOT_MODIFIED_ERR108Docker build error due to Docker build container is already in the desired state
BUILD_DOCKER_NOT_IMPLEMENTED_ERR109Docker build error indicating a feature not supported
BUILD_DOCKER_DATA_LOSS_ERR110Docker build error indicates that for given build, data was lost or there is data corruption
BUILD_DOCKER_FORBIDDEN_ERR111Docker build error indicates user is forbidden to perform the build or step/action.
BUILD_DOCKER_CONFLICT_ERR112Docker build error due to some internal error and docker container state conflicts with the requested action and can't be performed
BUILD_DOCKER_ERROR_NOT_FOUND113Docker build error indicates the requested object does not exist
BUILD_DOCKER_INVALID_PARAM_ERR114Docker build error indication invalid parameter sent to docker command
BUILD_DOCKERFILE_NOT_FOUND115Docker build failed due to dockerfile not found
BUILD_DOCKER_CACHE_FROM_PULL_ERR116Docker build failed due cacheFrom user config error
BUILD_DOCKER_GET_DIGEST_ERR117Build error due to digest for built artifact could not be retrieved from docker daemon.
BUILD_DOCKER_NO_SPACE_ERR127Build error due no space left in docker.
BUILD_REGISTRY_GET_DIGEST_ERR118Build error due to digest for built artifact could not be retrieved from registry.
BUILD_UNKNOWN_JIB_PLUGIN_TYPE119Build error indicating unknown Jib plugin type. Should be one of [maven, gradle]
BUILD_JIB_GRADLE_DEP_ERR120Build error determining dependency for jib gradle project.
BUILD_JIB_MAVEN_DEP_ERR121Build error determining dependency for jib gradle project.
INIT_DOCKER_NETWORK_LISTING_CONTAINERS122Docker build error when listing containers.
INIT_DOCKER_NETWORK_INVALID_CONTAINER_NAME123Docker build error indicating an invalid container name (or id).
INIT_DOCKER_NETWORK_CONTAINER_DOES_NOT_EXIST124Docker build error indicating the container referenced does not exists in the docker context used.
INIT_DOCKER_NETWORK_INVALID_MODE125Docker Network invalid mode
INIT_DOCKER_NETWORK_PARSE_ERR126Error parsing Docker Network mode
BUILD_GCB_CREATE_BUILD_ERR128GCB Create Build Error
BUILD_GCB_GET_BUILD_ID_ERR129GCB error indicating an error to fetch build id.
BUILD_GCB_GET_BUILD_STATUS_ERR130GCB error indicating an error to fetch build status.
BUILD_GCB_GET_BUILD_LOG_ERR131GCB error indicating an error to fetch build logs.
BUILD_GCB_COPY_BUILD_LOG_ERR132GCB error indicating an error to fetch build status.
BUILD_GCB_GET_BUILT_IMAGE_ERR133GCB error indicating an error retrieving the built image id.
BUILD_GCB_BUILD_FAILED134GCB error indicating build failure.
BUILD_GCB_BUILD_INTERNAL_ERR135GCB error indicating build failure due to internal errror.
BUILD_GCB_BUILD_TIMEOUT136GCB error indicating build failure due to timeout.
BUILD_GCB_GENERATE_BUILD_DESCRIPTOR_ERR137GCB error to generate the build descriptor.
BUILD_GCB_UPLOAD_TO_GCS_ERR138GCB error to upload to GCS.
BUILD_GCB_JIB_DEPENDENCY_ERR139GCB error to fetch jib artifact dependency.
BUILD_GCB_GET_DEPENDENCY_ERR140GCB error to fetch artifact dependency.
BUILD_GCB_GET_GCS_BUCKET_ERR141GCB error to get GCS bucket.
BUILD_GCB_CREATE_BUCKET_ERR142GCB error to create a GCS bucket.
BUILD_GCB_EXTRACT_PROJECT_ID143GCB error to extract Project ID.
BUILD_GET_CLOUD_STORAGE_CLIENT_ERR144GCB error to get cloud storage client to perform GCS operation.
BUILD_GET_CLOUD_BUILD_CLIENT_ERR145GCB error to get cloud build client to perform GCB operations.
BUILD_UNKNOWN_PLATFORM_FLAG150Value provided to --platform flag cannot be parsed
BUILD_CROSS_PLATFORM_ERR151Cross-platform build failures
BUILD_CROSS_PLATFORM_NO_REGISTRY_ERR152Multi-platfor build fails due to no container registry set
STATUSCHECK_IMAGE_PULL_ERR300Container image pull error
STATUSCHECK_CONTAINER_CREATING301Container creating error
STATUSCHECK_RUN_CONTAINER_ERR302Container run error
STATUSCHECK_CONTAINER_TERMINATED303Container is already terminated
STATUSCHECK_DEPLOYMENT_ROLLOUT_PENDING304Deployment waiting for rollout
STATUSCHECK_STANDALONE_PODS_PENDING305Standalone pods pending to stabilize
STATUSCHECK_CONTAINER_RESTARTING356Container restarting error
STATUSCHECK_UNHEALTHY357Readiness probe failed
STATUSCHECK_CONTAINER_EXEC_ERROR358Executable binary format error
STATUSCHECK_NODE_MEMORY_PRESSURE400Node memory pressure error
STATUSCHECK_NODE_DISK_PRESSURE401Node disk pressure error
STATUSCHECK_NODE_NETWORK_UNAVAILABLE402Node network unavailable error
STATUSCHECK_NODE_PID_PRESSURE403Node PID pressure error
STATUSCHECK_NODE_UNSCHEDULABLE404Node unschedulable error
STATUSCHECK_NODE_UNREACHABLE405Node unreachable error
STATUSCHECK_NODE_NOT_READY406Node not ready error
STATUSCHECK_FAILED_SCHEDULING407Scheduler failure error
STATUSCHECK_KUBECTL_CONNECTION_ERR409Kubectl connection error
STATUSCHECK_KUBECTL_PID_KILLED410Kubectl process killed error
STATUSCHECK_KUBECTL_CLIENT_FETCH_ERR411Kubectl client fetch err
STATUSCHECK_DEPLOYMENT_FETCH_ERR412
STATUSCHECK_STANDALONE_PODS_FETCH_ERR413
STATUSCHECK_CONFIG_CONNECTOR_RESOURCES_FETCH_ERR414
STATUSCHECK_STATEFULSET_FETCH_ERR415
STATUSCHECK_CUSTOM_RESOURCE_FETCH_ERR416
STATUSCHECK_POD_INITIALIZING451Pod Initializing
STATUSCHECK_CONFIG_CONNECTOR_IN_PROGRESS452The actual state of the resource has not yet reached the desired state
STATUSCHECK_CONFIG_CONNECTOR_FAILED453The process of reconciling the actual state with the desired state has encountered an error
STATUSCHECK_CONFIG_CONNECTOR_TERMINATING454The resource is in the process of being deleted
STATUSCHECK_CONFIG_CONNECTOR_NOT_FOUND455The resource does not exist
STATUSCHECK_CUSTOM_RESOURCE_IN_PROGRESS456The actual state of the resource has not yet reached the desired state
STATUSCHECK_CUSTOM_RESOURCE_FAILED457The process of reconciling the actual state with the desired state has encountered an error
STATUSCHECK_CUSTOM_RESOURCE_TERMINATING458The resource is in the process of being deleted
STATUSCHECK_CUSTOM_RESOURCE_NOT_FOUND459The resource does not exist
UNKNOWN_ERROR500Could not determine error and phase
STATUSCHECK_UNKNOWN501Status Check error unknown
STATUSCHECK_UNKNOWN_UNSCHEDULABLE502Container is unschedulable due to unknown reasons
STATUSCHECK_CONTAINER_WAITING_UNKNOWN503Container is waiting due to unknown reason
STATUSCHECK_UNKNOWN_EVENT509Container event reason unknown
STATUSCHECK_INTERNAL_ERROR514Status Check internal error
DEPLOY_UNKNOWN504Deploy failed due to unknown reason
SYNC_UNKNOWN505SYNC failed due to known reason
BUILD_UNKNOWN506Build failed due to unknown reason
DEVINIT_UNKNOWN507Dev Init failed due to unknown reason
CLEANUP_UNKNOWN508Cleanup failed due to unknown reason
INIT_UNKNOWN510Initialization of the Skaffold session failed due to unknown reason(s)
BUILD_DOCKER_UNKNOWN511Build failed due to docker unknown error
TEST_UNKNOWN512Test failed due to unknown reason
BUILD_GCB_BUILD_UNKNOWN_STATUS513GCB error indicating build failed due to unknown status.
SYNC_INIT_ERROR601File Sync Initialize failure
DEVINIT_REGISTER_BUILD_DEPS701Failed to configure watcher for build dependencies in dev loop
DEVINIT_REGISTER_TEST_DEPS702Failed to configure watcher for test dependencies in dev loop
DEVINIT_REGISTER_DEPLOY_DEPS703Failed to configure watcher for deploy dependencies in dev loop
DEVINIT_REGISTER_CONFIG_DEP704Failed to configure watcher for Skaffold configuration file.
DEVINIT_UNSUPPORTED_V1_MANIFEST705Failed to configure watcher for build dependencies for a base image with v1 manifest.
DEVINIT_REGISTER_RENDER_DEPS706Failed to configure watcher for render dependencies in dev loop
STATUSCHECK_USER_CANCELLED800User cancelled the skaffold dev run
STATUSCHECK_DEADLINE_EXCEEDED801Deadline for status check exceeded
BUILD_CANCELLED802Build Cancelled
DEPLOY_CANCELLED803Deploy cancelled due to user cancellation or one or more deployers failed.
BUILD_DOCKER_CANCELLED804Docker build cancelled.
BUILD_DOCKER_DEADLINE805Build error due to docker deadline was reached before the docker action completed
BUILD_GCB_BUILD_CANCELLED806GCB Build cancelled.
INIT_CREATE_TAGGER_ERROR901Skaffold was unable to create the configured tagger
INIT_MINIKUBE_PAUSED_ERROR902Skaffold was unable to start as Minikube appears to be paused
INIT_MINIKUBE_NOT_RUNNING_ERROR903Skaffold was unable to start as Minikube appears to be stopped
INIT_CREATE_BUILDER_ERROR904Skaffold was unable to create a configured image builder
INIT_CREATE_DEPLOYER_ERROR905Skaffold was unable to create a configured deployer
INIT_CREATE_TEST_DEP_ERROR906Skaffold was unable to create a configured test
INIT_CACHE_ERROR907Skaffold encountered an error validating the artifact cache
INIT_CREATE_WATCH_TRIGGER_ERROR908Skaffold encountered an error when configuring file watching
INIT_CREATE_ARTIFACT_DEP_ERROR909Skaffold encountered an error when evaluating artifact dependencies
INIT_CLOUD_RUN_LOCATION_ERROR910No Location was specified for Cloud Run
DEPLOY_CLUSTER_CONNECTION_ERR1001Unable to connect to cluster
DEPLOY_DEBUG_HELPER_RETRIEVE_ERR1002Could not retrieve debug helpers.
DEPLOY_CLEANUP_ERR1003Deploy clean up error
DEPLOY_HELM_APPLY_LABELS1004Unable to apply helm labels.
DEPLOY_HELM_USER_ERR1005Deploy error due to user deploy config for helm deployer
DEPLOY_NO_MATCHING_BUILD1006An image was referenced with no matching build result
DEPLOY_HELM_VERSION_ERR1007Unable to get helm client version
DEPLOY_HELM_MIN_VERSION_ERR1008Helm version not supported.
DEPLOY_KUBECTL_VERSION_ERR1109Unable to retrieve kubectl version
DEPLOY_KUBECTL_OFFLINE_MODE_ERR1010User specified offline mode for rendering but remote manifests presents.
DEPLOY_ERR_WAITING_FOR_DELETION1011Error waiting for previous version deletion before next version is active.
DEPLOY_READ_MANIFEST_ERR1012Error reading manifests
DEPLOY_READ_REMOTE_MANIFEST_ERR1013Error reading remote manifests
DEPLOY_LIST_MANIFEST_ERR1014Errors listing manifests
DEPLOY_KUBECTL_USER_ERR1015Deploy error due to user deploy config for kubectl deployer
DEPLOY_KUSTOMIZE_USER_ERR1016Deploy error due to user deploy config for kustomize deployer
DEPLOY_REPLACE_IMAGE_ERR1017Error replacing a built artifact in the manifests
DEPLOY_TRANSFORM_MANIFEST_ERR1018Error transforming a manifest during skaffold debug
DEPLOY_SET_LABEL_ERR1019Error setting user specified additional labels.
DEPLOY_MANIFEST_WRITE_ERR1020Error writing hydrated kubernetes manifests.
DEPLOY_PARSE_MANIFEST_IMAGES_ERR1021Error getting images from a kubernetes manifest.
DEPLOY_HELM_CREATE_NS_NOT_AVAILABLE1022Helm config createNamespace not available
DEPLOY_CLUSTER_INTERNAL_SYSTEM_ERR1023Kubernetes cluster reported an internal system error
DEPLOY_KPTFILE_INIT_ERR1024The Kptfile cannot be created via kpt live init.
DEPLOY_KPT_SOURCE_ERR1025The kpt fn source cannot read the given manifests.
DEPLOY_KPTFILE_INVALID_YAML_ERR1026The Kptfile exists but cannot be opened or parsed.
DEPLOY_KPT_APPLY_ERR1027kpt fails to live apply the manifests to the cluster.
DEPLOY_GET_CLOUD_RUN_CLIENT_ERR1028The Cloud Run Client could not be created
DEPLOY_CLOUD_RUN_GET_SERVICE_ERR1029The Cloud Run Client could not get details about the service.
DEPLOY_CLOUD_RUN_UPDATE_SERVICE_ERR1030The Cloud Run Client was unable to update the service.
DEPLOY_CLOUD_RUN_DELETE_SERVICE_ERR1031The Cloud Run Client was unable to delete the service.
DEPLOY_CLOUD_RUN_GET_WORKER_POOL_ERR1032The Cloud Run Client could not get details about the workerpool.
DEPLOY_CLOUD_RUN_UPDATE_WORKER_POOL_ERR1033The Cloud Run Client was unable to update the workerpool.
DEPLOY_CLOUD_RUN_DELETE_WORKER_POOL_ERR1034The Cloud Run Client was unable to delete the workerpool.
TEST_USER_CONFIG_ERR1101Error expanding paths
TEST_CST_USER_ERR1102Error running container-structure-test
TEST_IMG_PULL_ERR1103Unable to docker pull image
TEST_CUSTOM_CMD_PARSE_ERR1104Unable to parse test command
TEST_CUSTOM_CMD_RUN_NON_ZERO_EXIT_ERR1105Command returned non-zero exit code
TEST_CUSTOM_CMD_RUN_TIMEDOUT_ERR1106command cancelled or timed out
TEST_CUSTOM_CMD_RUN_CANCELLED_ERR1107command cancelled or timed out
TEST_CUSTOM_CMD_RUN_EXECUTION_ERR1108command context error
TEST_CUSTOM_CMD_RUN_EXITED_ERR1110command exited
TEST_CUSTOM_CMD_RUN_ERR1111error running cmd
TEST_CUSTOM_DEPENDENCIES_CMD_ERR1112Error getting dependencies from command
TEST_CUSTOM_DEPENDENCIES_UNMARSHALL_ERR1113Unmarshalling dependency output error
TEST_CUSTOM_CMD_RETRIEVE_ERR1114Error retrieving the command
RENDER_KPTFILE_INIT_ERR1501Render errors The Kptfile cannot be created via kpt pkg init.
RENDER_KPTFILE_INVALID_YAML_ERR1401The Kptfile is not a valid yaml file
RENDER_KPTFILE_INVALID_SCHEMA_ERR1402The Kptfile is not a valid API schema
RENDER_SET_NAMESPACE_ERR1403Error setting namespace.
RENDER_NAMESPACE_ALREADY_SET_ERR1404Namespace is already set.
RENDER_REPLACE_IMAGE_ERR1405Error replacing a built artifact in the manifests
RENDER_TRANSFORM_MANIFEST_ERR1406Error transforming a manifest during skaffold debug
RENDER_SET_LABEL_ERR1407Error setting user specified additional labels.
RENDER_MANIFEST_WRITE_ERR1408Error writing hydrated kubernetes manifests.
RENDER_PARSE_MANIFEST_IMAGES_ERR1409Error getting images from a kubernetes manifest.
RENDER_HELM_PLUGIN_ERR1410Error due to Helm plugin registration
CONFIG_FILE_PARSING_ERR1201Catch-all configuration file parsing error
CONFIG_FILE_NOT_FOUND_ERR1202Main configuration file not found
CONFIG_DEPENDENCY_NOT_FOUND_ERR1203Dependency configuration file not found
CONFIG_DUPLICATE_NAMES_SAME_FILE_ERR1204Duplicate config names in the same configuration file
CONFIG_DUPLICATE_NAMES_ACROSS_FILES_ERR1205Duplicate config names in two configuration files
CONFIG_BAD_FILTER_ERR1206No configs matching configs filter
CONFIG_ZERO_FOUND_ERR1207No configs parsed from current file
CONFIG_APPLY_PROFILES_ERR1208Failed to apply profiles to config
CONFIG_DEFAULT_VALUES_ERR1209Failed to set default config values
CONFIG_FILE_PATHS_SUBSTITUTION_ERR1210Failed to substitute absolute file paths in config
CONFIG_MULTI_IMPORT_PROFILE_CONFLICT_ERR1211Same config imported at least twice with different set of profiles
CONFIG_PROFILES_NOT_FOUND_ERR1212Profile selection did not match known profile names
CONFIG_UNKNOWN_API_VERSION_ERR1213Config API version not found
CONFIG_UNKNOWN_VALIDATOR1214The validator is not allowed in skaffold-managed mode.
CONFIG_UNKNOWN_TRANSFORMER1215The transformer is not allowed in skaffold-managed mode.
CONFIG_MISSING_MANIFEST_FILE_ERR1216Manifest file not found
CONFIG_REMOTE_REPO_CACHE_NOT_FOUND_ERR1217Remote config repository cache not found and sync disabled
CONFIG_UPGRADE_ERR1218Skaffold config version mismatch
INSPECT_UNKNOWN_ERR1301Catch-all skaffold inspect command error
INSPECT_BUILD_ENV_ALREADY_EXISTS_ERR1302Trying to add new build environment that already exists
INSPECT_BUILD_ENV_INCORRECT_TYPE_ERR1303Trying to modify build environment that doesn't exist
INSPECT_PROFILE_NOT_FOUND_ERR1304Trying to modify a profile that doesn't exist
PORT_FORWARD_RUN_GCLOUD_NOT_FOUND1601
PORT_FORWARD_RUN_PROXY_START_ERROR1602
LOG_STREAM_RUN_GCLOUD_NOT_FOUND1603GCloud not found error

<a name="proto.enums.SuggestionCode"></a>

SuggestionCode

Enum for Suggestion codes

NameNumberDescription
NIL0default nil suggestion. This is usually set when no error happens.
ADD_DEFAULT_REPO100Add Default Repo
CHECK_DEFAULT_REPO101Verify Default Repo
CHECK_DEFAULT_REPO_GLOBAL_CONFIG102Verify default repo in the global config
GCLOUD_DOCKER_AUTH_CONFIGURE103run gcloud docker auth configure
DOCKER_AUTH_CONFIGURE104Run docker auth configure
CHECK_GCLOUD_PROJECT105Verify Gcloud Project
CHECK_DOCKER_RUNNING106Check if docker is running
FIX_USER_BUILD_ERR107Fix User Build Error
DOCKER_BUILD_RETRY108Docker build internal error, try again
FIX_CACHE_FROM_ARTIFACT_CONFIG109Fix cacheFrom config for given artifact and try again
FIX_SKAFFOLD_CONFIG_DOCKERFILE110Fix dockerfile config for a given artifact and try again.
FIX_JIB_PLUGIN_CONFIGURATION111Use a supported Jib plugin type
FIX_DOCKER_NETWORK_CONTAINER_NAME112Docker build network invalid docker container name (or id).
CHECK_DOCKER_NETWORK_CONTAINER_RUNNING113Docker build network container not existing in the current context.
FIX_DOCKER_NETWORK_MODE_WHEN_EXTRACTING_CONTAINER_NAME114Executing extractContainerNameFromNetworkMode with a non valid mode (only container mode allowed)
RUN_DOCKER_PRUNE115Prune Docker image
SET_CLEANUP_FLAG116Set Cleanup flag for skaffold command.
BUILD_FIX_UNKNOWN_PLATFORM_FLAG117Check value provided to the --platform flag
BUILD_INSTALL_PLATFORM_EMULATORS118Check if QEMU platform emulators are installed
SET_PUSH_AND_CONTAINER_REGISTRY119Set --push and container registry to run a multi-platform build
CHECK_CLUSTER_CONNECTION201Check cluster connection
CHECK_MINIKUBE_STATUS202Check minikube status
INSTALL_HELM203Install helm tool
UPGRADE_HELM204Upgrade helm tool
FIX_SKAFFOLD_CONFIG_HELM_ARTIFACT_OVERRIDES205Fix helm releases.artifactOverrides config to match with build.artifacts (no longer used in Skaffold v2)
UPGRADE_HELM32206Upgrade helm version to v3.2.0 and higher.
FIX_SKAFFOLD_CONFIG_HELM_CREATE_NAMESPACE207Set releases.createNamespace to false.
INVALID_KPT_MANIFESTS208check the Kptfile validation.
ALIGN_KPT_INVENTORY209align the inventory info in kpt live apply.
INSTALL_KUBECTL220Install kubectl tool
SPECIFY_CLOUD_RUN_LOCATION230Specify Cloud Run Location
CHECK_CONTAINER_LOGS301Container run error
CHECK_READINESS_PROBE302Pod Health check error
CHECK_CONTAINER_IMAGE303Check Container image
ADDRESS_NODE_MEMORY_PRESSURE400Node pressure error
ADDRESS_NODE_DISK_PRESSURE401Node disk pressure error
ADDRESS_NODE_NETWORK_UNAVAILABLE402Node network unavailable error
ADDRESS_NODE_PID_PRESSURE403Node PID pressure error
ADDRESS_NODE_UNSCHEDULABLE404Node unschedulable error
ADDRESS_NODE_UNREACHABLE405Node unreachable error
ADDRESS_NODE_NOT_READY406Node not ready error
ADDRESS_FAILED_SCHEDULING407Scheduler failure error
CHECK_HOST_CONNECTION408Cluster Connectivity error
START_MINIKUBE501Minikube is stopped: use minikube start
UNPAUSE_MINIKUBE502Minikube is paused: use minikube unpause
RUN_DOCKER_PULL551Run Docker pull for the image with v1 manifest and try again.
SET_RENDER_FLAG_OFFLINE_FALSE600Rerun with correct offline flag value.
KPTFILE_MANUAL_INIT601Manually run kpt pkg init or kpt live init
KPTFILE_CHECK_YAML602Check if the Kptfile is correct.
REMOVE_NAMESPACE_FROM_MANIFESTS603Remove namespace from manifests
CONFIG_CHECK_FILE_PATH700Check configuration file path
CONFIG_CHECK_DEPENDENCY_DEFINITION701Check dependency config definition
CONFIG_CHANGE_NAMES702Change config name to avoid duplicates
CONFIG_CHECK_FILTER703Check config filter
CONFIG_CHECK_PROFILE_DEFINITION704Check profile definition in current config
CONFIG_CHECK_DEPENDENCY_PROFILES_SELECTION705Check active profile selection for dependency config
CONFIG_CHECK_PROFILE_SELECTION706Check profile selection flag
CONFIG_FIX_API_VERSION707Fix config API version or upgrade the skaffold binary
CONFIG_ALLOWLIST_VALIDATORS708Only the allow listed validators are acceptable in skaffold-managed mode.
CONFIG_ALLOWLIST_transformers709Only the allow listed transformers are acceptable in skaffold-managed mode.
CONFIG_FIX_MISSING_MANIFEST_FILE710Check mising manifest file section of config and fix as needed.
CONFIG_ENABLE_REMOTE_REPO_SYNC711Enable remote repo sync, or clone manually
CONFIG_FIX_SKAFFOLD_CONFIG_VERSION712Upgrade skaffold config version to latest
INSPECT_USE_MODIFY_OR_NEW_PROFILE800Create new build env in a profile instead, or use the 'modify' command
INSPECT_USE_ADD_BUILD_ENV801Check profile selection, or use the 'add' command instead
INSPECT_CHECK_INPUT_PROFILE802Check profile flag value
OPEN_ISSUE900Open an issue so this situation can be diagnosed
CHECK_CUSTOM_COMMAND1000Test error suggestion codes
FIX_CUSTOM_COMMAND_TIMEOUT1001
CHECK_CUSTOM_COMMAND_DEPENDENCIES_CMD1002
CHECK_CUSTOM_COMMAND_DEPENDENCIES_PATHS1003
CHECK_TEST_COMMAND_AND_IMAGE_NAME1004

<a name="proto.enums.TesterType"></a>

TesterType

Enum indicating test tools used

NameNumberDescription
UNKNOWN_TEST_TYPE0Could not determine Test Type
UNIT1Unit tests
CONTAINER_STRUCTURE_TEST2Container Structure tests
<!-- end enums -->