operator-sdk create webhook

operator-sdk create webhook

Scaffold a webhook for an API resource

Synopsis

Scaffold a webhook for an API resource. You can choose to scaffold defaulting, validating and/or conversion webhooks.

  1. operator-sdk create webhook [flags]

Examples

  1. # Create defaulting and validating webhooks for Group: ship, Version: v1beta1
  2. # and Kind: Frigate
  3. operator-sdk create webhook --group ship --version v1beta1 --kind Frigate --defaulting --programmatic-validation
  4. # Create conversion webhook for Group: ship, Version: v1beta1
  5. # and Kind: Frigate
  6. operator-sdk create webhook --group ship --version v1beta1 --kind Frigate --conversion

Options

  1. --conversion if set, scaffold the conversion webhook
  2. --defaulting if set, scaffold the defaulting webhook
  3. --force attempt to create resource even if it already exists
  4. --group string resource Group
  5. -h, --help help for webhook
  6. --kind string resource Kind
  7. --plural string resource irregular plural form
  8. --programmatic-validation if set, scaffold the validating webhook
  9. --version string resource Version

Options inherited from parent commands

  1. --plugins strings plugin keys to be used for this subcommand execution
  2. --verbose Enable verbose logging

SEE ALSO

Last modified October 12, 2021: update k8s 1.22 (#5228) (acbc148d)