...

Source file src/github.com/GoogleCloudPlatform/k8s-config-connector/pkg/webhook/cert/doc.go

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/pkg/webhook/cert

     1  /*
     2  Copyright 2018 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  /*
    18  Package cert provides functions to manage certificates for webhookClientConfiguration.
    19  
    20  Create a Provisioner with a CertWriter.
    21  
    22  	provisioner := Provisioner{
    23  		CertWriter: admission.NewSecretCertWriter(admission.SecretCertWriterOptions{...}),
    24  	}
    25  
    26  Provision the certificates for the webhookClientConfig
    27  
    28  	err := provisioner.Provision(Options{
    29  		ClientConfig: webhookClientConfig,
    30  		Objects: []runtime.Object{mutatingWebhookConfiguration, validatingWebhookConfiguration}
    31  	})
    32  	if err != nil {
    33  		// handle error
    34  	}
    35  
    36  This package and all its subpackages have been forked from sigs.k8s.io/controller-runtime/pkg/webhook/internal/cert
    37  at version 0.1.12
    38  */
    39  package cert
    40  

View as plain text