import { IComGithubElasticCloudOnK8sV3PkgApisAutoopsV1alpha1AutoOpsRef } from "./AutoOpsRef.js"; import { IIoK8sApimachineryPkgApisMetaV1LabelSelector } from "@kubernetes-models/apimachinery/apis/meta/v1/LabelSelector"; import { IIoK8sApiCoreV1PodTemplateSpec } from "kubernetes-models/v1/PodTemplateSpec"; import { ModelData, Model } from "@kubernetes-models/base"; export interface IAutoOpsAgentPolicySpec { /** * AutoOpsRef defines a reference to a secret containing connection details for AutoOps via Cloud Connect. */ "autoOpsRef"?: IComGithubElasticCloudOnK8sV3PkgApisAutoopsV1alpha1AutoOpsRef; /** * Image is the AutoOps Agent Docker image to deploy. */ "image"?: string; /** * NamespaceSelector is a namespace selector for the resources to be configured. * Any Elasticsearch instances that belong to the selected namespaces will be configured to send data to AutoOps. */ "namespaceSelector"?: IIoK8sApimachineryPkgApisMetaV1LabelSelector; /** * PodTemplate provides customisation options (labels, annotations, affinity rules, resource requests, and so on) for the Agent pods */ "podTemplate"?: IIoK8sApiCoreV1PodTemplateSpec; /** * ResourceSelector is a label selector for the resources to be configured. * Any Elasticsearch instances that match the selector will be configured to send data to AutoOps. */ "resourceSelector"?: IIoK8sApimachineryPkgApisMetaV1LabelSelector; /** * RevisionHistoryLimit is the number of revisions to retain to allow rollback in the underlying Deployment. */ "revisionHistoryLimit"?: number; /** * ServiceAccountName is used to check access to Elasticsearch resources in different namespaces. * Can only be used if ECK is enforcing RBAC on references (--enforce-rbac-on-refs flag). * The service account must have "get" permission on elasticsearch.k8s.elastic.co/elasticsearches * in the target namespaces. */ "serviceAccountName"?: string; /** * Version of the AutoOpsAgentPolicy. */ "version": string; } export declare class AutoOpsAgentPolicySpec extends Model implements IAutoOpsAgentPolicySpec { "autoOpsRef"?: IComGithubElasticCloudOnK8sV3PkgApisAutoopsV1alpha1AutoOpsRef; "image"?: string; "namespaceSelector"?: IIoK8sApimachineryPkgApisMetaV1LabelSelector; "podTemplate"?: IIoK8sApiCoreV1PodTemplateSpec; "resourceSelector"?: IIoK8sApimachineryPkgApisMetaV1LabelSelector; "revisionHistoryLimit"?: number; "serviceAccountName"?: string; "version": string; constructor(data?: ModelData); } export type { IAutoOpsAgentPolicySpec as IComGithubElasticCloudOnK8sV3PkgApisAutoopsV1alpha1AutoOpsAgentPolicySpec, AutoOpsAgentPolicySpec as ComGithubElasticCloudOnK8sV3PkgApisAutoopsV1alpha1AutoOpsAgentPolicySpec };