@soft-stech/spiffe
Version:
86 lines (85 loc) • 3.48 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ISpiffeIDSchema = void 0;
// Generated by ts-to-zod
const zod_1 = require("zod");
const ObjectMeta_schema_1 = require("@soft-stech/apimachinery/apis/meta/v1/ObjectMeta.schema");
/**
* SpiffeID is the Schema for the spiffeid API
*/
exports.ISpiffeIDSchema = zod_1.z.object({
/**
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*/
"apiVersion": zod_1.z.literal("spiffeid.spiffe.io/v1beta1"),
/**
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
"kind": zod_1.z.literal("SpiffeID"),
"metadata": ObjectMeta_schema_1.iObjectMetaSchema.optional(),
/**
* SpiffeIDSpec defines the desired state of SpiffeID
*/
"spec": zod_1.z.object({
"dnsNames": zod_1.z.array(zod_1.z.string()).optional(),
"federatesWith": zod_1.z.array(zod_1.z.string()).optional(),
"parentId": zod_1.z.string(),
"downstream": zod_1.z.boolean().optional(),
"selector": zod_1.z.object({
/**
* Arbitrary selectors
*/
"arbitrary": zod_1.z.array(zod_1.z.string()).optional(),
/**
* Container image to match for this spiffe ID
*/
"containerImage": zod_1.z.string().optional(),
/**
* Container name to match for this spiffe ID
*/
"containerName": zod_1.z.string().optional(),
/**
* Namespace to match for this spiffe ID
*/
"namespace": zod_1.z.string().optional(),
/**
* Node name to match for this spiffe ID
*/
"nodeName": zod_1.z.string().optional(),
/**
* Pod label name/value to match for this spiffe ID
*/
"podLabel": zod_1.z.record(zod_1.z.string()).optional(),
/**
* Pod name to match for this spiffe ID
*/
"podName": zod_1.z.string().optional(),
/**
* Pod UID to match for this spiffe ID
*/
"podUid": zod_1.z.string().optional(),
/**
* ServiceAccount to match for this spiffe ID
*/
"serviceAccount": zod_1.z.string().optional(),
/**
* The k8s_psat cluster name
*/
"cluster": zod_1.z.string().optional(),
/**
* UID of the node
*/
"agent_node_uid": zod_1.z.string().optional()
}),
"spiffeId": zod_1.z.string()
}).optional(),
/**
* SpiffeIDStatus defines the observed state of SpiffeID
*/
"status": zod_1.z.object({
/**
* INSERT ADDITIONAL STATUS FIELD - define observed state of cluster Important: Run "make" to regenerate code after modifying this file
*/
"entryId": zod_1.z.string().optional()
}).optional()
});