File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,15 @@ type Config struct {
70
70
// Versions specifies the API versions that this webhook receives requests for.
71
71
Versions []string
72
72
73
- // Name indicates the name of this webhook configuration.
73
+ // Name indicates the name of this webhook configuration. Should be a domain with at least three segments separated by dots
74
74
Name string
75
- // Path specifies that path that the API server should connect to this webhook on.
75
+
76
+ // Path specifies that path that the API server should connect to this webhook on. Must be
77
+ // prefixed with a '/validate-' or '/mutate-' depending on the type, and followed by
78
+ // $GROUP-$VERSION-$KIND where all values are lower-cased and the periods in the group
79
+ // are substituted for hyphens. For example, a validating webhook path for type
80
+ // batch.tutorial.kubebuilder.io/v1,Kind=CronJob would be
81
+ // /validate-batch-tutorial-kubebuilder-io-v1-cronjob
76
82
Path string
77
83
}
78
84
You can’t perform that action at this time.
0 commit comments