/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * GitRepository is the Schema for the gitrepositories API */ export interface K8SGitRepositoryV1Beta1 { /** * 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?: 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?: string; metadata?: {}; /** * GitRepositorySpec defines the desired state of a Git repository. */ spec?: { /** * AccessFrom defines an Access Control List for allowing cross-namespace references to this object. */ accessFrom?: { /** * NamespaceSelectors is the list of namespace selectors to which this ACL applies. * Items in this list are evaluated using a logical OR operation. */ namespaceSelectors: { /** * MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels * map is equivalent to an element of matchExpressions, whose key field is "key", the * operator is "In", and the values array contains only "value". The requirements are ANDed. */ matchLabels?: { [k: string]: string; }; }[]; }; /** * Determines which git client library to use. * Defaults to go-git, valid values are ('go-git', 'libgit2'). */ gitImplementation?: string; /** * Ignore overrides the set of excluded patterns in the .sourceignore format * (which is the same as .gitignore). If not provided, a default will be used, * consult the documentation for your version to find out what those are. */ ignore?: string; /** * Extra git repositories to map into the repository */ include?: { /** * The path to copy contents from, defaults to the root directory. */ fromPath?: string; /** * Reference to a GitRepository to include. */ repository: { /** * Name of the referent. */ name: string; }; /** * The path to copy contents to, defaults to the name of the source ref. */ toPath?: string; }[]; /** * The interval at which to check for repository updates. */ interval: string; /** * When enabled, after the clone is created, initializes all submodules within, * using their default settings. * This option is available only when using the 'go-git' GitImplementation. */ recurseSubmodules?: boolean; /** * The Git reference to checkout and monitor for changes, defaults to * master branch. */ ref?: { /** * The Git branch to checkout, defaults to master. */ branch?: string; /** * The Git commit SHA to checkout, if specified Tag filters will be ignored. */ commit?: string; /** * The Git tag semver expression, takes precedence over Tag. */ semver?: string; /** * The Git tag to checkout, takes precedence over Branch. */ tag?: string; }; /** * The secret name containing the Git credentials. * For HTTPS repositories the secret must contain username and password * fields. * For SSH repositories the secret must contain identity and known_hosts * fields. */ secretRef?: { /** * Name of the referent. */ name: string; }; /** * This flag tells the controller to suspend the reconciliation of this source. */ suspend?: boolean; /** * The timeout for remote Git operations like cloning, defaults to 60s. */ timeout?: string; /** * The repository URL, can be a HTTP/S or SSH address. */ url: string; /** * Verify OpenPGP signature for the Git commit HEAD points to. */ verify?: { /** * Mode describes what git object should be verified, currently ('head'). */ mode: string; /** * The secret name containing the public keys of all trusted Git authors. */ secretRef?: { /** * Name of the referent. */ name: string; }; }; }; /** * GitRepositoryStatus defines the observed state of a Git repository. */ status?: { /** * Artifact represents the output of the last successful repository sync. */ artifact?: { /** * Checksum is the SHA256 checksum of the artifact. */ checksum?: string; /** * LastUpdateTime is the timestamp corresponding to the last update of this * artifact. */ lastUpdateTime: string; /** * Path is the relative file path of this artifact. */ path: string; /** * Revision is a human readable identifier traceable in the origin source * system. It can be a Git commit SHA, Git tag, a Helm index timestamp, a Helm * chart version, etc. */ revision?: string; /** * URL is the HTTP address of this artifact. */ url: string; }; /** * Conditions holds the conditions for the GitRepository. */ conditions?: { /** * lastTransitionTime is the last time the condition transitioned from one status to another. * This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. */ lastTransitionTime: string; /** * message is a human readable message indicating details about the transition. * This may be an empty string. */ message: string; /** * observedGeneration represents the .metadata.generation that the condition was set based upon. * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date * with respect to the current state of the instance. */ observedGeneration?: number; /** * reason contains a programmatic identifier indicating the reason for the condition's last transition. * Producers of specific condition types may define expected values and meanings for this field, * and whether the values are considered a guaranteed API. * The value should be a CamelCase string. * This field may not be empty. */ reason: string; /** * status of the condition, one of True, False, Unknown. */ status: "True" | "False" | "Unknown"; /** * type of condition in CamelCase or in foo.example.com/CamelCase. */ type: string; }[]; /** * IncludedArtifacts represents the included artifacts from the last successful repository sync. */ includedArtifacts?: { /** * Checksum is the SHA256 checksum of the artifact. */ checksum?: string; /** * LastUpdateTime is the timestamp corresponding to the last update of this * artifact. */ lastUpdateTime: string; /** * Path is the relative file path of this artifact. */ path: string; /** * Revision is a human readable identifier traceable in the origin source * system. It can be a Git commit SHA, Git tag, a Helm index timestamp, a Helm * chart version, etc. */ revision?: string; /** * URL is the HTTP address of this artifact. */ url: string; }[]; /** * LastHandledReconcileAt holds the value of the most recent * reconcile request value, so a change of the annotation value * can be detected. */ lastHandledReconcileAt?: string; /** * ObservedGeneration is the last observed generation. */ observedGeneration?: number; /** * URL is the download link for the artifact output of the last repository * sync. */ url?: string; }; }