Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: testing #9179

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pkg/skaffold/schema/latest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1666,12 +1666,19 @@ type RenderHookItem struct {
HostHook *HostHook `yaml:"host,omitempty" yamltags:"oneOf=render_hook"`
}

type PostRenderHookItem struct {
// HostHook describes a single lifecycle hook to run on the host machine.
HostHook *HostHook `yaml:"host,omitempty" yamltags:"oneOf=render_hook"`
// WithChange preserves changes made on the manifests by the HostHook.
WithChange bool `yaml:"withChange,omitempty"`
}

// RenderHooks describes the list of lifecycle hooks to execute before and after each render step.
type RenderHooks struct {
// PreHooks describes the list of lifecycle hooks to execute *before* each render step. Container hooks will only run if the container exists from a previous deployment step (for instance the successive iterations of a dev-loop during `skaffold dev`).
PreHooks []RenderHookItem `yaml:"before,omitempty"`
// PostHooks describes the list of lifecycle hooks to execute *after* each render step.
PostHooks []RenderHookItem `yaml:"after,omitempty"`
PostHooks []PostRenderHookItem `yaml:"after,omitempty"`
}

// CloudRunDeployHooks describes the list of lifecycle hooks to execute in the host before and after the Cloud Run deployer.
Expand Down
Loading