@kubernetes-models/flux-cd
Version:
68 lines (67 loc) • 3.1 kB
TypeScript
import { IComGithubFluxcdPkgApisMetaLocalObjectReference } from "../../github.com/fluxcd/pkg/apis/meta/LocalObjectReference.js";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* ProviderSpec defines the desired state of the Provider.
*/
export interface IProviderSpec {
/**
* Address specifies the endpoint, in a generic sense, to where alerts are sent.
* What kind of endpoint depends on the specific Provider type being used.
* For the generic Provider, for example, this is an HTTP/S address.
* For other Provider types this could be a project ID or a namespace.
*/
"address"?: string;
/**
* CertSecretRef specifies the Secret containing
* a PEM-encoded CA certificate (in the `ca.crt` key).
*
* Note: Support for the `caFile` key has
* been deprecated.
*/
"certSecretRef"?: IComGithubFluxcdPkgApisMetaLocalObjectReference;
/**
* Channel specifies the destination channel where events should be posted.
*/
"channel"?: string;
"interval"?: string;
/**
* Proxy the HTTP/S address of the proxy server.
*/
"proxy"?: string;
/**
* SecretRef specifies the Secret containing the authentication
* credentials for this Provider.
*/
"secretRef"?: IComGithubFluxcdPkgApisMetaLocalObjectReference;
/**
* Suspend tells the controller to suspend subsequent
* events handling for this Provider.
*/
"suspend"?: boolean;
"timeout"?: string;
/**
* Type specifies which Provider implementation to use.
*/
"type": "slack" | "discord" | "msteams" | "rocket" | "generic" | "generic-hmac" | "github" | "gitlab" | "gitea" | "bitbucketserver" | "bitbucket" | "azuredevops" | "googlechat" | "googlepubsub" | "webex" | "sentry" | "azureeventhub" | "telegram" | "lark" | "matrix" | "opsgenie" | "alertmanager" | "grafana" | "githubdispatch" | "pagerduty" | "datadog";
/**
* Username specifies the name under which events are posted.
*/
"username"?: string;
}
/**
* ProviderSpec defines the desired state of the Provider.
*/
export declare class ProviderSpec extends Model<IProviderSpec> implements IProviderSpec {
"address"?: string;
"certSecretRef"?: IComGithubFluxcdPkgApisMetaLocalObjectReference;
"channel"?: string;
"interval"?: string;
"proxy"?: string;
"secretRef"?: IComGithubFluxcdPkgApisMetaLocalObjectReference;
"suspend"?: boolean;
"timeout"?: string;
"type": "slack" | "discord" | "msteams" | "rocket" | "generic" | "generic-hmac" | "github" | "gitlab" | "gitea" | "bitbucketserver" | "bitbucket" | "azuredevops" | "googlechat" | "googlepubsub" | "webex" | "sentry" | "azureeventhub" | "telegram" | "lark" | "matrix" | "opsgenie" | "alertmanager" | "grafana" | "githubdispatch" | "pagerduty" | "datadog";
"username"?: string;
constructor(data?: ModelData<IProviderSpec>);
}
export type { IProviderSpec as IComGithubFluxcdNotificationControllerApiV1beta2ProviderSpec, ProviderSpec as ComGithubFluxcdNotificationControllerApiV1beta2ProviderSpec };