Skip to content
Merged
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
4 changes: 4 additions & 0 deletions pkg/cli/alpha/internal/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,10 @@ func createWebhook(resource resource.Resource) error {
// Gets flags for webhook creation.
func getWebhookResourceFlags(resource resource.Resource) []string {
var args []string
if resource.IsExternal() {
args = append(args, "--external-api-path", resource.Path)
args = append(args, "--external-api-domain", resource.Domain)
}
if resource.HasValidationWebhook() {
args = append(args, "--programmatic-validation")
}
Expand Down
Loading