sigs.k8s.io/kubebuilder/v3@v3.14.0/hack/docs/internal/cronjob-tutorial/other_api_files.go (about)

     1  /*
     2  Copyright 2023 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package cronjob
    18  
    19  const GroupversionIntro = `
    20  // +kubebuilder:docs-gen:collapse=Apache License
    21  
    22  /*
    23  First, we have some *package-level* markers that denote that there are
    24  Kubernetes objects in this package, and that this package represents the group
    25  ` + "`" + `batch.tutorial.kubebuilder.io` + "`" + `. The` + " `" + `object` + "`" + ` generator makes use of the
    26  former, while the latter is used by the CRD generator to generate the right
    27  metadata for the CRDs it creates from this package.
    28  */
    29  `
    30  
    31  const GroupversionSchema = `
    32  /*
    33  Then, we have the commonly useful variables that help us set up our Scheme.
    34  Since we need to use all the types in this package in our controller, it's
    35  helpful (and the convention) to have a convenient method to add all the types to
    36  some other` + " `" + `Scheme` + "`" + `. SchemeBuilder makes this easy for us.
    37  */`