diff --git a/src/api/v1beta1/component.go b/src/api/v1beta1/component.go index 2d27777c54..eb3c899f19 100644 --- a/src/api/v1beta1/component.go +++ b/src/api/v1beta1/component.go @@ -49,6 +49,17 @@ type ZarfComponent struct { // Custom commands to run at various stages of a package lifecycle. Actions ZarfComponentActions `json:"actions,omitempty"` + + // List of resources to health check after deployment + HealthChecks []NamespacedObjectKindReference `json:"healthChecks,omitempty" jsonschema:"description=List of resources to health check after deployment"` +} + +// NamespacedObjectKindReference is a reference to a specific resource in a namespace using its kind and API version. +type NamespacedObjectKindReference struct { + APIVersion string `json:"apiVersion" jsonschema:"description=API Version of the resource"` + Kind string `json:"kind" jsonschema:"description=Kind of the resource"` + Namespace string `json:"namespace" jsonschema:"description=Namespace of the resource"` + Name string `json:"name" jsonschema:"description=Name of the resource"` } // RequiresCluster returns if the component requires a cluster connection to deploy.