import { IComGithubCiliumCiliumPkgPolicyApiSecret } from "./Secret.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * TLSContext provides TLS configuration via reference to either k8s secrets * or via filepath. If both are set, directory is given priority over * k8sSecrets. */ export interface ITLSContext { /** * Certificate is the file name or k8s secret item name for the certificate * chain. If omitted, 'tls.crt' is assumed, if it exists. If given, the * item must exist. */ "certificate"?: string; /** * PrivateKey is the file name or k8s secret item name for the private key * matching the certificate chain. If omitted, 'tls.key' is assumed, if it * exists. If given, the item must exist. */ "privateKey"?: string; /** * Secret is the secret that contains the certificates and private key for * the TLS context. * By default, Cilium will search in this secret for the following items: * - 'ca.crt' - Which represents the trusted CA to verify remote source. * - 'tls.crt' - Which represents the public key certificate. * - 'tls.key' - Which represents the private key matching the public key * certificate. */ "secret": IComGithubCiliumCiliumPkgPolicyApiSecret; /** * TrustedCA is the file name or k8s secret item name for the trusted CA. * If omitted, 'ca.crt' is assumed, if it exists. If given, the item must * exist. */ "trustedCA"?: string; } /** * TLSContext provides TLS configuration via reference to either k8s secrets * or via filepath. If both are set, directory is given priority over * k8sSecrets. */ export declare class TLSContext extends Model implements ITLSContext { "certificate"?: string; "privateKey"?: string; "secret": IComGithubCiliumCiliumPkgPolicyApiSecret; "trustedCA"?: string; constructor(data?: ModelData); } export type { ITLSContext as IComGithubCiliumCiliumPkgPolicyApiTLSContext, TLSContext as ComGithubCiliumCiliumPkgPolicyApiTLSContext };