PaCRD Custom Resource Definition Documentation
pacrd.armory.spinnaker.io/v1alpha1
Package v1alpha1 contains API Schema definitions for the pacrd.armory.spinnaker.io Applications and Pipelines.
Resource Types:
Application
Application is the Schema for the applications API
| Field | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
specApplicationSpec |
|
Artifact
(Appears on: BakeManifest, Webhook)
Artifact is an object that references an external resource. It could be a Docker container, file in source control, AMI, or binary blob in S3, etc.
| Field | Description |
|---|---|
idstring |
ID is a unique identifier for this artifact. IDs must only be unique for the pipeline they are declared in. |
displayNamestring |
DisplayName tells Spinnaker how to render this artifact in the UI. |
usePriorArtifactbool |
(Optional)
Attempt to match against an artifact in the prior pipeline execution’s context. See the reference for more information. |
useDefaultArtifactbool |
(Optional)
If true, requires DefaultArtifact to be defined with a fallback artifact to use. |
defaultArtifactMatchArtifact |
(Optional)
If your artifact either wasn’t supplied from a trigger, or it wasn’t found in a prior execution, the artifact specified here will end up in your pipeline’s execution context. |
matchArtifactMatchArtifact |
(Optional)
This specifies which fields in your incoming artifact to match against. Every field that you supply will be used to match against all incoming artifacts. If all specified fields match, the incoming artifact is bound to your pipeline context. See the reference for more information. |
ArtifactReference
| Field | Description |
|---|---|
idstring |
(Optional) |
displayNamestring |
(Optional) |
BakeManifest
(Appears on: StageUnion)BakeManifest represents a bake manifest stage in Spinnaker.
NOTE: I suspect this only supports helm2 style deployments right now.
NOTE: notifications currently not supported for this stage.
| Field | Description |
|---|---|
failOnFailedExpressionsbool |
(Optional) |
failPipelinebool |
(Optional) |
continuePipelinebool |
(Optional) |
completeOtherBranchesThenFailbool |
(Optional) |
namespacestring |
(Optional) |
evaluateOverrideExpressionsbool |
|
expectedArtifacts[]Artifact |
|
inputArtifacts[]*github.com/armory-io/pacrd/api/v1alpha1.ArtifactReference |
|
outputNamestring |
(Optional) |
overridesmap[string]string |
(Optional) |
rawOverridesbool |
(Optional) |
templateRendererstring |
CheckPreconditions
(Appears on: StageUnion)| Field | Description |
|---|---|
preconditions[]github.com/armory-io/pacrd/api/v1alpha1.Precondition |
(Optional) |
Context
(Appears on: Precondition)| Field | Description |
|---|---|
expressionstring |
|
failureMessagestring |
(Optional) |
CustomArtifact
| Field | Description |
|---|---|
typestring |
|
namestring |
|
idstring |
|
locationstring |
|
referencestring |
|
versionstring |
|
artifactAccountstring |
DataSource (string alias)
DataSource is a tab in the Spinnaker UI representing a kind of managed resource. Allowed values include: serverGroups,executions,loadBalancers,securityGroups.
DataSources
DataSources optionally enable and disable elements of the Spinnaker Application UI.
| Field | Description |
|---|---|
enabled[]github.com/armory-io/pacrd/api/v1alpha1.DataSource |
(Optional)
Enabled is the list of explicitly enabled UI elements. |
disabled[]github.com/armory-io/pacrd/api/v1alpha1.DataSource |
(Optional)
Disabled is the list of explicitly disabled UI elements. |
DeleteManifest
(Appears on: StageUnion)| Field | Description |
|---|---|
accountstring |
|
appstring |
|
cloudProviderstring |
|
locationstring |
|
modeDeleteManifestMode |
(Optional)
This should be fixed to use type DeleteManifestMode |
kindKubernetesKind |
(Optional)
This should be fixed to use type SpinnakerKind |
targetNamestring |
(Optional) |
labelSelectorsLabelSelector |
(Optional) |
optionsOptions |
(Optional) |
clusterstring |
(Optional) |
criteriaTargetCriteria |
(Optional) |
kinds[]KubernetesKind |
(Optional) |
DeleteManifestMode (string alias)
(Appears on:
DeleteManifest)
Not sure where these values are in the service, need to find more but for the moment this are all possible
DeployManifest
(Appears on: StageUnion)DeployManifest deploys a Kubernetes manifest to a target Kubernetes cluster. Spinnaker will periodically check the status of the manifest to make sure the manifest converges on the target cluster until it reaches a timeout FIXME: trafficManagement, relationships
| Field | Description |
|---|---|
accountstring |
Account is the configured account to deploy to. |
cloudProviderstring |
CloudProvider is the type of cloud provider used by the selected account. |
completeOtherBranchesThenFailbool |
|
continuePipelinebool |
|
failPipelinebool |
|
manifestArtifactAccountstring |
(Optional) |
manifestArtifactIdstring |
(Optional) |
manifests[]string |
(Optional) |
monikerMoniker |
FIXME |
skipExpressionEvaluationbool |
(Optional) |
sourceSource |
(Optional) |
DockerArtifact
DockerArtifact represents a container in the target Docker registry.
| Field | Description |
|---|---|
artifactAccountstring |
ArtifactAccount represents the desired container registry to pull images from. |
namestring |
Name is the fully qualified Docker image name in the configured registry. |
idstring |
ID represents a pipeline-wide unique identifier. |
typestring |
EmbeddedArtifact
EmbeddedArtifact represents a base64 encoded artifact.
| Field | Description |
|---|---|
typestring |
|
namestring |
|
idstring |
ErrNameUndefined
| Field | Description |
|---|---|
ArtifactNamestring |
FindArtifactsFromResource
(Appears on: StageUnion)FindArtifactsFromResource represents the stage of the same name in Spinnaker.
| Field | Description |
|---|---|
accountstring |
|
appstring |
|
cloudProviderstring |
|
locationstring |
|
manifestNamestring |
|
modestring |
Jitter
(Appears on: RestrictedExecutionWindow)Jitter TODO description
| Field | Description |
|---|---|
enabledbool |
|
maxDelayint |
|
minDelayint |
|
skipManualbool |
JudgmentInput
JudgmentInput TODO description
| Field | Description |
|---|---|
valuestring |
JudgmentMessage
(Appears on: ManualJudgmentNotification)JudgmentMessage TODO description
| Field | Description |
|---|---|
manualJudgmentContinueJudgmentMessageValue |
|
manualJudgmentStopJudgmentMessageValue |
JudgmentMessageValue
(Appears on: JudgmentMessage)JudgmentMessageValue TODO description
| Field | Description |
|---|---|
textstring |
JudgmentState (string alias)
JudgmentState TODO description
KubernetesKind (string alias)
(Appears on:
DeleteManifest,
UndoRolloutManifest)
KubernetesKind comes from the Object spinnakerKindMap in call: http://localhost:8084/credentials?expand=true.
Also this can be found in class /clouddriver/clouddriver-kubernetes-v2/src/main/java/com/netflix/spinnaker/clouddriver/kubernetes/v2/description/manifest/KubernetesKind.java
LabelSelector
(Appears on: DeleteManifest)| Field | Description |
|---|---|
selectors[]Selector |
ManualJudgment
(Appears on: StageUnion)ManualJudgment TODO description
| Field | Description |
|---|---|
namestring |
|
failPipelinebool |
|
instructionsstring |
|
judgmentInputs[]github.com/armory-io/pacrd/api/v1alpha1.JudgmentInput |
|
stageTimeoutMsint |
No, the json annotation is not spelled incorrectly. |
sendNotificationsbool |
(Optional) |
notifications[]ManualJudgmentNotification |
(Optional) |
ManualJudgmentNotification
(Appears on: ManualJudgment)ManualJudgmentNotification TODO description
| Field | Description |
|---|---|
typestring |
|
addressstring |
|
levelstring |
|
messageJudgmentMessage |
|
when[]github.com/armory-io/pacrd/api/v1alpha1.JudgmentState |
MatchArtifact
(Appears on: Artifact)| Field | Description |
|---|---|
typestring |
|
propertiesk8s.io/apimachinery/pkg/runtime.RawExtension |
(Optional) |
Moniker
(Appears on: DeployManifest)Moniker TODO
| Field | Description |
|---|---|
appstring |
OptionValue
| Field | Description |
|---|---|
valuestring |
Options
(Appears on: DeleteManifest)| Field | Description |
|---|---|
cascadingbool |
(Optional) |
gracePeriodSecondsint |
(Optional) |
Parameter
| Field | Description |
|---|---|
defaultstring |
(Optional) |
descriptionstring |
(Optional) |
hasOptionsbool |
(Optional) |
labelstring |
(Optional) |
namestring |
|
options[]github.com/armory-io/pacrd/api/v1alpha1.OptionValue |
(Optional) |
pinnedbool |
(Optional) |
requiredbool |
(Optional) |
Permissions
Permissions maps actions inside Spinnaker to authenticated roles that can take them.
| Field | Description |
|---|---|
READ[]string |
(Optional)
Read grants the defined roles the ability to read an application and its pipelines. |
WRITE[]string |
(Optional)
Write grants the defined roles the ability to modify an application and its pipelines. |
EXECUTE[]string |
(Optional)
Execute grants the defined roles the ability to execute an application’s pipelines. |
Pipeline
Pipeline is the Schema for the pipelines API
| Field | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
specPipelineSpec |
|
PipelineStatus
(Appears on: Pipeline)PipelineStatus defines the observed state of Pipeline
| Field | Description |
|---|---|
lastConfiguredKubernetes meta/v1.Time |
LastConfigured represents the last time the operator updated this pipeline in Spinnaker. |
phasePipelinePhase |
Phase is the current phase of pipeline reconciliation. |
urlstring |
|
idstring |
ID represents the Spinnaker generated id for this pipeline |
Precondition
Precondition TODO likely needs to be refined to support more than expressions
| Field | Description |
|---|---|
contextContext |
|
failPipelinebool |
|
typestring |
RestrictedExecutionWindow
(Appears on: StageUnion)RestrictedExecutionWindow TODO description
| Field | Description |
|---|---|
days[]int |
|
jitterJitter |
TODO candidate for further validation |
whitelist[]WhiteListWindow |
Selector
(Appears on: LabelSelector)| Field | Description |
|---|---|
keystring |
|
kindSelectorsKind |
|
values[]string |
SelectorsKind (string alias)
(Appears on:
Selector)
This value comes from: /clouddriver/clouddriver-kubernetes-v2/src/main/java/com/netflix/spinnaker/clouddriver/kubernetes/v2/security/KubernetesSelector.java
Source (string alias)
(Appears on:
DeployManifest)
Source represents the kind of DeployManifest stage is defined.
SpinnakerMatchArtifact
SpinnakerMatchArtifact represents TODO
StageEnabled
(Appears on: StageUnion, Webhook)StageEnabled represents whether this stage is active in a pipeline graph.
| Field | Description |
|---|---|
typestring |
|
expressionstring |
StageUnion
Stage is a union type that encompasses strongly typed stage defnitions.
| Field | Description |
|---|---|
typeStageUnionType |
Type represents the type of stage that is described. |
namestring |
Name is the name given to this stage. |
refIdstring |
RefID is the position in the pipeline graph that this stage should live. Usually monotonically increasing for a pipeline. |
requisiteStageRefIds[]string |
(Optional)
RequisiteStageRefIds is a list of RefIDs that are required before this stage can run. |
stageEnabledStageEnabled |
(Optional)
StageEnabled represents whether this stage is active in a pipeline graph. |
commentsstring |
(Optional)
Comments provide additional context for this stage in the Spinnaker UI. |
restrictExecutionDuringTimeWindowbool |
(Optional)
RestrictExecutionDuringTimeWindow provides the ability to restrict the hours during which this stage can run. |
restrictedExecutionWindowRestrictedExecutionWindow |
(Optional)
RestrictedExecutionWindow provides the ability to restrict the hours during which this stage can run. |
skipWindowTextstring |
(Optional)
SkipWindowText is the text to display when this stage is skipped. |
bakeManifestBakeManifest |
(Optional)
BakeManifest renders a Kubernetes manifest to be applied to a target cluster at a later stage. The manifests can be rendered using HELM2 or Kustomize. |
findArtifactsFromResourceFindArtifactsFromResource |
(Optional) |
manualJudgmentManualJudgment |
(Optional)
ManualJudgment stage pauses pipeline execution until there is approval from a human through the UI or API call that allows the execution to proceed. |
deleteManifestDeleteManifest |
(Optional)
DeleteManifest removes a manifest or a group of manifests from a target Spinnaker cluster based on names, deployment version or labels. |
checkPreconditionsCheckPreconditions |
(Optional)
CheckPreconditions allows you to test values from the pipeline’s context to determine wether to proceed, pause, or terminate the pipeline execution |
deployManifestDeployManifest |
(Optional)
DeployManifest deploys a Kubernetes manifest to a target Kubernetes cluster. Spinnaker will periodically check the status of the manifest to make sure the manifest converges on the target cluster until it reaches a timeout |
webhookWebhook |
(Optional)
Webhook allows you to make quick API calls to an external system as part of a pipeline |
undoRolloutManifestUndoRolloutManifest |
(Optional)
UndoRolloutManifest rolls back a Kubernetes manifest to a previous version. |
StageUnionType (string alias)
(Appears on:
StageUnion)
StageUnionType is an alias for the type name of the pipeline’s stage.
StatusUrlResolution (string alias)
(Appears on:
Webhook)
StatusUrlResolution will poll a status url to determine the progress of the stage.
TargetCriteria (string alias)
(Appears on:
DeleteManifest)
These values can be found in: /clouddriver/clouddriver-kubernetes-v2/src/main/java/com/netflix/spinnaker/clouddriver/kubernetes/v2/controllers/ManifestController.java
UndoRolloutManifest
(Appears on: StageUnion)UndoRolloutManifest is a stage that rolls back a manifest.
| Field | Description |
|---|---|
accountstring |
|
cloudProviderstring |
|
locationstring |
|
numRevisionsBackint |
|
modeUndoRolloutManifestMode |
(Optional) |
targetNamestring |
(Optional) |
kindKubernetesKind |
(Optional) |
UndoRolloutManifestMode (string alias)
(Appears on:
UndoRolloutManifest)
UndoRolloutManifestMode is the means for undoing a manifest rollout.
UnknownArtifact
| Field | Description |
|---|---|
typestring |
|
propertiesmap[string]interface{} |
Webhook
(Appears on: StageUnion)Webhook represents a webhook stage in Spinnaker. NOTE: notifications currently not supported for this stage.
| Field | Description |
|---|---|
urlstring |
|
methodstring |
|
failOnFailedExpressionsbool |
(Optional) |
expectedArtifacts[]Artifact |
(Optional) |
stageEnabledStageEnabled |
(Optional) |
cancelEndpointstring |
(Optional) |
cancelMethodstring |
(Optional) |
cancelPayloadstring |
(Optional) |
canceledStatusesstring |
(Optional) |
customHeadersstring |
(Optional) |
payloadstring |
(Optional) |
progressJsonPathstring |
(Optional) |
retryStatusCodes[]int |
(Optional) |
failFastStatusCodes[]int |
(Optional) |
statusJsonPathstring |
(Optional) |
statusUrlResolutionStatusUrlResolution |
(Optional) |
successStatusesstring |
(Optional) |
terminalStatusesstring |
(Optional) |
waitBeforeMonitorstring |
(Optional) |
waitForCompletionbool |
(Optional) |
statusUrlJsonPathstring |
(Optional) |
signalCancellationbool |
(Optional) |
WhiteListWindow
(Appears on: RestrictedExecutionWindow)WhiteListWindow TODO description
| Field | Description |
|---|---|
endHourint |
|
endMinint |
|
startHourint |
|
startMinint |
Generated with gen-crd-api-reference-docs
on git commit 5c79111.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.