Skip to content

Commit

Permalink
add health checks to v1beta1
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Aug 27, 2024
1 parent 0e5dfd4 commit 7fcf821
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/api/v1beta1/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7fcf821

Please sign in to comment.