UNPKG

@soft-stech/fleet

Version:
71 lines (70 loc) 3.18 kB
import { IObjectMeta } from "@soft-stech/apimachinery/apis/meta/v1/ObjectMeta"; import { Model, ModelData } from "@soft-stech/base"; /** * GitRepoRestriction is a resource that can optionally be used to restrict * the options of GitRepos in the same namespace. */ export interface IGitRepoRestriction { /** * AllowedClientSecretNames is a list of client secret names that GitRepos are allowed to use. */ "allowedClientSecretNames"?: Array<string>; /** * AllowedRepoPatterns is a list of regex patterns that restrict the * valid values of the Repo field of a GitRepo. */ "allowedRepoPatterns"?: Array<string>; /** * AllowedServiceAccounts is a list of service accounts that GitRepos are allowed to use. */ "allowedServiceAccounts"?: Array<string>; /** * AllowedTargetNamespaces restricts TargetNamespace to the given * namespaces. If AllowedTargetNamespaces is set, TargetNamespace must * be set. */ "allowedTargetNamespaces"?: Array<string>; /** * 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": "fleet.cattle.io/v1alpha1"; /** * DefaultClientSecretName overrides the GitRepo's default client secret. */ "defaultClientSecretName"?: string; /** * DefaultServiceAccount overrides the GitRepo's default service account. */ "defaultServiceAccount"?: string; /** * 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": "GitRepoRestriction"; "metadata"?: IObjectMeta; } /** * GitRepoRestriction is a resource that can optionally be used to restrict * the options of GitRepos in the same namespace. */ export declare class GitRepoRestriction extends Model<IGitRepoRestriction> implements IGitRepoRestriction { "allowedClientSecretNames"?: IGitRepoRestriction["allowedClientSecretNames"]; "allowedRepoPatterns"?: IGitRepoRestriction["allowedRepoPatterns"]; "allowedServiceAccounts"?: IGitRepoRestriction["allowedServiceAccounts"]; "allowedTargetNamespaces"?: IGitRepoRestriction["allowedTargetNamespaces"]; "apiVersion": IGitRepoRestriction["apiVersion"]; "defaultClientSecretName"?: IGitRepoRestriction["defaultClientSecretName"]; "defaultServiceAccount"?: IGitRepoRestriction["defaultServiceAccount"]; "kind": IGitRepoRestriction["kind"]; "metadata"?: IGitRepoRestriction["metadata"]; static apiVersion: IGitRepoRestriction["apiVersion"]; static kind: IGitRepoRestriction["kind"]; static is: import("@soft-stech/base").TypeMetaGuard<IGitRepoRestriction>; constructor(data?: ModelData<IGitRepoRestriction>); }