UNPKG

cdk-eks-karpenter

Version:

CDK construct library that allows you install Karpenter in an AWS EKS cluster

25 lines (24 loc) 824 B
/** * Utils should only contain static methods. */ export declare class Utils { /** * Check whether a string conforms to the lowercase RFC 1123. If not, Kubernetes will throw * an error saying that the name must conform with regex used for validation, which is: * \'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\')\n' * * @param s string to validate * * @returns boolean */ static validateKubernetesNameConformance(s: string): boolean; /** * Checks the object to ensure that all required keys are present, or throws an error. * * @param obj object to check * @param required list of strings to ensure presence * * @returns boolean */ static hasRequiredKeys(obj: Record<string, any>, required: string[]): void; }