@kubernetes-models/istio
Version:
53 lines (52 loc) • 1.86 kB
TypeScript
import { IObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta";
import { Model, ModelData } from "@kubernetes-models/base";
export interface IPeerAuthentication {
/**
* PeerAuthentication defines how traffic will be tunneled (or not) to the sidecar.
*/
"spec"?: {
/**
* Mutual TLS settings for workload.
*/
"mtls"?: {
/**
* Defines the mTLS mode used for peer authentication.
*/
"mode"?: "UNSET" | "DISABLE" | "PERMISSIVE" | "STRICT";
};
/**
* Port specific mutual TLS settings.
*/
"portLevelMtls"?: {
[key: string]: {
/**
* Defines the mTLS mode used for peer authentication.
*/
"mode"?: "UNSET" | "DISABLE" | "PERMISSIVE" | "STRICT";
};
};
/**
* The selector determines the workloads to apply the ChannelAuthentication on.
*/
"selector"?: {
"matchLabels"?: {
[key: string]: string;
};
};
};
"status"?: {};
"apiVersion": "security.istio.io/v1beta1";
"kind": "PeerAuthentication";
"metadata"?: IObjectMeta;
}
export declare class PeerAuthentication extends Model<IPeerAuthentication> implements IPeerAuthentication {
"spec"?: IPeerAuthentication["spec"];
"status"?: IPeerAuthentication["status"];
"apiVersion": IPeerAuthentication["apiVersion"];
"kind": IPeerAuthentication["kind"];
"metadata"?: IPeerAuthentication["metadata"];
static apiVersion: IPeerAuthentication["apiVersion"];
static kind: IPeerAuthentication["kind"];
static is: import("@kubernetes-models/base").TypeMetaGuard<IPeerAuthentication>;
constructor(data?: ModelData<IPeerAuthentication>);
}