Skip to content

Commit e9d83a7

Browse files
amoralejopenshift-merge-bot[bot]
authored andcommitted
Add Default function on WatcherSpecCore
Add empty Default function on WatcherSpecCore to be called from OpenStackControlPlane defaulting webhook. Currently, there is no values that need to be defaulted while creating Watcher but let's add it for consistency and as a placeholder for future need.
1 parent 66f9203 commit e9d83a7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

api/v1beta1/watcher_webhook.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ func (spec *WatcherSpec) Default() {
6262
spec.WatcherImages.Default(watcherDefaults)
6363
}
6464

65+
// Default - set defaults for this WatcherSpecCore spec.
66+
func (spec *WatcherSpecCore) Default() {
67+
// no validations . Placeholder for defaulting webhook integrated in the OpenStackControlPlane
68+
}
69+
6570
//+kubebuilder:webhook:path=/validate-watcher-openstack-org-v1beta1-watcher,mutating=false,failurePolicy=fail,sideEffects=None,groups=watcher.openstack.org,resources=watchers,verbs=create;update,versions=v1beta1,name=vwatcher.kb.io,admissionReviewVersions=v1
6671

6772
var _ webhook.Validator = &Watcher{}

0 commit comments

Comments
 (0)