Skip to content

Commit

Permalink
enabled webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx committed Nov 29, 2023
1 parent de4447b commit 71d5900
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 1 addition & 5 deletions api/infrastructure/v1beta1/nutanixclustertemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,5 @@ func init() {

// NutanixClusterTemplateResource describes the data needed to create a NutanixCluster from a template.
type NutanixClusterTemplateResource struct {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"`
Spec NutanixClusterSpec `json:"spec"`
Spec NutanixClusterSpec `json:"spec"`
}
7 changes: 4 additions & 3 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ resources:

# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
# patches here are for enabling the conversion webhook for each CRD
#- patches/webhook_in_nutanixclusters.yaml
#- patches/webhook_in_nutanixmachines.yaml
#- patches/webhook_in_nutanixmachinetemplates.yaml
patches:
- path: patches/webhook_in_nutanixclusters.yaml
- path: patches/webhook_in_nutanixmachines.yaml
- path: patches/webhook_in_nutanixmachinetemplates.yaml
- path: patches/webhook_in_infrastructure_nutanixclustertemplates.yaml
#+kubebuilder:scaffold:crdkustomizewebhookpatch

Expand Down

0 comments on commit 71d5900

Please sign in to comment.