...

Source file src/github.com/datawire/ambassador/v2/pkg/api/getambassador.io/v3alpha1/crd_tlscontext.go

Documentation: github.com/datawire/ambassador/v2/pkg/api/getambassador.io/v3alpha1

     1  // Copyright 2020 Datawire.  All rights reserved
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  ///////////////////////////////////////////////////////////////////////////
    16  // Important: Run "make generate-fast" to regenerate code after modifying
    17  // this file.
    18  ///////////////////////////////////////////////////////////////////////////
    19  
    20  package v3alpha1
    21  
    22  import (
    23  	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    24  )
    25  
    26  // TLSContextSpec defines the desired state of TLSContext
    27  type TLSContextSpec struct {
    28  	AmbassadorID AmbassadorID `json:"ambassador_id,omitempty"`
    29  
    30  	Hosts           []string `json:"hosts,omitempty"`
    31  	Secret          string   `json:"secret,omitempty"`
    32  	CertChainFile   string   `json:"cert_chain_file,omitempty"`
    33  	PrivateKeyFile  string   `json:"private_key_file,omitempty"`
    34  	CASecret        string   `json:"ca_secret,omitempty"`
    35  	CACertChainFile string   `json:"cacert_chain_file,omitempty"`
    36  	CRLSecret       string   `json:"crl_secret,omitempty"`
    37  	ALPNProtocols   string   `json:"alpn_protocols,omitempty"`
    38  	CertRequired    *bool    `json:"cert_required,omitempty"`
    39  	// +kubebuilder:validation:Enum={"v1.0", "v1.1", "v1.2", "v1.3"}
    40  	MinTLSVersion string `json:"min_tls_version,omitempty"`
    41  	// +kubebuilder:validation:Enum={"v1.0", "v1.1", "v1.2", "v1.3"}
    42  	MaxTLSVersion         string   `json:"max_tls_version,omitempty"`
    43  	CipherSuites          []string `json:"cipher_suites,omitempty"`
    44  	ECDHCurves            []string `json:"ecdh_curves,omitempty"`
    45  	SecretNamespacing     *bool    `json:"secret_namespacing,omitempty"`
    46  	RedirectCleartextFrom *int     `json:"redirect_cleartext_from,omitempty"`
    47  	SNI                   string   `json:"sni,omitempty"`
    48  }
    49  
    50  // TLSContext is the Schema for the tlscontexts API
    51  //
    52  // +kubebuilder:object:root=true
    53  type TLSContext struct {
    54  	metav1.TypeMeta   `json:""`
    55  	metav1.ObjectMeta `json:"metadata,omitempty"`
    56  
    57  	Spec TLSContextSpec `json:"spec,omitempty"`
    58  }
    59  
    60  // TLSContextList contains a list of TLSContexts.
    61  //
    62  // +kubebuilder:object:root=true
    63  type TLSContextList struct {
    64  	metav1.TypeMeta `json:""`
    65  	metav1.ListMeta `json:"metadata,omitempty"`
    66  	Items           []TLSContext `json:"items"`
    67  }
    68  
    69  func init() {
    70  	SchemeBuilder.Register(&TLSContext{}, &TLSContextList{})
    71  }
    72  

View as plain text