@kubernetes-models/flux-cd
Version:
45 lines (44 loc) • 2.05 kB
TypeScript
import { IComGithubFluxcdNotificationControllerApiV1beta1CrossNamespaceObjectReference } from "./CrossNamespaceObjectReference.js";
import { IComGithubFluxcdPkgApisMetaLocalObjectReference } from "../../github.com/fluxcd/pkg/apis/meta/LocalObjectReference.js";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* ReceiverSpec defines the desired state of Receiver
*/
export interface IReceiverSpec {
/**
* A list of events to handle,
* e.g. 'push' for GitHub or 'Push Hook' for GitLab.
*/
"events"?: Array<string>;
/**
* A list of resources to be notified about changes.
*/
"resources": Array<IComGithubFluxcdNotificationControllerApiV1beta1CrossNamespaceObjectReference>;
/**
* Secret reference containing the token used
* to validate the payload authenticity
*/
"secretRef": IComGithubFluxcdPkgApisMetaLocalObjectReference;
/**
* This flag tells the controller to suspend subsequent events handling.
* Defaults to false.
*/
"suspend"?: boolean;
/**
* Type of webhook sender, used to determine
* the validation procedure and payload deserialization.
*/
"type": "generic" | "generic-hmac" | "github" | "gitlab" | "bitbucket" | "harbor" | "dockerhub" | "quay" | "gcr" | "nexus" | "acr";
}
/**
* ReceiverSpec defines the desired state of Receiver
*/
export declare class ReceiverSpec extends Model<IReceiverSpec> implements IReceiverSpec {
"events"?: Array<string>;
"resources": Array<IComGithubFluxcdNotificationControllerApiV1beta1CrossNamespaceObjectReference>;
"secretRef": IComGithubFluxcdPkgApisMetaLocalObjectReference;
"suspend"?: boolean;
"type": "generic" | "generic-hmac" | "github" | "gitlab" | "bitbucket" | "harbor" | "dockerhub" | "quay" | "gcr" | "nexus" | "acr";
constructor(data?: ModelData<IReceiverSpec>);
}
export type { IReceiverSpec as IComGithubFluxcdNotificationControllerApiV1beta1ReceiverSpec, ReceiverSpec as ComGithubFluxcdNotificationControllerApiV1beta1ReceiverSpec };