github.com/TheSpiritXIII/controller-tools@v0.14.1/pkg/webhook/zz_generated.markerhelp.go (about)

     1  //go:build !ignore_autogenerated
     2  
     3  /*
     4  Copyright2019 The Kubernetes Authors.
     5  
     6  Licensed under the Apache License, Version 2.0 (the "License");
     7  you may not use this file except in compliance with the License.
     8  You may obtain a copy of the License at
     9  
    10      http://www.apache.org/licenses/LICENSE-2.0
    11  
    12  Unless required by applicable law or agreed to in writing, software
    13  distributed under the License is distributed on an "AS IS" BASIS,
    14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  See the License for the specific language governing permissions and
    16  limitations under the License.
    17  */
    18  
    19  // Code generated by helpgen. DO NOT EDIT.
    20  
    21  package webhook
    22  
    23  import (
    24  	"github.com/TheSpiritXIII/controller-tools/pkg/markers"
    25  )
    26  
    27  func (Config) Help() *markers.DefinitionHelp {
    28  	return &markers.DefinitionHelp{
    29  		Category: "Webhook",
    30  		DetailedHelp: markers.DetailedHelp{
    31  			Summary: "specifies how a webhook should be served.",
    32  			Details: "It specifies only the details that are intrinsic to the application serving\nit (e.g. the resources it can handle, or the path it serves on).",
    33  		},
    34  		FieldHelp: map[string]markers.DetailedHelp{
    35  			"Mutating": {
    36  				Summary: "marks this as a mutating webhook (it's validating only if false)",
    37  				Details: "Mutating webhooks are allowed to change the object in their response,\nand are called *before* all validating webhooks.  Mutating webhooks may\nchoose to reject an object, similarly to a validating webhook.",
    38  			},
    39  			"FailurePolicy": {
    40  				Summary: "specifies what should happen if the API server cannot reach the webhook.",
    41  				Details: "It may be either \"ignore\" (to skip the webhook and continue on) or \"fail\" (to reject\nthe object in question).",
    42  			},
    43  			"MatchPolicy": {
    44  				Summary: "defines how the \"rules\" list is used to match incoming requests.",
    45  				Details: "Allowed values are \"Exact\" (match only if it exactly matches the specified rule)\nor \"Equivalent\" (match a request if it modifies a resource listed in rules, even via another API group or version).",
    46  			},
    47  			"SideEffects": {
    48  				Summary: "specify whether calling the webhook will have side effects.",
    49  				Details: "This has an impact on dry runs and `kubectl diff`: if the sideEffect is \"Unknown\" (the default) or \"Some\", then\nthe API server will not call the webhook on a dry-run request and fails instead.\nIf the value is \"None\", then the webhook has no side effects and the API server will call it on dry-run.\nIf the value is \"NoneOnDryRun\", then the webhook is responsible for inspecting the \"dryRun\" property of the\nAdmissionReview sent in the request, and avoiding side effects if that value is \"true.\"",
    50  			},
    51  			"TimeoutSeconds": {
    52  				Summary: "allows configuring how long the API server should wait for a webhook to respond before treating the call as a failure.",
    53  				Details: "If the timeout expires before the webhook responds, the webhook call will be ignored or the API call will be rejected based on the failure policy.\nThe timeout value must be between 1 and 30 seconds.\nThe timeout for an admission webhook defaults to 10 seconds.",
    54  			},
    55  			"Groups": {
    56  				Summary: "specifies the API groups that this webhook receives requests for.",
    57  				Details: "",
    58  			},
    59  			"Resources": {
    60  				Summary: "specifies the API resources that this webhook receives requests for.",
    61  				Details: "",
    62  			},
    63  			"Verbs": {
    64  				Summary: "specifies the Kubernetes API verbs that this webhook receives requests for.",
    65  				Details: "Only modification-like verbs may be specified.\nMay be \"create\", \"update\", \"delete\", \"connect\", or \"*\" (for all).",
    66  			},
    67  			"Versions": {
    68  				Summary: "specifies the API versions that this webhook receives requests for.",
    69  				Details: "",
    70  			},
    71  			"Name": {
    72  				Summary: "indicates the name of this webhook configuration. Should be a domain with at least three segments separated by dots",
    73  				Details: "",
    74  			},
    75  			"Path": {
    76  				Summary: "specifies that path that the API server should connect to this webhook on. Must be",
    77  				Details: "prefixed with a '/validate-' or '/mutate-' depending on the type, and followed by\n$GROUP-$VERSION-$KIND where all values are lower-cased and the periods in the group\nare substituted for hyphens. For example, a validating webhook path for type\nbatch.tutorial.kubebuilder.io/v1,Kind=CronJob would be\n/validate-batch-tutorial-kubebuilder-io-v1-cronjob",
    78  			},
    79  			"WebhookVersions": {
    80  				Summary: "specifies the target API versions of the {Mutating,Validating}WebhookConfiguration objects",
    81  				Details: "itself to generate. The only supported value is v1. Defaults to v1.",
    82  			},
    83  			"AdmissionReviewVersions": {
    84  				Summary: "is an ordered list of preferred `AdmissionReview`",
    85  				Details: "versions the Webhook expects.",
    86  			},
    87  			"ReinvocationPolicy": {
    88  				Summary: "allows mutating webhooks to request reinvocation after other mutations",
    89  				Details: "To allow mutating admission plugins to observe changes made by other plugins,\nbuilt-in mutating admission plugins are re-run if a mutating webhook modifies\nan object, and mutating webhooks can specify a reinvocationPolicy to control\nwhether they are reinvoked as well.",
    90  			},
    91  			"URL": {
    92  				Summary: "allows mutating webhooks configuration to specify an external URL when generating",
    93  				Details: "the manifests, instead of using the internal service communication. Should be in format of\nhttps://address:port/path\nWhen this option is specified, the serviceConfig.Service is removed from webhook the manifest.\nThe URL configuration should be between quotes.\n`url` cannot be specified when `path` is specified.",
    94  			},
    95  		},
    96  	}
    97  }
    98  
    99  func (Generator) Help() *markers.DefinitionHelp {
   100  	return &markers.DefinitionHelp{
   101  		Category: "",
   102  		DetailedHelp: markers.DetailedHelp{
   103  			Summary: "generates (partial) {Mutating,Validating}WebhookConfiguration objects.",
   104  			Details: "",
   105  		},
   106  		FieldHelp: map[string]markers.DetailedHelp{
   107  			"HeaderFile": {
   108  				Summary: "specifies the header text (e.g. license) to prepend to generated files.",
   109  				Details: "",
   110  			},
   111  			"Year": {
   112  				Summary: "specifies the year to substitute for \" YEAR\" in the header file.",
   113  				Details: "",
   114  			},
   115  		},
   116  	}
   117  }