{
  "description": "Stage is the Kargo API's main type.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": [
        "string",
        "null"
      ]
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "Spec describes sources of Freight used by the Stage and how to incorporate\nFreight into the Stage.",
      "properties": {
        "promotionTemplate": {
          "additionalProperties": false,
          "description": "PromotionTemplate describes how to incorporate Freight into the Stage\nusing a Promotion.",
          "properties": {
            "spec": {
              "additionalProperties": false,
              "description": "PromotionTemplateSpec describes the (partial) specification of a Promotion\nfor a Stage. This is a template that can be used to create a Promotion for a\nStage.",
              "properties": {
                "steps": {
                  "description": "Steps specifies the directives to be executed as part of a Promotion.\nThe order in which the directives are executed is the order in which they\nare listed in this field.",
                  "items": {
                    "additionalProperties": false,
                    "description": "PromotionStep describes a directive to be executed as part of a Promotion.",
                    "properties": {
                      "as": {
                        "description": "As is the alias this step can be referred to as.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "config": {
                        "description": "Config is opaque configuration for the PromotionStep that is understood\nonly by each PromotionStep's implementation. It is legal to utilize\nexpressions in defining values at any level of this block.\nSee https://docs.kargo.io/user-guide/reference-docs/expressions for details.",
                        "x-kubernetes-preserve-unknown-fields": true
                      },
                      "continueOnError": {
                        "description": "ContinueOnError is a boolean value that, if set to true, will cause the\nPromotion to continue executing the next step even if this step fails. It\nalso will not permit this failure to impact the overall status of the\nPromotion.",
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "if": {
                        "description": "If is an optional expression that, if present, must evaluate to a boolean\nvalue. If the expression evaluates to false, the step will be skipped.\nIf the expression does not evaluate to a boolean value, the step will be\nconsidered to have failed.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "retry": {
                        "additionalProperties": false,
                        "description": "Retry is the retry policy for this step.",
                        "properties": {
                          "errorThreshold": {
                            "description": "ErrorThreshold is the number of consecutive times the step must fail (for\nany reason) before retries are abandoned and the entire Promotion is marked\nas failed.\n\nIf this field is set to 0, the effective default will be a step-specific\none. If no step-specific default exists (i.e. is also 0), the effective\ndefault will be the system-wide default of 1.\n\nA value of 1 will cause the Promotion to be marked as failed after just\na single failure; i.e. no retries will be attempted.\n\nThere is no option to specify an infinite number of retries using a value\nsuch as -1.\n\nIn a future release, Kargo is likely to become capable of distinguishing\nbetween recoverable and non-recoverable step failures. At that time, it is\nplanned that unrecoverable failures will not be subject to this threshold\nand will immediately cause the Promotion to be marked as failed without\nfurther condition.",
                            "format": "int32",
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "timeout": {
                            "description": "Timeout is the soft maximum interval in which a step that returns a Running\nstatus (which typically indicates it's waiting for something to happen)\nmay be retried.\n\nThe maximum is a soft one because the check for whether the interval has\nelapsed occurs AFTER the step has run. This effectively means a step may\nrun ONCE beyond the close of the interval.\n\nIf this field is set to nil, the effective default will be a step-specific\none. If no step-specific default exists (i.e. is also nil), the effective\ndefault will be the system-wide default of 0.\n\nA value of 0 will cause the step to be retried indefinitely unless the\nErrorThreshold is reached.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "task": {
                        "additionalProperties": false,
                        "description": "Task is a reference to a PromotionTask that should be inflated into a\nPromotion when it is built from a PromotionTemplate.",
                        "properties": {
                          "kind": {
                            "description": "Kind is the type of the PromotionTask. Can be either PromotionTask or\nClusterPromotionTask, default is PromotionTask.",
                            "enum": [
                              "PromotionTask",
                              "ClusterPromotionTask"
                            ],
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "description": "Name is the name of the (Cluster)PromotionTask.",
                            "maxLength": 253,
                            "minLength": 1,
                            "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "uses": {
                        "description": "Uses identifies a runner that can execute this step.",
                        "minLength": 1,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "vars": {
                        "description": "Vars is a list of variables that can be referenced by expressions in\nthe step's Config. The values override the values specified in the\nPromotionSpec.",
                        "items": {
                          "additionalProperties": false,
                          "description": "ExpressionVariable describes a single variable that may be referenced by\nexpressions in the context of a ClusterPromotionTask, PromotionTask,\nPromotion, AnalysisRun arguments, or other objects that support expressions.\n\nIt is used to pass information to the expression evaluation engine, and to\nallow for dynamic evaluation of expressions based on the variable values.",
                          "properties": {
                            "name": {
                              "description": "Name is the name of the variable.",
                              "minLength": 1,
                              "pattern": "^[a-zA-Z_]\\w*$",
                              "type": "string"
                            },
                            "value": {
                              "description": "Value is the value of the variable. It is allowed to utilize expressions\nin the value.\nSee https://docs.kargo.io/user-guide/reference-docs/expressions for details.",
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "name"
                          ],
                          "type": "object"
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      }
                    },
                    "type": "object",
                    "x-kubernetes-validations": [
                      {
                        "message": "PromotionTemplate step must have exactly one of uses or task set",
                        "rule": "(has(self.uses) ? !has(self.task) : has(self.task))"
                      }
                    ]
                  },
                  "minItems": 1,
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "vars": {
                  "description": "Vars is a list of variables that can be referenced by expressions in\npromotion steps.",
                  "items": {
                    "additionalProperties": false,
                    "description": "ExpressionVariable describes a single variable that may be referenced by\nexpressions in the context of a ClusterPromotionTask, PromotionTask,\nPromotion, AnalysisRun arguments, or other objects that support expressions.\n\nIt is used to pass information to the expression evaluation engine, and to\nallow for dynamic evaluation of expressions based on the variable values.",
                    "properties": {
                      "name": {
                        "description": "Name is the name of the variable.",
                        "minLength": 1,
                        "pattern": "^[a-zA-Z_]\\w*$",
                        "type": "string"
                      },
                      "value": {
                        "description": "Value is the value of the variable. It is allowed to utilize expressions\nin the value.\nSee https://docs.kargo.io/user-guide/reference-docs/expressions for details.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                }
              },
              "type": "object"
            }
          },
          "required": [
            "spec"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "requestedFreight": {
          "description": "RequestedFreight expresses the Stage's need for certain pieces of Freight,\neach having originated from a particular Warehouse. This list must be\nnon-empty. In the common case, a Stage will request Freight having\noriginated from just one specific Warehouse. In advanced cases, requesting\nFreight from multiple Warehouses provides a method of advancing new\nartifacts of different types through parallel pipelines at different\nspeeds. This can be useful, for instance, if a Stage is home to multiple\nmicroservices that are independently versioned.",
          "items": {
            "additionalProperties": false,
            "description": "FreightRequest expresses a Stage's need for Freight having originated from a\nparticular Warehouse.",
            "properties": {
              "origin": {
                "additionalProperties": false,
                "description": "Origin specifies from where the requested Freight must have originated.\nThis is a required field.",
                "properties": {
                  "kind": {
                    "description": "Kind is the kind of resource from which Freight may have originated. At\npresent, this can only be \"Warehouse\".",
                    "enum": [
                      "Warehouse"
                    ],
                    "type": "string"
                  },
                  "name": {
                    "description": "Name is the name of the resource of the kind indicated by the Kind field\nfrom which Freight may originate.",
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "name"
                ],
                "type": "object"
              },
              "sources": {
                "additionalProperties": false,
                "description": "Sources describes where the requested Freight may be obtained from. This is\na required field.",
                "properties": {
                  "availabilityStrategy": {
                    "description": "AvailabilityStrategy specifies the semantics for how requested Freight is\nmade available to the Stage. This field is optional. When left unspecified,\nthe field is implicitly treated as if its value were \"OneOf\".",
                    "enum": [
                      "All",
                      "OneOf",
                      ""
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "direct": {
                    "description": "Direct indicates the requested Freight may be obtained directly from the\nWarehouse from which it originated. If this field's value is false, then\nthe value of the Stages field must be non-empty. i.e. Between the two\nfields, at least one source must be specified.",
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "requiredSoakTime": {
                    "description": "RequiredSoakTime specifies a minimum duration for which the requested\nFreight must have continuously occupied (\"soaked in\") in an upstream Stage\nbefore becoming available for promotion to this Stage. This is an optional\nfield. If nil or zero, no soak time is required. Any soak time requirement\nis in ADDITION to the requirement that Freight be verified in an upstream\nStage to become available for promotion to this Stage, although a manual\napproval for promotion to this Stage will supersede any soak time\nrequirement.",
                    "pattern": "^([0-9]+(\\.[0-9]+)?(s|m|h))+$",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "stages": {
                    "description": "Stages identifies other \"upstream\" Stages as potential sources of the\nrequested Freight. If this field's value is empty, then the value of the\nDirect field must be true. i.e. Between the two fields, at least on source\nmust be specified.",
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  }
                },
                "type": "object"
              }
            },
            "required": [
              "origin",
              "sources"
            ],
            "type": "object"
          },
          "minItems": 1,
          "type": "array"
        },
        "shard": {
          "description": "Shard is the name of the shard that this Stage belongs to. This is an\noptional field. If not specified, the Stage will belong to the default\nshard. A defaulting webhook will sync the value of the\nkargo.akuity.io/shard label with the value of this field. When this field\nis empty, the webhook will ensure that label is absent.",
          "type": [
            "string",
            "null"
          ]
        },
        "vars": {
          "description": "Vars is a list of variables that can be referenced anywhere in the\nStageSpec that supports expressions. For example, the PromotionTemplate\nand arguments of the Verification.",
          "items": {
            "additionalProperties": false,
            "description": "ExpressionVariable describes a single variable that may be referenced by\nexpressions in the context of a ClusterPromotionTask, PromotionTask,\nPromotion, AnalysisRun arguments, or other objects that support expressions.\n\nIt is used to pass information to the expression evaluation engine, and to\nallow for dynamic evaluation of expressions based on the variable values.",
            "properties": {
              "name": {
                "description": "Name is the name of the variable.",
                "minLength": 1,
                "pattern": "^[a-zA-Z_]\\w*$",
                "type": "string"
              },
              "value": {
                "description": "Value is the value of the variable. It is allowed to utilize expressions\nin the value.\nSee https://docs.kargo.io/user-guide/reference-docs/expressions for details.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "verification": {
          "additionalProperties": false,
          "description": "Verification describes how to verify a Stage's current Freight is fit for\npromotion downstream.",
          "properties": {
            "analysisRunMetadata": {
              "additionalProperties": false,
              "description": "AnalysisRunMetadata contains optional metadata that should be applied to\nall AnalysisRuns.",
              "properties": {
                "annotations": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "Additional annotations to apply to an AnalysisRun.",
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "labels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "Additional labels to apply to an AnalysisRun.",
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "analysisTemplates": {
              "description": "AnalysisTemplates is a list of AnalysisTemplates from which AnalysisRuns\nshould be created to verify a Stage's current Freight is fit to be promoted\ndownstream.",
              "items": {
                "additionalProperties": false,
                "description": "AnalysisTemplateReference is a reference to an AnalysisTemplate.",
                "properties": {
                  "kind": {
                    "description": "Kind is the type of the AnalysisTemplate. Can be either AnalysisTemplate or\nClusterAnalysisTemplate, default is AnalysisTemplate.",
                    "enum": [
                      "AnalysisTemplate",
                      "ClusterAnalysisTemplate"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "name": {
                    "description": "Name is the name of the AnalysisTemplate in the same project/namespace as\nthe Stage.",
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "args": {
              "description": "Args lists arguments that should be added to all AnalysisRuns.",
              "items": {
                "additionalProperties": false,
                "description": "AnalysisRunArgument represents an argument to be added to an AnalysisRun.",
                "properties": {
                  "name": {
                    "description": "Name is the name of the argument.",
                    "type": "string"
                  },
                  "value": {
                    "description": "Value is the value of the argument.",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "requestedFreight"
      ],
      "type": "object"
    },
    "status": {
      "additionalProperties": false,
      "description": "Status describes the Stage's current and recent Freight, health, and more.",
      "properties": {
        "conditions": {
          "description": "Conditions contains the last observations of the Stage's current\nstate.",
          "items": {
            "additionalProperties": false,
            "description": "Condition contains details for one aspect of the current state of this API Resource.",
            "properties": {
              "lastTransitionTime": {
                "description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
                "maxLength": 32768,
                "type": "string"
              },
              "observedGeneration": {
                "description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                "format": "int64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "reason": {
                "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                "type": "string"
              },
              "status": {
                "description": "status of the condition, one of True, False, Unknown.",
                "enum": [
                  "True",
                  "False",
                  "Unknown"
                ],
                "type": "string"
              },
              "type": {
                "description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
                "maxLength": 316,
                "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "message",
              "reason",
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ],
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        },
        "currentPromotion": {
          "additionalProperties": false,
          "description": "CurrentPromotion is a reference to the currently Running promotion.",
          "properties": {
            "finishedAt": {
              "description": "FinishedAt is the time at which the Promotion was completed.",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "freight": {
              "additionalProperties": false,
              "description": "Freight is the freight being promoted.",
              "properties": {
                "charts": {
                  "description": "Charts describes specific versions of specific Helm charts.",
                  "items": {
                    "additionalProperties": false,
                    "description": "Chart describes a specific version of a Helm chart.",
                    "properties": {
                      "name": {
                        "description": "Name specifies the name of the chart.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "repoURL": {
                        "description": "RepoURL specifies the URL of a Helm chart repository. Classic chart\nrepositories (using HTTP/S) can contain differently named charts. When this\nfield points to such a repository, the Name field will specify the name of\nthe chart within the repository. In the case of a repository within an OCI\nregistry, the URL implicitly points to a specific chart and the Name field\nwill be empty.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "version": {
                        "description": "Version specifies a particular version of the chart.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "commits": {
                  "description": "Commits describes specific Git repository commits.",
                  "items": {
                    "additionalProperties": false,
                    "description": "GitCommit describes a specific commit from a specific Git repository.",
                    "properties": {
                      "author": {
                        "description": "Author is the author of the commit.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "branch": {
                        "description": "Branch denotes the branch of the repository where this commit was found.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "committer": {
                        "description": "Committer is the person who committed the commit.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "id": {
                        "description": "ID is the ID of a specific commit in the Git repository specified by\nRepoURL.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "message": {
                        "description": "Message is the message associated with the commit. At present, this only\ncontains the first line (subject) of the commit message.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "repoURL": {
                        "description": "RepoURL is the URL of a Git repository.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "tag": {
                        "description": "Tag denotes a tag in the repository that matched selection criteria and\nresolved to this commit.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "images": {
                  "description": "Images describes specific versions of specific container images.",
                  "items": {
                    "additionalProperties": false,
                    "description": "Image describes a specific version of a container image.",
                    "properties": {
                      "annotations": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "description": "Annotations is a map of arbitrary metadata for the image.",
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "digest": {
                        "description": "Digest identifies a specific version of the image in the repository\nspecified by RepoURL. This is a more precise identifier than Tag.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "gitRepoURL": {
                        "description": "GitRepoURL specifies the URL of a Git repository that contains the source\ncode for the image repository referenced by the RepoURL field if Kargo was\nable to infer it.\n\nDeprecated: Use OCI annotations instead. Will be removed in v1.7.0.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "repoURL": {
                        "description": "RepoURL describes the repository in which the image can be found.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "tag": {
                        "description": "Tag identifies a specific version of the image in the repository specified\nby RepoURL.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "name": {
                  "description": "Name is a system-assigned identifier derived deterministically from\nthe contents of the Freight. I.e., two pieces of Freight can be compared\nfor equality by comparing their Names.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "origin": {
                  "additionalProperties": false,
                  "description": "Origin describes a kind of Freight in terms of its origin.",
                  "properties": {
                    "kind": {
                      "description": "Kind is the kind of resource from which Freight may have originated. At\npresent, this can only be \"Warehouse\".",
                      "enum": [
                        "Warehouse"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the name of the resource of the kind indicated by the Kind field\nfrom which Freight may originate.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "name"
                  ],
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "name": {
              "description": "Name is the name of the Promotion.",
              "type": "string"
            },
            "status": {
              "additionalProperties": false,
              "description": "Status is the (optional) status of the Promotion.",
              "properties": {
                "currentStep": {
                  "description": "CurrentStep is the index of the current promotion step being executed. This\npermits steps that have already run successfully to be skipped on\nsubsequent reconciliations attempts.",
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "finishedAt": {
                  "description": "FinishedAt is the time when the promotion was completed.",
                  "format": "date-time",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "freight": {
                  "additionalProperties": false,
                  "description": "Freight is the detail of the piece of freight that was referenced by this promotion.",
                  "properties": {
                    "charts": {
                      "description": "Charts describes specific versions of specific Helm charts.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Chart describes a specific version of a Helm chart.",
                        "properties": {
                          "name": {
                            "description": "Name specifies the name of the chart.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL specifies the URL of a Helm chart repository. Classic chart\nrepositories (using HTTP/S) can contain differently named charts. When this\nfield points to such a repository, the Name field will specify the name of\nthe chart within the repository. In the case of a repository within an OCI\nregistry, the URL implicitly points to a specific chart and the Name field\nwill be empty.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "version": {
                            "description": "Version specifies a particular version of the chart.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "commits": {
                      "description": "Commits describes specific Git repository commits.",
                      "items": {
                        "additionalProperties": false,
                        "description": "GitCommit describes a specific commit from a specific Git repository.",
                        "properties": {
                          "author": {
                            "description": "Author is the author of the commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "branch": {
                            "description": "Branch denotes the branch of the repository where this commit was found.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "committer": {
                            "description": "Committer is the person who committed the commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "description": "ID is the ID of a specific commit in the Git repository specified by\nRepoURL.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "message": {
                            "description": "Message is the message associated with the commit. At present, this only\ncontains the first line (subject) of the commit message.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL is the URL of a Git repository.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tag": {
                            "description": "Tag denotes a tag in the repository that matched selection criteria and\nresolved to this commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "images": {
                      "description": "Images describes specific versions of specific container images.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Image describes a specific version of a container image.",
                        "properties": {
                          "annotations": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Annotations is a map of arbitrary metadata for the image.",
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "digest": {
                            "description": "Digest identifies a specific version of the image in the repository\nspecified by RepoURL. This is a more precise identifier than Tag.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "gitRepoURL": {
                            "description": "GitRepoURL specifies the URL of a Git repository that contains the source\ncode for the image repository referenced by the RepoURL field if Kargo was\nable to infer it.\n\nDeprecated: Use OCI annotations instead. Will be removed in v1.7.0.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL describes the repository in which the image can be found.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tag": {
                            "description": "Tag identifies a specific version of the image in the repository specified\nby RepoURL.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "name": {
                      "description": "Name is a system-assigned identifier derived deterministically from\nthe contents of the Freight. I.e., two pieces of Freight can be compared\nfor equality by comparing their Names.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "origin": {
                      "additionalProperties": false,
                      "description": "Origin describes a kind of Freight in terms of its origin.",
                      "properties": {
                        "kind": {
                          "description": "Kind is the kind of resource from which Freight may have originated. At\npresent, this can only be \"Warehouse\".",
                          "enum": [
                            "Warehouse"
                          ],
                          "type": "string"
                        },
                        "name": {
                          "description": "Name is the name of the resource of the kind indicated by the Kind field\nfrom which Freight may originate.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "freightCollection": {
                  "additionalProperties": false,
                  "description": "FreightCollection contains the details of the piece of Freight referenced\nby this Promotion as well as any additional Freight that is carried over\nfrom the target Stage's current state.",
                  "properties": {
                    "id": {
                      "description": "ID is a unique and deterministically calculated identifier for the\nFreightCollection. It is updated on each use of the UpdateOrPush method.",
                      "type": "string"
                    },
                    "items": {
                      "additionalProperties": {
                        "additionalProperties": false,
                        "description": "FreightReference is a simplified representation of a piece of Freight -- not\na root resource type.",
                        "properties": {
                          "charts": {
                            "description": "Charts describes specific versions of specific Helm charts.",
                            "items": {
                              "additionalProperties": false,
                              "description": "Chart describes a specific version of a Helm chart.",
                              "properties": {
                                "name": {
                                  "description": "Name specifies the name of the chart.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "repoURL": {
                                  "description": "RepoURL specifies the URL of a Helm chart repository. Classic chart\nrepositories (using HTTP/S) can contain differently named charts. When this\nfield points to such a repository, the Name field will specify the name of\nthe chart within the repository. In the case of a repository within an OCI\nregistry, the URL implicitly points to a specific chart and the Name field\nwill be empty.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Version specifies a particular version of the chart.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "commits": {
                            "description": "Commits describes specific Git repository commits.",
                            "items": {
                              "additionalProperties": false,
                              "description": "GitCommit describes a specific commit from a specific Git repository.",
                              "properties": {
                                "author": {
                                  "description": "Author is the author of the commit.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "branch": {
                                  "description": "Branch denotes the branch of the repository where this commit was found.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "committer": {
                                  "description": "Committer is the person who committed the commit.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "id": {
                                  "description": "ID is the ID of a specific commit in the Git repository specified by\nRepoURL.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "message": {
                                  "description": "Message is the message associated with the commit. At present, this only\ncontains the first line (subject) of the commit message.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "repoURL": {
                                  "description": "RepoURL is the URL of a Git repository.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tag": {
                                  "description": "Tag denotes a tag in the repository that matched selection criteria and\nresolved to this commit.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "images": {
                            "description": "Images describes specific versions of specific container images.",
                            "items": {
                              "additionalProperties": false,
                              "description": "Image describes a specific version of a container image.",
                              "properties": {
                                "annotations": {
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Annotations is a map of arbitrary metadata for the image.",
                                  "type": [
                                    "object",
                                    "null"
                                  ]
                                },
                                "digest": {
                                  "description": "Digest identifies a specific version of the image in the repository\nspecified by RepoURL. This is a more precise identifier than Tag.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "gitRepoURL": {
                                  "description": "GitRepoURL specifies the URL of a Git repository that contains the source\ncode for the image repository referenced by the RepoURL field if Kargo was\nable to infer it.\n\nDeprecated: Use OCI annotations instead. Will be removed in v1.7.0.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "repoURL": {
                                  "description": "RepoURL describes the repository in which the image can be found.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tag": {
                                  "description": "Tag identifies a specific version of the image in the repository specified\nby RepoURL.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "name": {
                            "description": "Name is a system-assigned identifier derived deterministically from\nthe contents of the Freight. I.e., two pieces of Freight can be compared\nfor equality by comparing their Names.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "origin": {
                            "additionalProperties": false,
                            "description": "Origin describes a kind of Freight in terms of its origin.",
                            "properties": {
                              "kind": {
                                "description": "Kind is the kind of resource from which Freight may have originated. At\npresent, this can only be \"Warehouse\".",
                                "enum": [
                                  "Warehouse"
                                ],
                                "type": "string"
                              },
                              "name": {
                                "description": "Name is the name of the resource of the kind indicated by the Kind field\nfrom which Freight may originate.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "kind",
                              "name"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "description": "Freight is a map of FreightReference objects, indexed by their Warehouse\norigin.",
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "verificationHistory": {
                      "description": "VerificationHistory is a stack of recent VerificationInfo. By default,\nthe last ten VerificationInfo are stored.",
                      "items": {
                        "additionalProperties": false,
                        "description": "VerificationInfo contains the details of an instance of a Verification\nprocess.",
                        "properties": {
                          "actor": {
                            "description": "Actor is the name of the entity that initiated or aborted the\nVerification process.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "analysisRun": {
                            "additionalProperties": false,
                            "description": "AnalysisRun is a reference to the Argo Rollouts AnalysisRun that implements\nthe Verification process.",
                            "properties": {
                              "name": {
                                "description": "Name is the name of the AnalysisRun.",
                                "type": "string"
                              },
                              "namespace": {
                                "description": "Namespace is the namespace of the AnalysisRun.",
                                "type": "string"
                              },
                              "phase": {
                                "description": "Phase is the last observed phase of the AnalysisRun referenced by Name.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "namespace",
                              "phase"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "finishTime": {
                            "description": "FinishTime is the time at which the Verification process finished.",
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "description": "ID is the identifier of the Verification process.",
                            "type": "string"
                          },
                          "message": {
                            "description": "Message may contain additional information about why the verification\nprocess is in its current phase.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "phase": {
                            "description": "Phase describes the current phase of the Verification process. Generally,\nthis will be a reflection of the underlying AnalysisRun's phase, however,\nthere are exceptions to this, such as in the case where an AnalysisRun\ncannot be launched successfully.",
                            "type": "string"
                          },
                          "startTime": {
                            "description": "StartTime is the time at which the Verification process was started.",
                            "format": "date-time",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "phase",
                          "startTime"
                        ],
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "healthChecks": {
                  "description": "HealthChecks contains the health check directives to be executed after\nthe Promotion has completed.",
                  "items": {
                    "additionalProperties": false,
                    "description": "HealthCheckStep describes a health check directive which can be executed by\na Stage to verify the health of a Promotion result.",
                    "properties": {
                      "config": {
                        "description": "Config is the configuration for the directive.",
                        "x-kubernetes-preserve-unknown-fields": true
                      },
                      "uses": {
                        "description": "Uses identifies a runner that can execute this step.",
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "uses"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "lastHandledRefresh": {
                  "description": "LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh\nannotation that was handled by the controller. This field can be used to\ndetermine whether the request to refresh the resource has been handled.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "message": {
                  "description": "Message is a display message about the promotion, including any errors\npreventing the Promotion controller from executing this Promotion.\ni.e. If the Phase field has a value of Failed, this field can be expected\nto explain why.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "phase": {
                  "description": "Phase describes where the Promotion currently is in its lifecycle.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "state": {
                  "description": "State stores the state of the promotion process between reconciliation\nattempts.",
                  "x-kubernetes-preserve-unknown-fields": true
                },
                "stepExecutionMetadata": {
                  "description": "StepExecutionMetadata tracks metadata pertaining to the execution\nof individual promotion steps.",
                  "items": {
                    "additionalProperties": false,
                    "description": "StepExecutionMetadata tracks metadata pertaining to the execution of\na promotion step.",
                    "properties": {
                      "alias": {
                        "description": "Alias is the alias of the step.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "continueOnError": {
                        "description": "ContinueOnError is a boolean value that, if set to true, will cause the\nPromotion to continue executing the next step even if this step fails. It\nalso will not permit this failure to impact the overall status of the\nPromotion.",
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "errorCount": {
                        "description": "ErrorCount tracks consecutive failed attempts to execute the step.",
                        "format": "int32",
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "finishedAt": {
                        "description": "FinishedAt is the time at which the final attempt to execute the step\ncompleted.",
                        "format": "date-time",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "message": {
                        "description": "Message is a display message about the step, including any errors.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "startedAt": {
                        "description": "StartedAt is the time at which the first attempt to execute the step\nbegan.",
                        "format": "date-time",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "status": {
                        "description": "Status is the high-level outcome of the step.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            }
          },
          "required": [
            "name"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "freightHistory": {
          "description": "FreightHistory is a list of recent Freight selections that were deployed\nto the Stage. By default, the last ten Freight selections are stored.\nThe first item in the list is the most recent Freight selection and\ncurrently deployed to the Stage, subsequent items are older selections.",
          "items": {
            "additionalProperties": false,
            "description": "FreightCollection is a collection of FreightReferences, each of which\nrepresents a piece of Freight that has been selected for deployment to a\nStage.",
            "properties": {
              "id": {
                "description": "ID is a unique and deterministically calculated identifier for the\nFreightCollection. It is updated on each use of the UpdateOrPush method.",
                "type": "string"
              },
              "items": {
                "additionalProperties": {
                  "additionalProperties": false,
                  "description": "FreightReference is a simplified representation of a piece of Freight -- not\na root resource type.",
                  "properties": {
                    "charts": {
                      "description": "Charts describes specific versions of specific Helm charts.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Chart describes a specific version of a Helm chart.",
                        "properties": {
                          "name": {
                            "description": "Name specifies the name of the chart.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL specifies the URL of a Helm chart repository. Classic chart\nrepositories (using HTTP/S) can contain differently named charts. When this\nfield points to such a repository, the Name field will specify the name of\nthe chart within the repository. In the case of a repository within an OCI\nregistry, the URL implicitly points to a specific chart and the Name field\nwill be empty.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "version": {
                            "description": "Version specifies a particular version of the chart.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "commits": {
                      "description": "Commits describes specific Git repository commits.",
                      "items": {
                        "additionalProperties": false,
                        "description": "GitCommit describes a specific commit from a specific Git repository.",
                        "properties": {
                          "author": {
                            "description": "Author is the author of the commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "branch": {
                            "description": "Branch denotes the branch of the repository where this commit was found.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "committer": {
                            "description": "Committer is the person who committed the commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "description": "ID is the ID of a specific commit in the Git repository specified by\nRepoURL.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "message": {
                            "description": "Message is the message associated with the commit. At present, this only\ncontains the first line (subject) of the commit message.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL is the URL of a Git repository.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tag": {
                            "description": "Tag denotes a tag in the repository that matched selection criteria and\nresolved to this commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "images": {
                      "description": "Images describes specific versions of specific container images.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Image describes a specific version of a container image.",
                        "properties": {
                          "annotations": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Annotations is a map of arbitrary metadata for the image.",
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "digest": {
                            "description": "Digest identifies a specific version of the image in the repository\nspecified by RepoURL. This is a more precise identifier than Tag.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "gitRepoURL": {
                            "description": "GitRepoURL specifies the URL of a Git repository that contains the source\ncode for the image repository referenced by the RepoURL field if Kargo was\nable to infer it.\n\nDeprecated: Use OCI annotations instead. Will be removed in v1.7.0.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL describes the repository in which the image can be found.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tag": {
                            "description": "Tag identifies a specific version of the image in the repository specified\nby RepoURL.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "name": {
                      "description": "Name is a system-assigned identifier derived deterministically from\nthe contents of the Freight. I.e., two pieces of Freight can be compared\nfor equality by comparing their Names.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "origin": {
                      "additionalProperties": false,
                      "description": "Origin describes a kind of Freight in terms of its origin.",
                      "properties": {
                        "kind": {
                          "description": "Kind is the kind of resource from which Freight may have originated. At\npresent, this can only be \"Warehouse\".",
                          "enum": [
                            "Warehouse"
                          ],
                          "type": "string"
                        },
                        "name": {
                          "description": "Name is the name of the resource of the kind indicated by the Kind field\nfrom which Freight may originate.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "type": "object"
                },
                "description": "Freight is a map of FreightReference objects, indexed by their Warehouse\norigin.",
                "type": [
                  "object",
                  "null"
                ]
              },
              "verificationHistory": {
                "description": "VerificationHistory is a stack of recent VerificationInfo. By default,\nthe last ten VerificationInfo are stored.",
                "items": {
                  "additionalProperties": false,
                  "description": "VerificationInfo contains the details of an instance of a Verification\nprocess.",
                  "properties": {
                    "actor": {
                      "description": "Actor is the name of the entity that initiated or aborted the\nVerification process.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "analysisRun": {
                      "additionalProperties": false,
                      "description": "AnalysisRun is a reference to the Argo Rollouts AnalysisRun that implements\nthe Verification process.",
                      "properties": {
                        "name": {
                          "description": "Name is the name of the AnalysisRun.",
                          "type": "string"
                        },
                        "namespace": {
                          "description": "Namespace is the namespace of the AnalysisRun.",
                          "type": "string"
                        },
                        "phase": {
                          "description": "Phase is the last observed phase of the AnalysisRun referenced by Name.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "namespace",
                        "phase"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "finishTime": {
                      "description": "FinishTime is the time at which the Verification process finished.",
                      "format": "date-time",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "id": {
                      "description": "ID is the identifier of the Verification process.",
                      "type": "string"
                    },
                    "message": {
                      "description": "Message may contain additional information about why the verification\nprocess is in its current phase.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "phase": {
                      "description": "Phase describes the current phase of the Verification process. Generally,\nthis will be a reflection of the underlying AnalysisRun's phase, however,\nthere are exceptions to this, such as in the case where an AnalysisRun\ncannot be launched successfully.",
                      "type": "string"
                    },
                    "startTime": {
                      "description": "StartTime is the time at which the Verification process was started.",
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "phase",
                    "startTime"
                  ],
                  "type": "object"
                },
                "type": [
                  "array",
                  "null"
                ]
              }
            },
            "required": [
              "id"
            ],
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "freightSummary": {
          "description": "FreightSummary is human-readable text maintained by the controller that\nsummarizes what Freight is currently deployed to the Stage. For Stages that\nrequest a single piece of Freight AND the request has been fulfilled, this\nfield will simply contain the name of the Freight. For Stages that request\na single piece of Freight AND the request has NOT been fulfilled, or for\nStages that request multiple pieces of Freight, this field will contain a\nsummary of fulfilled/requested Freight. The existence of this field is a\nworkaround for kubectl limitations so that this complex but valuable\ninformation can be displayed in a column in response to `kubectl get\nstages`.",
          "type": [
            "string",
            "null"
          ]
        },
        "health": {
          "additionalProperties": false,
          "description": "Health is the Stage's last observed health.",
          "properties": {
            "config": {
              "description": "Config is the opaque configuration of all health checks performed on this\nStage.",
              "x-kubernetes-preserve-unknown-fields": true
            },
            "issues": {
              "description": "Issues clarifies why a Stage in any state other than Healthy is in that\nstate. This field will always be the empty when a Stage is Healthy.",
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "output": {
              "description": "Output is the opaque output of all health checks performed on this Stage.",
              "x-kubernetes-preserve-unknown-fields": true
            },
            "status": {
              "description": "Status describes the health of the Stage.",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "lastHandledRefresh": {
          "description": "LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh\nannotation that was handled by the controller. This field can be used to\ndetermine whether the request to refresh the resource has been handled.",
          "type": [
            "string",
            "null"
          ]
        },
        "lastPromotion": {
          "additionalProperties": false,
          "description": "LastPromotion is a reference to the last completed promotion.",
          "properties": {
            "finishedAt": {
              "description": "FinishedAt is the time at which the Promotion was completed.",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "freight": {
              "additionalProperties": false,
              "description": "Freight is the freight being promoted.",
              "properties": {
                "charts": {
                  "description": "Charts describes specific versions of specific Helm charts.",
                  "items": {
                    "additionalProperties": false,
                    "description": "Chart describes a specific version of a Helm chart.",
                    "properties": {
                      "name": {
                        "description": "Name specifies the name of the chart.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "repoURL": {
                        "description": "RepoURL specifies the URL of a Helm chart repository. Classic chart\nrepositories (using HTTP/S) can contain differently named charts. When this\nfield points to such a repository, the Name field will specify the name of\nthe chart within the repository. In the case of a repository within an OCI\nregistry, the URL implicitly points to a specific chart and the Name field\nwill be empty.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "version": {
                        "description": "Version specifies a particular version of the chart.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "commits": {
                  "description": "Commits describes specific Git repository commits.",
                  "items": {
                    "additionalProperties": false,
                    "description": "GitCommit describes a specific commit from a specific Git repository.",
                    "properties": {
                      "author": {
                        "description": "Author is the author of the commit.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "branch": {
                        "description": "Branch denotes the branch of the repository where this commit was found.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "committer": {
                        "description": "Committer is the person who committed the commit.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "id": {
                        "description": "ID is the ID of a specific commit in the Git repository specified by\nRepoURL.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "message": {
                        "description": "Message is the message associated with the commit. At present, this only\ncontains the first line (subject) of the commit message.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "repoURL": {
                        "description": "RepoURL is the URL of a Git repository.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "tag": {
                        "description": "Tag denotes a tag in the repository that matched selection criteria and\nresolved to this commit.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "images": {
                  "description": "Images describes specific versions of specific container images.",
                  "items": {
                    "additionalProperties": false,
                    "description": "Image describes a specific version of a container image.",
                    "properties": {
                      "annotations": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "description": "Annotations is a map of arbitrary metadata for the image.",
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "digest": {
                        "description": "Digest identifies a specific version of the image in the repository\nspecified by RepoURL. This is a more precise identifier than Tag.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "gitRepoURL": {
                        "description": "GitRepoURL specifies the URL of a Git repository that contains the source\ncode for the image repository referenced by the RepoURL field if Kargo was\nable to infer it.\n\nDeprecated: Use OCI annotations instead. Will be removed in v1.7.0.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "repoURL": {
                        "description": "RepoURL describes the repository in which the image can be found.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "tag": {
                        "description": "Tag identifies a specific version of the image in the repository specified\nby RepoURL.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "name": {
                  "description": "Name is a system-assigned identifier derived deterministically from\nthe contents of the Freight. I.e., two pieces of Freight can be compared\nfor equality by comparing their Names.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "origin": {
                  "additionalProperties": false,
                  "description": "Origin describes a kind of Freight in terms of its origin.",
                  "properties": {
                    "kind": {
                      "description": "Kind is the kind of resource from which Freight may have originated. At\npresent, this can only be \"Warehouse\".",
                      "enum": [
                        "Warehouse"
                      ],
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the name of the resource of the kind indicated by the Kind field\nfrom which Freight may originate.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "name"
                  ],
                  "type": [
                    "object",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "name": {
              "description": "Name is the name of the Promotion.",
              "type": "string"
            },
            "status": {
              "additionalProperties": false,
              "description": "Status is the (optional) status of the Promotion.",
              "properties": {
                "currentStep": {
                  "description": "CurrentStep is the index of the current promotion step being executed. This\npermits steps that have already run successfully to be skipped on\nsubsequent reconciliations attempts.",
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "finishedAt": {
                  "description": "FinishedAt is the time when the promotion was completed.",
                  "format": "date-time",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "freight": {
                  "additionalProperties": false,
                  "description": "Freight is the detail of the piece of freight that was referenced by this promotion.",
                  "properties": {
                    "charts": {
                      "description": "Charts describes specific versions of specific Helm charts.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Chart describes a specific version of a Helm chart.",
                        "properties": {
                          "name": {
                            "description": "Name specifies the name of the chart.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL specifies the URL of a Helm chart repository. Classic chart\nrepositories (using HTTP/S) can contain differently named charts. When this\nfield points to such a repository, the Name field will specify the name of\nthe chart within the repository. In the case of a repository within an OCI\nregistry, the URL implicitly points to a specific chart and the Name field\nwill be empty.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "version": {
                            "description": "Version specifies a particular version of the chart.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "commits": {
                      "description": "Commits describes specific Git repository commits.",
                      "items": {
                        "additionalProperties": false,
                        "description": "GitCommit describes a specific commit from a specific Git repository.",
                        "properties": {
                          "author": {
                            "description": "Author is the author of the commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "branch": {
                            "description": "Branch denotes the branch of the repository where this commit was found.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "committer": {
                            "description": "Committer is the person who committed the commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "description": "ID is the ID of a specific commit in the Git repository specified by\nRepoURL.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "message": {
                            "description": "Message is the message associated with the commit. At present, this only\ncontains the first line (subject) of the commit message.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL is the URL of a Git repository.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tag": {
                            "description": "Tag denotes a tag in the repository that matched selection criteria and\nresolved to this commit.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "images": {
                      "description": "Images describes specific versions of specific container images.",
                      "items": {
                        "additionalProperties": false,
                        "description": "Image describes a specific version of a container image.",
                        "properties": {
                          "annotations": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "description": "Annotations is a map of arbitrary metadata for the image.",
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "digest": {
                            "description": "Digest identifies a specific version of the image in the repository\nspecified by RepoURL. This is a more precise identifier than Tag.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "gitRepoURL": {
                            "description": "GitRepoURL specifies the URL of a Git repository that contains the source\ncode for the image repository referenced by the RepoURL field if Kargo was\nable to infer it.\n\nDeprecated: Use OCI annotations instead. Will be removed in v1.7.0.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "repoURL": {
                            "description": "RepoURL describes the repository in which the image can be found.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "tag": {
                            "description": "Tag identifies a specific version of the image in the repository specified\nby RepoURL.",
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "name": {
                      "description": "Name is a system-assigned identifier derived deterministically from\nthe contents of the Freight. I.e., two pieces of Freight can be compared\nfor equality by comparing their Names.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "origin": {
                      "additionalProperties": false,
                      "description": "Origin describes a kind of Freight in terms of its origin.",
                      "properties": {
                        "kind": {
                          "description": "Kind is the kind of resource from which Freight may have originated. At\npresent, this can only be \"Warehouse\".",
                          "enum": [
                            "Warehouse"
                          ],
                          "type": "string"
                        },
                        "name": {
                          "description": "Name is the name of the resource of the kind indicated by the Kind field\nfrom which Freight may originate.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "name"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "freightCollection": {
                  "additionalProperties": false,
                  "description": "FreightCollection contains the details of the piece of Freight referenced\nby this Promotion as well as any additional Freight that is carried over\nfrom the target Stage's current state.",
                  "properties": {
                    "id": {
                      "description": "ID is a unique and deterministically calculated identifier for the\nFreightCollection. It is updated on each use of the UpdateOrPush method.",
                      "type": "string"
                    },
                    "items": {
                      "additionalProperties": {
                        "additionalProperties": false,
                        "description": "FreightReference is a simplified representation of a piece of Freight -- not\na root resource type.",
                        "properties": {
                          "charts": {
                            "description": "Charts describes specific versions of specific Helm charts.",
                            "items": {
                              "additionalProperties": false,
                              "description": "Chart describes a specific version of a Helm chart.",
                              "properties": {
                                "name": {
                                  "description": "Name specifies the name of the chart.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "repoURL": {
                                  "description": "RepoURL specifies the URL of a Helm chart repository. Classic chart\nrepositories (using HTTP/S) can contain differently named charts. When this\nfield points to such a repository, the Name field will specify the name of\nthe chart within the repository. In the case of a repository within an OCI\nregistry, the URL implicitly points to a specific chart and the Name field\nwill be empty.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "version": {
                                  "description": "Version specifies a particular version of the chart.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "commits": {
                            "description": "Commits describes specific Git repository commits.",
                            "items": {
                              "additionalProperties": false,
                              "description": "GitCommit describes a specific commit from a specific Git repository.",
                              "properties": {
                                "author": {
                                  "description": "Author is the author of the commit.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "branch": {
                                  "description": "Branch denotes the branch of the repository where this commit was found.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "committer": {
                                  "description": "Committer is the person who committed the commit.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "id": {
                                  "description": "ID is the ID of a specific commit in the Git repository specified by\nRepoURL.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "message": {
                                  "description": "Message is the message associated with the commit. At present, this only\ncontains the first line (subject) of the commit message.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "repoURL": {
                                  "description": "RepoURL is the URL of a Git repository.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tag": {
                                  "description": "Tag denotes a tag in the repository that matched selection criteria and\nresolved to this commit.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "images": {
                            "description": "Images describes specific versions of specific container images.",
                            "items": {
                              "additionalProperties": false,
                              "description": "Image describes a specific version of a container image.",
                              "properties": {
                                "annotations": {
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "description": "Annotations is a map of arbitrary metadata for the image.",
                                  "type": [
                                    "object",
                                    "null"
                                  ]
                                },
                                "digest": {
                                  "description": "Digest identifies a specific version of the image in the repository\nspecified by RepoURL. This is a more precise identifier than Tag.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "gitRepoURL": {
                                  "description": "GitRepoURL specifies the URL of a Git repository that contains the source\ncode for the image repository referenced by the RepoURL field if Kargo was\nable to infer it.\n\nDeprecated: Use OCI annotations instead. Will be removed in v1.7.0.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "repoURL": {
                                  "description": "RepoURL describes the repository in which the image can be found.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "tag": {
                                  "description": "Tag identifies a specific version of the image in the repository specified\nby RepoURL.",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "type": "object"
                            },
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "name": {
                            "description": "Name is a system-assigned identifier derived deterministically from\nthe contents of the Freight. I.e., two pieces of Freight can be compared\nfor equality by comparing their Names.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "origin": {
                            "additionalProperties": false,
                            "description": "Origin describes a kind of Freight in terms of its origin.",
                            "properties": {
                              "kind": {
                                "description": "Kind is the kind of resource from which Freight may have originated. At\npresent, this can only be \"Warehouse\".",
                                "enum": [
                                  "Warehouse"
                                ],
                                "type": "string"
                              },
                              "name": {
                                "description": "Name is the name of the resource of the kind indicated by the Kind field\nfrom which Freight may originate.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "kind",
                              "name"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          }
                        },
                        "type": "object"
                      },
                      "description": "Freight is a map of FreightReference objects, indexed by their Warehouse\norigin.",
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "verificationHistory": {
                      "description": "VerificationHistory is a stack of recent VerificationInfo. By default,\nthe last ten VerificationInfo are stored.",
                      "items": {
                        "additionalProperties": false,
                        "description": "VerificationInfo contains the details of an instance of a Verification\nprocess.",
                        "properties": {
                          "actor": {
                            "description": "Actor is the name of the entity that initiated or aborted the\nVerification process.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "analysisRun": {
                            "additionalProperties": false,
                            "description": "AnalysisRun is a reference to the Argo Rollouts AnalysisRun that implements\nthe Verification process.",
                            "properties": {
                              "name": {
                                "description": "Name is the name of the AnalysisRun.",
                                "type": "string"
                              },
                              "namespace": {
                                "description": "Namespace is the namespace of the AnalysisRun.",
                                "type": "string"
                              },
                              "phase": {
                                "description": "Phase is the last observed phase of the AnalysisRun referenced by Name.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "namespace",
                              "phase"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "finishTime": {
                            "description": "FinishTime is the time at which the Verification process finished.",
                            "format": "date-time",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "id": {
                            "description": "ID is the identifier of the Verification process.",
                            "type": "string"
                          },
                          "message": {
                            "description": "Message may contain additional information about why the verification\nprocess is in its current phase.",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "phase": {
                            "description": "Phase describes the current phase of the Verification process. Generally,\nthis will be a reflection of the underlying AnalysisRun's phase, however,\nthere are exceptions to this, such as in the case where an AnalysisRun\ncannot be launched successfully.",
                            "type": "string"
                          },
                          "startTime": {
                            "description": "StartTime is the time at which the Verification process was started.",
                            "format": "date-time",
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "phase",
                          "startTime"
                        ],
                        "type": "object"
                      },
                      "type": [
                        "array",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "healthChecks": {
                  "description": "HealthChecks contains the health check directives to be executed after\nthe Promotion has completed.",
                  "items": {
                    "additionalProperties": false,
                    "description": "HealthCheckStep describes a health check directive which can be executed by\na Stage to verify the health of a Promotion result.",
                    "properties": {
                      "config": {
                        "description": "Config is the configuration for the directive.",
                        "x-kubernetes-preserve-unknown-fields": true
                      },
                      "uses": {
                        "description": "Uses identifies a runner that can execute this step.",
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "uses"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                },
                "lastHandledRefresh": {
                  "description": "LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh\nannotation that was handled by the controller. This field can be used to\ndetermine whether the request to refresh the resource has been handled.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "message": {
                  "description": "Message is a display message about the promotion, including any errors\npreventing the Promotion controller from executing this Promotion.\ni.e. If the Phase field has a value of Failed, this field can be expected\nto explain why.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "phase": {
                  "description": "Phase describes where the Promotion currently is in its lifecycle.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "state": {
                  "description": "State stores the state of the promotion process between reconciliation\nattempts.",
                  "x-kubernetes-preserve-unknown-fields": true
                },
                "stepExecutionMetadata": {
                  "description": "StepExecutionMetadata tracks metadata pertaining to the execution\nof individual promotion steps.",
                  "items": {
                    "additionalProperties": false,
                    "description": "StepExecutionMetadata tracks metadata pertaining to the execution of\na promotion step.",
                    "properties": {
                      "alias": {
                        "description": "Alias is the alias of the step.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "continueOnError": {
                        "description": "ContinueOnError is a boolean value that, if set to true, will cause the\nPromotion to continue executing the next step even if this step fails. It\nalso will not permit this failure to impact the overall status of the\nPromotion.",
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "errorCount": {
                        "description": "ErrorCount tracks consecutive failed attempts to execute the step.",
                        "format": "int32",
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "finishedAt": {
                        "description": "FinishedAt is the time at which the final attempt to execute the step\ncompleted.",
                        "format": "date-time",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "message": {
                        "description": "Message is a display message about the step, including any errors.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "startedAt": {
                        "description": "StartedAt is the time at which the first attempt to execute the step\nbegan.",
                        "format": "date-time",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "status": {
                        "description": "Status is the high-level outcome of the step.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  },
                  "type": [
                    "array",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            }
          },
          "required": [
            "name"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "observedGeneration": {
          "description": "ObservedGeneration represents the .metadata.generation that this Stage\nstatus was reconciled against.",
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}