// Copyright (c) 2023 Volvo Car Corporation
// SPDX-License-Identifier: Apache-2.0

// Code generated by lingon. EDIT AS MUCH AS YOU LIKE.

package vmcrd

import (
	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

var VmagentsOperatorVictoriametricsComCRD = &apiextensionsv1.CustomResourceDefinition{
	ObjectMeta: metav1.ObjectMeta{
		Annotations: map[string]string{"controller-gen.kubebuilder.io/version": "v0.10.0"},
		Name:        "vmagents.operator.victoriametrics.com",
	},
	Spec: apiextensionsv1.CustomResourceDefinitionSpec{
		Group: "operator.victoriametrics.com",
		Names: apiextensionsv1.CustomResourceDefinitionNames{
			Kind:     "VMAgent",
			ListKind: "VMAgentList",
			Plural:   "vmagents",
			Singular: "vmagent",
		},
		Scope: apiextensionsv1.ResourceScope("Namespaced"),
		Versions: []apiextensionsv1.CustomResourceDefinitionVersion{{
			AdditionalPrinterColumns: []apiextensionsv1.CustomResourceColumnDefinition{{
				Description: "current number of shards",
				JSONPath:    ".status.shards",
				Name:        "Shards Count",
				Type:        "integer",
			}, {
				Description: "current number of replicas",
				JSONPath:    ".status.replicas",
				Name:        "Replica Count",
				Type:        "integer",
			}},
			Name: "v1beta1",
			Schema: &apiextensionsv1.CustomResourceValidation{OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{
				Description: "VMAgent - is a tiny but brave agent, which helps you collect metrics from various sources and stores them in VictoriaMetrics or any other Prometheus-compatible storage system that supports the remote_write protocol.",
				Properties: map[string]apiextensionsv1.JSONSchemaProps{
					"apiVersion": {
						Description: "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",
						Type:        "string",
					},
					"kind": {
						Description: "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",
						Type:        "string",
					},
					"metadata": {Type: "object"},
					"spec": {
						Description: "VMAgentSpec defines the desired state of VMAgent",
						Properties: map[string]apiextensionsv1.JSONSchemaProps{
							"-": {
								Description: "ParsingError contents error with context if operator was failed to parse json object from kubernetes api server",
								Type:        "string",
							},
							"aPIServerConfig": {
								Description: "APIServerConfig allows specifying a host and auth methods to access apiserver. If left empty, VMAgent is assumed to run inside of the cluster and will discover API servers automatically and use the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"authorization": {
										Description: "Authorization configures generic authorization params",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"credentials": {
												Description: "Reference to the secret with value for authorization",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"key": {
														Description: "The key of the secret to select from.  Must be a valid secret key.",
														Type:        "string",
													},
													"name": {
														Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
														Type:        "string",
													},
													"optional": {
														Description: "Specify whether the Secret or its key must be defined",
														Type:        "boolean",
													},
												},
												Required: []string{"key"},
												Type:     "object",
												XMapType: P("atomic"),
											},
											"credentialsFile": {
												Description: "File with value for authorization",
												Type:        "string",
											},
											"type": {
												Description: "Type of authorization, default to bearer",
												Type:        "string",
											},
										},
										Type: "object",
									},
									"basicAuth": {
										Description: "BasicAuth allow an endpoint to authenticate over basic authentication",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"password": {
												Description: "The secret in the service scrape namespace that contains the password for authentication. It must be at them same namespace as CRD",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"key": {
														Description: "The key of the secret to select from.  Must be a valid secret key.",
														Type:        "string",
													},
													"name": {
														Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
														Type:        "string",
													},
													"optional": {
														Description: "Specify whether the Secret or its key must be defined",
														Type:        "boolean",
													},
												},
												Required: []string{"key"},
												Type:     "object",
												XMapType: P("atomic"),
											},
											"password_file": {
												Description: "PasswordFile defines path to password file at disk",
												Type:        "string",
											},
											"username": {
												Description: "The secret in the service scrape namespace that contains the username for authentication. It must be at them same namespace as CRD",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"key": {
														Description: "The key of the secret to select from.  Must be a valid secret key.",
														Type:        "string",
													},
													"name": {
														Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
														Type:        "string",
													},
													"optional": {
														Description: "Specify whether the Secret or its key must be defined",
														Type:        "boolean",
													},
												},
												Required: []string{"key"},
												Type:     "object",
												XMapType: P("atomic"),
											},
										},
										Type: "object",
									},
									"bearerToken": {
										Description: "Bearer token for accessing apiserver.",
										Type:        "string",
									},
									"bearerTokenFile": {
										Description: "File to read bearer token for accessing apiserver.",
										Type:        "string",
									},
									"host": {
										Description: "Host of apiserver. A valid string consisting of a hostname or IP followed by an optional port number",
										Type:        "string",
									},
									"tlsConfig": {
										Description: "TLSConfig Config to use for accessing apiserver.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"ca": {
												Description: "Stuct containing the CA cert to use for the targets.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"configMap": {
														Description: "ConfigMap containing data to use for the targets.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"key": {
																Description: "The key to select.",
																Type:        "string",
															},
															"name": {
																Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																Type:        "string",
															},
															"optional": {
																Description: "Specify whether the ConfigMap or its key must be defined",
																Type:        "boolean",
															},
														},
														Required: []string{"key"},
														Type:     "object",
														XMapType: P("atomic"),
													},
													"secret": {
														Description: "Secret containing data to use for the targets.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"key": {
																Description: "The key of the secret to select from.  Must be a valid secret key.",
																Type:        "string",
															},
															"name": {
																Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																Type:        "string",
															},
															"optional": {
																Description: "Specify whether the Secret or its key must be defined",
																Type:        "boolean",
															},
														},
														Required: []string{"key"},
														Type:     "object",
														XMapType: P("atomic"),
													},
												},
												Type: "object",
											},
											"caFile": {
												Description: "Path to the CA cert in the container to use for the targets.",
												Type:        "string",
											},
											"cert": {
												Description: "Struct containing the client cert file for the targets.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"configMap": {
														Description: "ConfigMap containing data to use for the targets.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"key": {
																Description: "The key to select.",
																Type:        "string",
															},
															"name": {
																Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																Type:        "string",
															},
															"optional": {
																Description: "Specify whether the ConfigMap or its key must be defined",
																Type:        "boolean",
															},
														},
														Required: []string{"key"},
														Type:     "object",
														XMapType: P("atomic"),
													},
													"secret": {
														Description: "Secret containing data to use for the targets.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"key": {
																Description: "The key of the secret to select from.  Must be a valid secret key.",
																Type:        "string",
															},
															"name": {
																Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																Type:        "string",
															},
															"optional": {
																Description: "Specify whether the Secret or its key must be defined",
																Type:        "boolean",
															},
														},
														Required: []string{"key"},
														Type:     "object",
														XMapType: P("atomic"),
													},
												},
												Type: "object",
											},
											"certFile": {
												Description: "Path to the client cert file in the container for the targets.",
												Type:        "string",
											},
											"insecureSkipVerify": {
												Description: "Disable target certificate validation.",
												Type:        "boolean",
											},
											"keyFile": {
												Description: "Path to the client key file in the container for the targets.",
												Type:        "string",
											},
											"keySecret": {
												Description: "Secret containing the client key file for the targets.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"key": {
														Description: "The key of the secret to select from.  Must be a valid secret key.",
														Type:        "string",
													},
													"name": {
														Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
														Type:        "string",
													},
													"optional": {
														Description: "Specify whether the Secret or its key must be defined",
														Type:        "boolean",
													},
												},
												Required: []string{"key"},
												Type:     "object",
												XMapType: P("atomic"),
											},
											"serverName": {
												Description: "Used to verify the hostname for the targets.",
												Type:        "string",
											},
										},
										Type: "object",
									},
								},
								Required: []string{"host"},
								Type:     "object",
							},
							"additionalScrapeConfigs": {
								Description: "AdditionalScrapeConfigs As scrape configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of VMAgent. It is advised to review VMAgent release notes to ensure that no incompatible scrape configs are going to break VMAgent after the upgrade.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"key": {
										Description: "The key of the secret to select from.  Must be a valid secret key.",
										Type:        "string",
									},
									"name": {
										Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
										Type:        "string",
									},
									"optional": {
										Description: "Specify whether the Secret or its key must be defined",
										Type:        "boolean",
									},
								},
								Required: []string{"key"},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"affinity": {
								Description:            "Affinity If specified, the pod's scheduling constraints.",
								Type:                   "object",
								XPreserveUnknownFields: P(true),
							},
							"arbitraryFSAccessThroughSMs": {
								Description: "ArbitraryFSAccessThroughSMs configures whether configuration based on a service scrape can access arbitrary files on the file system of the VMAgent container e.g. bearer token files.",
								Properties:  map[string]apiextensionsv1.JSONSchemaProps{"deny": {Type: "boolean"}},
								Type:        "object",
							},
							"claimTemplates": {
								Description: "ClaimTemplates allows adding additional VolumeClaimTemplates for VMAgent in StatefulMode",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "PersistentVolumeClaim is a user's request for and claim to a persistent volume",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"apiVersion": {
											Description: "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",
											Type:        "string",
										},
										"kind": {
											Description: "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",
											Type:        "string",
										},
										"metadata": {
											Description:            "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
											Type:                   "object",
											XPreserveUnknownFields: P(true),
										},
										"spec": {
											Description: "spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"accessModes": {
													Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
												"dataSource": {
													Description: "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"apiGroup": {
															Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
															Type:        "string",
														},
														"kind": {
															Description: "Kind is the type of resource being referenced",
															Type:        "string",
														},
														"name": {
															Description: "Name is the name of resource being referenced",
															Type:        "string",
														},
													},
													Required: []string{"kind", "name"},
													Type:     "object",
													XMapType: P("atomic"),
												},
												"dataSourceRef": {
													Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"apiGroup": {
															Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
															Type:        "string",
														},
														"kind": {
															Description: "Kind is the type of resource being referenced",
															Type:        "string",
														},
														"name": {
															Description: "Name is the name of resource being referenced",
															Type:        "string",
														},
													},
													Required: []string{"kind", "name"},
													Type:     "object",
													XMapType: P("atomic"),
												},
												"resources": {
													Description: "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"limits": {
															AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																Allows: true,
																Schema: &apiextensionsv1.JSONSchemaProps{
																	AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
																	Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
																	XIntOrString: true,
																},
															},
															Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
															Type:        "object",
														},
														"requests": {
															AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																Allows: true,
																Schema: &apiextensionsv1.JSONSchemaProps{
																	AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
																	Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
																	XIntOrString: true,
																},
															},
															Description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
															Type:        "object",
														},
													},
													Type: "object",
												},
												"selector": {
													Description: "selector is a label query over volumes to consider for binding.",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"matchExpressions": {
															Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
															Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
																Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"key": {
																		Description: "key is the label key that the selector applies to.",
																		Type:        "string",
																	},
																	"operator": {
																		Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
																		Type:        "string",
																	},
																	"values": {
																		Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
																		Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																		Type:        "array",
																	},
																},
																Required: []string{"key", "operator"},
																Type:     "object",
															}},
															Type: "array",
														},
														"matchLabels": {
															AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																Allows: true,
																Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
															},
															Description: "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.",
															Type:        "object",
														},
													},
													Type:     "object",
													XMapType: P("atomic"),
												},
												"storageClassName": {
													Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
													Type:        "string",
												},
												"volumeMode": {
													Description: "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
													Type:        "string",
												},
												"volumeName": {
													Description: "volumeName is the binding reference to the PersistentVolume backing this claim.",
													Type:        "string",
												},
											},
											Type: "object",
										},
										"status": {
											Description: "status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"accessModes": {
													Description: "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
												"allocatedResources": {
													AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
														Allows: true,
														Schema: &apiextensionsv1.JSONSchemaProps{
															AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
															Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
															XIntOrString: true,
														},
													},
													Description: "allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
													Type:        "object",
												},
												"capacity": {
													AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
														Allows: true,
														Schema: &apiextensionsv1.JSONSchemaProps{
															AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
															Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
															XIntOrString: true,
														},
													},
													Description: "capacity represents the actual resources of the underlying volume.",
													Type:        "object",
												},
												"conditions": {
													Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.",
													Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
														Description: "PersistentVolumeClaimCondition contails details about state of pvc",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"lastProbeTime": {
																Description: "lastProbeTime is the time we probed the condition.",
																Format:      "date-time",
																Type:        "string",
															},
															"lastTransitionTime": {
																Description: "lastTransitionTime is the time the condition transitioned from one status to another.",
																Format:      "date-time",
																Type:        "string",
															},
															"message": {
																Description: "message is the human-readable message indicating details about last transition.",
																Type:        "string",
															},
															"reason": {
																Description: "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.",
																Type:        "string",
															},
															"status": {Type: "string"},
															"type": {
																Description: "PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type",
																Type:        "string",
															},
														},
														Required: []string{"status", "type"},
														Type:     "object",
													}},
													Type: "array",
												},
												"phase": {
													Description: "phase represents the current phase of PersistentVolumeClaim.",
													Type:        "string",
												},
												"resizeStatus": {
													Description: "resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
													Type:        "string",
												},
											},
											Type: "object",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"configMaps": {
								Description: "ConfigMaps is a list of ConfigMaps in the same namespace as the vmagent object, which shall be mounted into the vmagent Pods. will be mounted at path  /etc/vm/configs",
								Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
								Type:        "array",
							},
							"containers": {
								Description: "Containers property allows to inject additions sidecars or to patch existing containers. It can be useful for proxies, backup, etc.",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description:            "A single application container that you want to run within a pod.",
									Required:               []string{"name"},
									Type:                   "object",
									XPreserveUnknownFields: P(true),
								}},
								Type: "array",
							},
							"dnsConfig": {
								Description: "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.",
								Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{XPreserveUnknownFields: P(true)}},
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"nameservers": {
										Description: "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.",
										Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
										Type:        "array",
									},
									"options": {
										Description: "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "PodDNSConfigOption defines DNS resolver options of a pod.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"name": {
													Description: "Required.",
													Type:        "string",
												},
												"value": {Type: "string"},
											},
											Type: "object",
										}},
										Type: "array",
									},
									"searches": {
										Description: "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.",
										Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
										Type:        "array",
									},
								},
								Type: "object",
							},
							"dnsPolicy": {
								Description: "DNSPolicy set DNS policy for the pod",
								Type:        "string",
							},
							"enforcedNamespaceLabel": {
								Description: "EnforcedNamespaceLabel enforces adding a namespace label of origin for each alert and metric that is user created. The label value will always be the namespace of the object that is being created.",
								Type:        "string",
							},
							"externalLabels": {
								AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
									Allows: true,
									Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
								},
								Description: "ExternalLabels The labels to add to any time series scraped by vmagent. it doesn't affect metrics ingested directly by push API's",
								Type:        "object",
							},
							"extraArgs": {
								AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
									Allows: true,
									Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
								},
								Description: "ExtraArgs that will be passed to  VMAgent pod for example remoteWrite.tmpDataPath: /tmp it would be converted to flag --remoteWrite.tmpDataPath=/tmp",
								Type:        "object",
							},
							"extraEnvs": {
								Description: "ExtraEnvs that will be added to VMAgent pod",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "EnvVar represents an environment variable present in a Container.",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"name": {
											Description: "Name of the environment variable. Must be a C_IDENTIFIER.",
											Type:        "string",
										},
										"value": {
											Description: "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".",
											Type:        "string",
										},
									},
									Required:               []string{"name"},
									Type:                   "object",
									XPreserveUnknownFields: P(true),
								}},
								Type: "array",
							},
							"hostNetwork": {
								Description: "HostNetwork controls whether the pod may use the node network namespace",
								Type:        "boolean",
							},
							"host_aliases": {
								Description: "HostAliases provides mapping between ip and hostnames, that would be propagated to pod, cannot be used with HostNetwork.",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"hostnames": {
											Description: "Hostnames for the above IP address.",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"ip": {
											Description: "IP address of the host file entry.",
											Type:        "string",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"ignoreNamespaceSelectors": {
								Description: "IgnoreNamespaceSelectors if set to true will ignore NamespaceSelector settings from the podscrape and vmservicescrape configs, and they will only discover endpoints within their current namespace.  Defaults to false.",
								Type:        "boolean",
							},
							"image": {
								Description: "Image - docker image settings for VMAgent if no specified operator uses default config version",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"pullPolicy": {
										Description: "PullPolicy describes how to pull docker image",
										Type:        "string",
									},
									"repository": {
										Description: "Repository contains name of docker image + it's repository if needed",
										Type:        "string",
									},
									"tag": {
										Description: "Tag contains desired docker image version",
										Type:        "string",
									},
								},
								Type: "object",
							},
							"imagePullSecrets": {
								Description: "ImagePullSecrets An optional list of references to secrets in the same namespace to use for pulling images from registries see http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{"name": {
										Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
										Type:        "string",
									}},
									Type:     "object",
									XMapType: P("atomic"),
								}},
								Type: "array",
							},
							"initContainers": {
								Description: "InitContainers allows adding initContainers to the pod definition. Those can be used to e.g. fetch secrets for injection into the vmagent configuration from external sources. Any errors during the execution of an initContainer will lead to a restart of the Pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ Using initContainers for any use case other then secret fetching is entirely outside the scope of what the maintainers will support and by doing so, you accept that this behaviour may break at any time without notice.",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description:            "A single application container that you want to run within a pod.",
									Required:               []string{"name"},
									Type:                   "object",
									XPreserveUnknownFields: P(true),
								}},
								Type: "array",
							},
							"inlineRelabelConfig": {
								Description: "InlineRelabelConfig - defines GlobalRelabelConfig for vmagent, can be defined directly at CRD.",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"action": {
											Description: "Action to perform based on regex matching. Default is 'replace'",
											Type:        "string",
										},
										"if": {
											Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
											Type:        "string",
										},
										"labels": {
											AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
												Allows: true,
												Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
											},
											Description: "Labels is used together with Match for `action: graphite`",
											Type:        "object",
										},
										"match": {
											Description: "Match is used together with Labels for `action: graphite`",
											Type:        "string",
										},
										"modulus": {
											Description: "Modulus to take of the hash of the source label values.",
											Format:      "int64",
											Type:        "integer",
										},
										"regex": {
											Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
											Type:        "string",
										},
										"replacement": {
											Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
											Type:        "string",
										},
										"separator": {
											Description: "Separator placed between concatenated source label values. default is ';'.",
											Type:        "string",
										},
										"sourceLabels": {
											Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"source_labels": {
											Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"targetLabel": {
											Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
											Type:        "string",
										},
										"target_label": {
											Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Type:        "string",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"inlineScrapeConfig": {
								Description: "InlineScrapeConfig As scrape configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of VMAgent. It is advised to review VMAgent release notes to ensure that no incompatible scrape configs are going to break VMAgent after the upgrade. it should be defined as single yaml file. inlineScrapeConfig: | - job_name: \"prometheus\" static_configs: - targets: [\"localhost:9090\"]",
								Type:        "string",
							},
							"insertPorts": {
								Description: "InsertPorts - additional listen ports for data ingestion.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"graphitePort": {
										Description: "GraphitePort listen port",
										Type:        "string",
									},
									"influxPort": {
										Description: "InfluxPort listen port",
										Type:        "string",
									},
									"openTSDBHTTPPort": {
										Description: "OpenTSDBHTTPPort for http connections.",
										Type:        "string",
									},
									"openTSDBPort": {
										Description: "OpenTSDBPort for tcp and udp listen",
										Type:        "string",
									},
								},
								Type: "object",
							},
							"livenessProbe": {
								Description:            "LivenessProbe that will be added CRD pod",
								Type:                   "object",
								XPreserveUnknownFields: P(true),
							},
							"logFormat": {
								Description: "LogFormat for VMAgent to be configured with.",
								Enum:        []apiextensionsv1.JSON{{Raw: []byte("\"default\"")}, {Raw: []byte("\"json\"")}},
								Type:        "string",
							},
							"logLevel": {
								Description: "LogLevel for VMAgent to be configured with. INFO, WARN, ERROR, FATAL, PANIC",
								Enum:        []apiextensionsv1.JSON{{Raw: []byte("\"INFO\"")}, {Raw: []byte("\"WARN\"")}, {Raw: []byte("\"ERROR\"")}, {Raw: []byte("\"FATAL\"")}, {Raw: []byte("\"PANIC\"")}},
								Type:        "string",
							},
							"maxScrapeInterval": {
								Description: "MaxScrapeInterval allows limiting maximum scrape interval for VMServiceScrape, VMPodScrape and other scrapes If interval is higher than defined limit, `maxScrapeInterval` will be used.",
								Type:        "string",
							},
							"minScrapeInterval": {
								Description: "MinScrapeInterval allows limiting minimal scrape interval for VMServiceScrape, VMPodScrape and other scrapes If interval is lower than defined limit, `minScrapeInterval` will be used.",
								Type:        "string",
							},
							"nodeScrapeNamespaceSelector": {
								Description: "NodeScrapeNamespaceSelector defines Namespaces to be selected for VMNodeScrape discovery. Works in combination with Selector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"nodeScrapeRelabelTemplate": {
								Description: "NodeScrapeRelabelTemplate defines relabel config, that will be added to each VMNodeScrape. it's useful for adding specific labels to all targets",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"action": {
											Description: "Action to perform based on regex matching. Default is 'replace'",
											Type:        "string",
										},
										"if": {
											Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
											Type:        "string",
										},
										"labels": {
											AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
												Allows: true,
												Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
											},
											Description: "Labels is used together with Match for `action: graphite`",
											Type:        "object",
										},
										"match": {
											Description: "Match is used together with Labels for `action: graphite`",
											Type:        "string",
										},
										"modulus": {
											Description: "Modulus to take of the hash of the source label values.",
											Format:      "int64",
											Type:        "integer",
										},
										"regex": {
											Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
											Type:        "string",
										},
										"replacement": {
											Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
											Type:        "string",
										},
										"separator": {
											Description: "Separator placed between concatenated source label values. default is ';'.",
											Type:        "string",
										},
										"sourceLabels": {
											Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"source_labels": {
											Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"targetLabel": {
											Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
											Type:        "string",
										},
										"target_label": {
											Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Type:        "string",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"nodeScrapeSelector": {
								Description: "NodeScrapeSelector defines VMNodeScrape to be selected for scraping. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"nodeSelector": {
								AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
									Allows: true,
									Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
								},
								Description: "NodeSelector Define which Nodes the Pods are scheduled on.",
								Type:        "object",
							},
							"overrideHonorLabels": {
								Description: "OverrideHonorLabels if set to true overrides all user configured honor_labels. If HonorLabels is set in ServiceScrape or PodScrape to true, this overrides honor_labels to false.",
								Type:        "boolean",
							},
							"overrideHonorTimestamps": {
								Description: "OverrideHonorTimestamps allows to globally enforce honoring timestamps in all scrape configs.",
								Type:        "boolean",
							},
							"podDisruptionBudget": {
								Description: "PodDisruptionBudget created by operator",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"maxUnavailable": {
										AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
										Description:  "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".",
										XIntOrString: true,
									},
									"minAvailable": {
										AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
										Description:  "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod.  So for example you can prevent all voluntary evictions by specifying \"100%\".",
										XIntOrString: true,
									},
									"selectorLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "replaces default labels selector generated by operator it's useful when you need to create custom budget",
										Type:        "object",
									},
								},
								Type: "object",
							},
							"podMetadata": {
								Description: "PodMetadata configures Labels and Annotations which are propagated to the vmagent pods.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"annotations": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations",
										Type:        "object",
									},
									"labels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "Labels Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
										Type:        "object",
									},
									"name": {
										Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
										Type:        "string",
									},
								},
								Type: "object",
							},
							"podScrapeNamespaceSelector": {
								Description: "PodScrapeNamespaceSelector defines Namespaces to be selected for VMPodScrape discovery. Works in combination with Selector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"podScrapeRelabelTemplate": {
								Description: "PodScrapeRelabelTemplate defines relabel config, that will be added to each VMPodScrape. it's useful for adding specific labels to all targets",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"action": {
											Description: "Action to perform based on regex matching. Default is 'replace'",
											Type:        "string",
										},
										"if": {
											Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
											Type:        "string",
										},
										"labels": {
											AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
												Allows: true,
												Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
											},
											Description: "Labels is used together with Match for `action: graphite`",
											Type:        "object",
										},
										"match": {
											Description: "Match is used together with Labels for `action: graphite`",
											Type:        "string",
										},
										"modulus": {
											Description: "Modulus to take of the hash of the source label values.",
											Format:      "int64",
											Type:        "integer",
										},
										"regex": {
											Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
											Type:        "string",
										},
										"replacement": {
											Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
											Type:        "string",
										},
										"separator": {
											Description: "Separator placed between concatenated source label values. default is ';'.",
											Type:        "string",
										},
										"sourceLabels": {
											Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"source_labels": {
											Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"targetLabel": {
											Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
											Type:        "string",
										},
										"target_label": {
											Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Type:        "string",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"podScrapeSelector": {
								Description: "PodScrapeSelector defines PodScrapes to be selected for target discovery. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"podSecurityPolicyName": {
								Description: "PodSecurityPolicyName - defines name for podSecurityPolicy in case of empty value, prefixedName will be used.",
								Type:        "string",
							},
							"port": {
								Description: "Port listen address",
								Type:        "string",
							},
							"priorityClassName": {
								Description: "PriorityClassName assigned to the Pods",
								Type:        "string",
							},
							"probeNamespaceSelector": {
								Description: "ProbeNamespaceSelector defines Namespaces to be selected for VMProbe discovery. Works in combination with Selector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"probeScrapeRelabelTemplate": {
								Description: "ProbeScrapeRelabelTemplate defines relabel config, that will be added to each VMProbeScrape. it's useful for adding specific labels to all targets",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"action": {
											Description: "Action to perform based on regex matching. Default is 'replace'",
											Type:        "string",
										},
										"if": {
											Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
											Type:        "string",
										},
										"labels": {
											AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
												Allows: true,
												Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
											},
											Description: "Labels is used together with Match for `action: graphite`",
											Type:        "object",
										},
										"match": {
											Description: "Match is used together with Labels for `action: graphite`",
											Type:        "string",
										},
										"modulus": {
											Description: "Modulus to take of the hash of the source label values.",
											Format:      "int64",
											Type:        "integer",
										},
										"regex": {
											Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
											Type:        "string",
										},
										"replacement": {
											Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
											Type:        "string",
										},
										"separator": {
											Description: "Separator placed between concatenated source label values. default is ';'.",
											Type:        "string",
										},
										"sourceLabels": {
											Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"source_labels": {
											Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"targetLabel": {
											Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
											Type:        "string",
										},
										"target_label": {
											Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Type:        "string",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"probeSelector": {
								Description: "ProbeSelector defines VMProbe to be selected for target probing. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"readinessGates": {
								Description: "ReadinessGates defines pod readiness gates",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "PodReadinessGate contains the reference to a pod condition",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{"conditionType": {
										Description: "ConditionType refers to a condition in the pod's condition list with matching type.",
										Type:        "string",
									}},
									Required: []string{"conditionType"},
									Type:     "object",
								}},
								Type: "array",
							},
							"readinessProbe": {
								Description:            "ReadinessProbe that will be added CRD pod",
								Type:                   "object",
								XPreserveUnknownFields: P(true),
							},
							"relabelConfig": {
								Description: "RelabelConfig ConfigMap with global relabel config -remoteWrite.relabelConfig This relabeling is applied to all the collected metrics before sending them to remote storage.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"key": {
										Description: "The key to select.",
										Type:        "string",
									},
									"name": {
										Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
										Type:        "string",
									},
									"optional": {
										Description: "Specify whether the ConfigMap or its key must be defined",
										Type:        "boolean",
									},
								},
								Required: []string{"key"},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"remoteWrite": {
								Description: "RemoteWrite list of victoria metrics /some other remote write system for vm it must looks like: http://victoria-metrics-single:8429/api/v1/write or for cluster different url https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmagent#splitting-data-streams-among-multiple-systems",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "VMAgentRemoteWriteSpec defines the remote storage configuration for VmAgent",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"basicAuth": {
											Description: "BasicAuth allow an endpoint to authenticate over basic authentication",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"password": {
													Description: "The secret in the service scrape namespace that contains the password for authentication. It must be at them same namespace as CRD",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"key": {
															Description: "The key of the secret to select from.  Must be a valid secret key.",
															Type:        "string",
														},
														"name": {
															Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
															Type:        "string",
														},
														"optional": {
															Description: "Specify whether the Secret or its key must be defined",
															Type:        "boolean",
														},
													},
													Required: []string{"key"},
													Type:     "object",
													XMapType: P("atomic"),
												},
												"password_file": {
													Description: "PasswordFile defines path to password file at disk",
													Type:        "string",
												},
												"username": {
													Description: "The secret in the service scrape namespace that contains the username for authentication. It must be at them same namespace as CRD",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"key": {
															Description: "The key of the secret to select from.  Must be a valid secret key.",
															Type:        "string",
														},
														"name": {
															Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
															Type:        "string",
														},
														"optional": {
															Description: "Specify whether the Secret or its key must be defined",
															Type:        "boolean",
														},
													},
													Required: []string{"key"},
													Type:     "object",
													XMapType: P("atomic"),
												},
											},
											Type: "object",
										},
										"bearerTokenSecret": {
											Description: "Optional bearer auth token to use for -remoteWrite.url",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "The key of the secret to select from.  Must be a valid secret key.",
													Type:        "string",
												},
												"name": {
													Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
													Type:        "string",
												},
												"optional": {
													Description: "Specify whether the Secret or its key must be defined",
													Type:        "boolean",
												},
											},
											Required: []string{"key"},
											Type:     "object",
											XMapType: P("atomic"),
										},
										"headers": {
											Description: "Headers allow configuring custom http headers Must be in form of semicolon separated header with value e.g. headerName: headerValue vmagent supports since 1.79.0 version",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"inlineUrlRelabelConfig": {
											Description: "InlineUrlRelabelConfig defines relabeling config for remoteWriteURL, it can be defined at crd spec.",
											Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"action": {
														Description: "Action to perform based on regex matching. Default is 'replace'",
														Type:        "string",
													},
													"if": {
														Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
														Type:        "string",
													},
													"labels": {
														AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
															Allows: true,
															Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
														},
														Description: "Labels is used together with Match for `action: graphite`",
														Type:        "object",
													},
													"match": {
														Description: "Match is used together with Labels for `action: graphite`",
														Type:        "string",
													},
													"modulus": {
														Description: "Modulus to take of the hash of the source label values.",
														Format:      "int64",
														Type:        "integer",
													},
													"regex": {
														Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
														Type:        "string",
													},
													"replacement": {
														Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
														Type:        "string",
													},
													"separator": {
														Description: "Separator placed between concatenated source label values. default is ';'.",
														Type:        "string",
													},
													"sourceLabels": {
														Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
														Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
														Type:        "array",
													},
													"source_labels": {
														Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
														Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
														Type:        "array",
													},
													"targetLabel": {
														Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
														Type:        "string",
													},
													"target_label": {
														Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
														Type:        "string",
													},
												},
												Type: "object",
											}},
											Type: "array",
										},
										"oauth2": {
											Description: "OAuth2 defines auth configuration",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"client_id": {
													Description: "The secret or configmap containing the OAuth2 client id",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"configMap": {
															Description: "ConfigMap containing data to use for the targets.",
															Properties: map[string]apiextensionsv1.JSONSchemaProps{
																"key": {
																	Description: "The key to select.",
																	Type:        "string",
																},
																"name": {
																	Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																	Type:        "string",
																},
																"optional": {
																	Description: "Specify whether the ConfigMap or its key must be defined",
																	Type:        "boolean",
																},
															},
															Required: []string{"key"},
															Type:     "object",
															XMapType: P("atomic"),
														},
														"secret": {
															Description: "Secret containing data to use for the targets.",
															Properties: map[string]apiextensionsv1.JSONSchemaProps{
																"key": {
																	Description: "The key of the secret to select from.  Must be a valid secret key.",
																	Type:        "string",
																},
																"name": {
																	Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																	Type:        "string",
																},
																"optional": {
																	Description: "Specify whether the Secret or its key must be defined",
																	Type:        "boolean",
																},
															},
															Required: []string{"key"},
															Type:     "object",
															XMapType: P("atomic"),
														},
													},
													Type: "object",
												},
												"client_secret": {
													Description: "The secret containing the OAuth2 client secret",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"key": {
															Description: "The key of the secret to select from.  Must be a valid secret key.",
															Type:        "string",
														},
														"name": {
															Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
															Type:        "string",
														},
														"optional": {
															Description: "Specify whether the Secret or its key must be defined",
															Type:        "boolean",
														},
													},
													Required: []string{"key"},
													Type:     "object",
													XMapType: P("atomic"),
												},
												"client_secret_file": {
													Description: "ClientSecretFile defines path for client secret file.",
													Type:        "string",
												},
												"endpoint_params": {
													AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
														Allows: true,
														Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
													},
													Description: "Parameters to append to the token URL",
													Type:        "object",
												},
												"scopes": {
													Description: "OAuth2 scopes used for the token request",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
												"token_url": {
													Description: "The URL to fetch the token from",
													MinLength:   P(int64(1)),
													Type:        "string",
												},
											},
											Required: []string{"client_id", "token_url"},
											Type:     "object",
										},
										"sendTimeout": {
											Description: "Timeout for sending a single block of data to -remoteWrite.url (default 1m0s)",
											Pattern:     "[0-9]+(ms|s|m|h)",
											Type:        "string",
										},
										"streamAggrConfig": {
											Description: "StreamAggrConfig defines stream aggregation configuration for VMAgent for -remoteWrite.url",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"dedupInterval": {
													Description: "Allows setting different de-duplication intervals per each configured remote storage",
													Type:        "string",
												},
												"keepInput": {
													Description: "Allows writing both raw and aggregate data",
													Type:        "boolean",
												},
												"rules": {
													Description: "Stream aggregation rules",
													Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
														Description: "StreamAggrRule defines the rule in stream aggregation config",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"by": {
																Description: `
By is an optional list of labels for grouping input series. 
 See also Without. 
 If neither By nor Without are set, then the Outputs are calculated individually per each input time series.
`,
																Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																Type:  "array",
															},
															"input_relabel_configs": {
																Description: "InputRelabelConfigs is an optional relabeling rules, which are applied on the input before aggregation.",
																Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
																	Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
																	Properties: map[string]apiextensionsv1.JSONSchemaProps{
																		"action": {
																			Description: "Action to perform based on regex matching. Default is 'replace'",
																			Type:        "string",
																		},
																		"if": {
																			Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
																			Type:        "string",
																		},
																		"labels": {
																			AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																				Allows: true,
																				Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
																			},
																			Description: "Labels is used together with Match for `action: graphite`",
																			Type:        "object",
																		},
																		"match": {
																			Description: "Match is used together with Labels for `action: graphite`",
																			Type:        "string",
																		},
																		"modulus": {
																			Description: "Modulus to take of the hash of the source label values.",
																			Format:      "int64",
																			Type:        "integer",
																		},
																		"regex": {
																			Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
																			Type:        "string",
																		},
																		"replacement": {
																			Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
																			Type:        "string",
																		},
																		"separator": {
																			Description: "Separator placed between concatenated source label values. default is ';'.",
																			Type:        "string",
																		},
																		"sourceLabels": {
																			Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
																			Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																			Type:        "array",
																		},
																		"source_labels": {
																			Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
																			Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																			Type:        "array",
																		},
																		"targetLabel": {
																			Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
																			Type:        "string",
																		},
																		"target_label": {
																			Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
																			Type:        "string",
																		},
																	},
																	Type: "object",
																}},
																Type: "array",
															},
															"interval": {
																Description: "Interval is the interval between aggregations.",
																Type:        "string",
															},
															"match": {
																Description: `
Match is a label selector for filtering time series for the given selector. 
 If the match isn't set, then all the input time series are processed.
`,
																Type: "string",
															},
															"output_relabel_configs": {
																Description: "OutputRelabelConfigs is an optional relabeling rules, which are applied on the aggregated output before being sent to remote storage.",
																Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
																	Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
																	Properties: map[string]apiextensionsv1.JSONSchemaProps{
																		"action": {
																			Description: "Action to perform based on regex matching. Default is 'replace'",
																			Type:        "string",
																		},
																		"if": {
																			Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
																			Type:        "string",
																		},
																		"labels": {
																			AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																				Allows: true,
																				Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
																			},
																			Description: "Labels is used together with Match for `action: graphite`",
																			Type:        "object",
																		},
																		"match": {
																			Description: "Match is used together with Labels for `action: graphite`",
																			Type:        "string",
																		},
																		"modulus": {
																			Description: "Modulus to take of the hash of the source label values.",
																			Format:      "int64",
																			Type:        "integer",
																		},
																		"regex": {
																			Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
																			Type:        "string",
																		},
																		"replacement": {
																			Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
																			Type:        "string",
																		},
																		"separator": {
																			Description: "Separator placed between concatenated source label values. default is ';'.",
																			Type:        "string",
																		},
																		"sourceLabels": {
																			Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
																			Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																			Type:        "array",
																		},
																		"source_labels": {
																			Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
																			Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																			Type:        "array",
																		},
																		"targetLabel": {
																			Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
																			Type:        "string",
																		},
																		"target_label": {
																			Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
																			Type:        "string",
																		},
																	},
																	Type: "object",
																}},
																Type: "array",
															},
															"outputs": {
																Description: `
Outputs is a list of output aggregate functions to produce. 
 The following names are allowed: 
 - total - aggregates input counters - increase - counts the increase over input counters - count_series - counts the input series - count_samples - counts the input samples - sum_samples - sums the input samples - last - the last biggest sample value - min - the minimum sample value - max - the maximum sample value - avg - the average value across all the samples - stddev - standard deviation across all the samples - stdvar - standard variance across all the samples - histogram_bucket - creates VictoriaMetrics histogram for input samples - quantiles(phi1, ..., phiN) - quantiles' estimation for phi in the range [0..1] 
 The output time series will have the following names: 
 input_name:aggr_<interval>_<output>
`,
																Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																Type:  "array",
															},
															"without": {
																Description: `
Without is an optional list of labels, which must be excluded when grouping input series. 
 See also By. 
 If neither By nor Without are set, then the Outputs are calculated individually per each input time series.
`,
																Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																Type:  "array",
															},
														},
														Required: []string{"interval", "outputs"},
														Type:     "object",
													}},
													Type: "array",
												},
											},
											Required: []string{"rules"},
											Type:     "object",
										},
										"tlsConfig": {
											Description: "TLSConfig describes tls configuration for remote write target",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"ca": {
													Description: "Stuct containing the CA cert to use for the targets.",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"configMap": {
															Description: "ConfigMap containing data to use for the targets.",
															Properties: map[string]apiextensionsv1.JSONSchemaProps{
																"key": {
																	Description: "The key to select.",
																	Type:        "string",
																},
																"name": {
																	Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																	Type:        "string",
																},
																"optional": {
																	Description: "Specify whether the ConfigMap or its key must be defined",
																	Type:        "boolean",
																},
															},
															Required: []string{"key"},
															Type:     "object",
															XMapType: P("atomic"),
														},
														"secret": {
															Description: "Secret containing data to use for the targets.",
															Properties: map[string]apiextensionsv1.JSONSchemaProps{
																"key": {
																	Description: "The key of the secret to select from.  Must be a valid secret key.",
																	Type:        "string",
																},
																"name": {
																	Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																	Type:        "string",
																},
																"optional": {
																	Description: "Specify whether the Secret or its key must be defined",
																	Type:        "boolean",
																},
															},
															Required: []string{"key"},
															Type:     "object",
															XMapType: P("atomic"),
														},
													},
													Type: "object",
												},
												"caFile": {
													Description: "Path to the CA cert in the container to use for the targets.",
													Type:        "string",
												},
												"cert": {
													Description: "Struct containing the client cert file for the targets.",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"configMap": {
															Description: "ConfigMap containing data to use for the targets.",
															Properties: map[string]apiextensionsv1.JSONSchemaProps{
																"key": {
																	Description: "The key to select.",
																	Type:        "string",
																},
																"name": {
																	Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																	Type:        "string",
																},
																"optional": {
																	Description: "Specify whether the ConfigMap or its key must be defined",
																	Type:        "boolean",
																},
															},
															Required: []string{"key"},
															Type:     "object",
															XMapType: P("atomic"),
														},
														"secret": {
															Description: "Secret containing data to use for the targets.",
															Properties: map[string]apiextensionsv1.JSONSchemaProps{
																"key": {
																	Description: "The key of the secret to select from.  Must be a valid secret key.",
																	Type:        "string",
																},
																"name": {
																	Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
																	Type:        "string",
																},
																"optional": {
																	Description: "Specify whether the Secret or its key must be defined",
																	Type:        "boolean",
																},
															},
															Required: []string{"key"},
															Type:     "object",
															XMapType: P("atomic"),
														},
													},
													Type: "object",
												},
												"certFile": {
													Description: "Path to the client cert file in the container for the targets.",
													Type:        "string",
												},
												"insecureSkipVerify": {
													Description: "Disable target certificate validation.",
													Type:        "boolean",
												},
												"keyFile": {
													Description: "Path to the client key file in the container for the targets.",
													Type:        "string",
												},
												"keySecret": {
													Description: "Secret containing the client key file for the targets.",
													Properties: map[string]apiextensionsv1.JSONSchemaProps{
														"key": {
															Description: "The key of the secret to select from.  Must be a valid secret key.",
															Type:        "string",
														},
														"name": {
															Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
															Type:        "string",
														},
														"optional": {
															Description: "Specify whether the Secret or its key must be defined",
															Type:        "boolean",
														},
													},
													Required: []string{"key"},
													Type:     "object",
													XMapType: P("atomic"),
												},
												"serverName": {
													Description: "Used to verify the hostname for the targets.",
													Type:        "string",
												},
											},
											Type: "object",
										},
										"url": {
											Description: "URL of the endpoint to send samples to.",
											Type:        "string",
										},
										"urlRelabelConfig": {
											Description: "ConfigMap with relabeling config which is applied to metrics before sending them to the corresponding -remoteWrite.url",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "The key to select.",
													Type:        "string",
												},
												"name": {
													Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?",
													Type:        "string",
												},
												"optional": {
													Description: "Specify whether the ConfigMap or its key must be defined",
													Type:        "boolean",
												},
											},
											Required: []string{"key"},
											Type:     "object",
											XMapType: P("atomic"),
										},
									},
									Required: []string{"url"},
									Type:     "object",
								}},
								Type: "array",
							},
							"remoteWriteSettings": {
								Description: "RemoteWriteSettings defines global settings for all remoteWrite urls.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"flushInterval": {
										Description: "Interval for flushing the data to remote storage. (default 1s)",
										Pattern:     "[0-9]+(ms|s|m|h)",
										Type:        "string",
									},
									"label": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "Optional labels in the form 'name=value' to add to all the metrics before sending them",
										Type:        "object",
									},
									"maxBlockSize": {
										Description: "The maximum size in bytes of unpacked request to send to remote storage",
										Format:      "int32",
										Type:        "integer",
									},
									"maxDiskUsagePerURL": {
										Description: "The maximum file-based buffer size in bytes at -remoteWrite.tmpDataPath",
										Format:      "int64",
										Type:        "integer",
									},
									"queues": {
										Description: "The number of concurrent queues",
										Format:      "int32",
										Type:        "integer",
									},
									"showURL": {
										Description: "Whether to show -remoteWrite.url in the exported metrics. It is hidden by default, since it can contain sensitive auth info",
										Type:        "boolean",
									},
									"tmpDataPath": {
										Description: "Path to directory where temporary data for remote write component is stored (default vmagent-remotewrite-data)",
										Type:        "string",
									},
									"useMultiTenantMode": {
										Description: "Configures vmagent in multi-tenant mode with direct cluster support docs https://docs.victoriametrics.com/vmagent.html#multitenancy it's global setting and affects all remote storage configurations",
										Type:        "boolean",
									},
								},
								Type: "object",
							},
							"replicaCount": {
								Description: "ReplicaCount is the expected size of the VMAgent cluster. The controller will eventually make the size of the running cluster equal to the expected size. NOTE enable VMSingle deduplication for replica usage",
								Format:      "int32",
								Type:        "integer",
							},
							"resources": {
								Description: "Resources container resource request and limits, https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ if not specified - default setting will be used",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"limits": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{
												AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
												Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
												XIntOrString: true,
											},
										},
										Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
										Type:        "object",
									},
									"requests": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{
												AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
												Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
												XIntOrString: true,
											},
										},
										Description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
										Type:        "object",
									},
								},
								Type: "object",
							},
							"rollingUpdate": {
								Description: "RollingUpdate - overrides deployment update params.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"maxSurge": {
										AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
										Description:  "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.",
										XIntOrString: true,
									},
									"maxUnavailable": {
										AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
										Description:  "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.",
										XIntOrString: true,
									},
								},
								Type: "object",
							},
							"runtimeClassName": {
								Description: "RuntimeClassName - defines runtime class for kubernetes pod. https://kubernetes.io/docs/concepts/containers/runtime-class/",
								Type:        "string",
							},
							"schedulerName": {
								Description: "SchedulerName - defines kubernetes scheduler name",
								Type:        "string",
							},
							"scrapeInterval": {
								Description: "ScrapeInterval defines how often scrape targets by default",
								Pattern:     "[0-9]+(ms|s|m|h)",
								Type:        "string",
							},
							"scrapeTimeout": {
								Description: "ScrapeTimeout defines global timeout for targets scrape",
								Pattern:     "[0-9]+(ms|s|m|h)",
								Type:        "string",
							},
							"secrets": {
								Description: "Secrets is a list of Secrets in the same namespace as the vmagent object, which shall be mounted into the vmagent Pods. will be mounted at path /etc/vm/secrets",
								Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
								Type:        "array",
							},
							"securityContext": {
								Description:            "SecurityContext holds pod-level security attributes and common container settings. This defaults to the default PodSecurityContext.",
								Type:                   "object",
								XPreserveUnknownFields: P(true),
							},
							"selectAllByDefault": {
								Description: "SelectAllByDefault changes default behavior for empty CRD selectors, such ServiceScrapeSelector. with selectAllScrapes: true and empty serviceScrapeSelector and ServiceScrapeNamespaceSelector Operator selects all exist serviceScrapes with selectAllScrapes: false - selects nothing",
								Type:        "boolean",
							},
							"serviceAccountName": {
								Description: "ServiceAccountName is the name of the ServiceAccount to use to run the VMAgent Pods.",
								Type:        "string",
							},
							"serviceScrapeNamespaceSelector": {
								Description: "ServiceScrapeNamespaceSelector Namespaces to be selected for VMServiceScrape discovery. Works in combination with Selector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"serviceScrapeRelabelTemplate": {
								Description: "ServiceScrapeRelabelTemplate defines relabel config, that will be added to each VMServiceScrape. it's useful for adding specific labels to all targets",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"action": {
											Description: "Action to perform based on regex matching. Default is 'replace'",
											Type:        "string",
										},
										"if": {
											Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
											Type:        "string",
										},
										"labels": {
											AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
												Allows: true,
												Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
											},
											Description: "Labels is used together with Match for `action: graphite`",
											Type:        "object",
										},
										"match": {
											Description: "Match is used together with Labels for `action: graphite`",
											Type:        "string",
										},
										"modulus": {
											Description: "Modulus to take of the hash of the source label values.",
											Format:      "int64",
											Type:        "integer",
										},
										"regex": {
											Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
											Type:        "string",
										},
										"replacement": {
											Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
											Type:        "string",
										},
										"separator": {
											Description: "Separator placed between concatenated source label values. default is ';'.",
											Type:        "string",
										},
										"sourceLabels": {
											Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"source_labels": {
											Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"targetLabel": {
											Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
											Type:        "string",
										},
										"target_label": {
											Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Type:        "string",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"serviceScrapeSelector": {
								Description: "ServiceScrapeSelector defines ServiceScrapes to be selected for target discovery. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"serviceScrapeSpec": {
								Description:            "ServiceScrapeSpec that will be added to vmselect VMServiceScrape spec",
								Required:               []string{"endpoints"},
								Type:                   "object",
								XPreserveUnknownFields: P(true),
							},
							"serviceSpec": {
								Description: "ServiceSpec that will be added to vmagent service spec",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"metadata": {
										Description: "EmbeddedObjectMetadata defines objectMeta for additional service.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"annotations": {
												AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
													Allows: true,
													Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
												},
												Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations",
												Type:        "object",
											},
											"labels": {
												AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
													Allows: true,
													Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
												},
												Description: "Labels Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
												Type:        "object",
											},
											"name": {
												Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
												Type:        "string",
											},
										},
										Type: "object",
									},
									"spec": {
										Description:            "ServiceSpec describes the attributes that a user creates on a service. More info: https://kubernetes.io/docs/concepts/services-networking/service/",
										Type:                   "object",
										XPreserveUnknownFields: P(true),
									},
								},
								Required: []string{"spec"},
								Type:     "object",
							},
							"shardCount": {
								Description: "ShardCount - numbers of shards of VMAgent in this case operator will use 1 deployment/sts per shard with replicas count according to spec.replicas https://victoriametrics.github.io/vmagent.html#scraping-big-number-of-targets",
								Type:        "integer",
							},
							"startupProbe": {
								Description:            "StartupProbe that will be added to CRD pod",
								Type:                   "object",
								XPreserveUnknownFields: P(true),
							},
							"statefulMode": {
								Description: "StatefulMode enables StatefulSet for `VMAgent` instead of Deployment it allows using persistent storage for vmagent's persistentQueue",
								Type:        "boolean",
							},
							"statefulRollingUpdateStrategy": {
								Description: "StatefulRollingUpdateStrategy allows configuration for strategyType set it to RollingUpdate for disabling operator statefulSet rollingUpdate",
								Type:        "string",
							},
							"statefulStorage": {
								Description: "StatefulStorage configures storage for StatefulSet",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"disableMountSubPath": {
										Description: "Deprecated: subPath usage will be disabled by default in a future release, this option will become unnecessary. DisableMountSubPath allows to remove any subPath usage in volume mounts.",
										Type:        "boolean",
									},
									"emptyDir": {
										Description: "EmptyDirVolumeSource to be used by the Prometheus StatefulSets. If specified, used in place of any volumeClaimTemplate. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"medium": {
												Description: "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir",
												Type:        "string",
											},
											"sizeLimit": {
												AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
												Description:  "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir",
												Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
												XIntOrString: true,
											},
										},
										Type: "object",
									},
									"volumeClaimTemplate": {
										Description: "A PVC spec to be used by the VMAlertManager StatefulSets.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"apiVersion": {
												Description: "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",
												Type:        "string",
											},
											"kind": {
												Description: "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",
												Type:        "string",
											},
											"metadata": {
												Description: "EmbeddedMetadata contains metadata relevant to an EmbeddedResource.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"annotations": {
														AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
															Allows: true,
															Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
														},
														Description: "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations",
														Type:        "object",
													},
													"labels": {
														AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
															Allows: true,
															Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
														},
														Description: "Labels Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
														Type:        "object",
													},
													"name": {
														Description: "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
														Type:        "string",
													},
												},
												Type: "object",
											},
											"spec": {
												Description: "Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"accessModes": {
														Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
														Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
														Type:        "array",
													},
													"dataSource": {
														Description: "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"apiGroup": {
																Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
																Type:        "string",
															},
															"kind": {
																Description: "Kind is the type of resource being referenced",
																Type:        "string",
															},
															"name": {
																Description: "Name is the name of resource being referenced",
																Type:        "string",
															},
														},
														Required: []string{"kind", "name"},
														Type:     "object",
														XMapType: P("atomic"),
													},
													"dataSourceRef": {
														Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"apiGroup": {
																Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
																Type:        "string",
															},
															"kind": {
																Description: "Kind is the type of resource being referenced",
																Type:        "string",
															},
															"name": {
																Description: "Name is the name of resource being referenced",
																Type:        "string",
															},
														},
														Required: []string{"kind", "name"},
														Type:     "object",
														XMapType: P("atomic"),
													},
													"resources": {
														Description: "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"limits": {
																AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																	Allows: true,
																	Schema: &apiextensionsv1.JSONSchemaProps{
																		AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
																		Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
																		XIntOrString: true,
																	},
																},
																Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
																Type:        "object",
															},
															"requests": {
																AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																	Allows: true,
																	Schema: &apiextensionsv1.JSONSchemaProps{
																		AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
																		Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
																		XIntOrString: true,
																	},
																},
																Description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
																Type:        "object",
															},
														},
														Type: "object",
													},
													"selector": {
														Description: "selector is a label query over volumes to consider for binding.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"matchExpressions": {
																Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
																Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
																	Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
																	Properties: map[string]apiextensionsv1.JSONSchemaProps{
																		"key": {
																			Description: "key is the label key that the selector applies to.",
																			Type:        "string",
																		},
																		"operator": {
																			Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
																			Type:        "string",
																		},
																		"values": {
																			Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
																			Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
																			Type:        "array",
																		},
																	},
																	Required: []string{"key", "operator"},
																	Type:     "object",
																}},
																Type: "array",
															},
															"matchLabels": {
																AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																	Allows: true,
																	Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
																},
																Description: "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.",
																Type:        "object",
															},
														},
														Type:     "object",
														XMapType: P("atomic"),
													},
													"storageClassName": {
														Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
														Type:        "string",
													},
													"volumeMode": {
														Description: "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
														Type:        "string",
													},
													"volumeName": {
														Description: "volumeName is the binding reference to the PersistentVolume backing this claim.",
														Type:        "string",
													},
												},
												Type: "object",
											},
											"status": {
												Description: "Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"accessModes": {
														Description: "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
														Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
														Type:        "array",
													},
													"allocatedResources": {
														AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
															Allows: true,
															Schema: &apiextensionsv1.JSONSchemaProps{
																AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
																Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
																XIntOrString: true,
															},
														},
														Description: "allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
														Type:        "object",
													},
													"capacity": {
														AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
															Allows: true,
															Schema: &apiextensionsv1.JSONSchemaProps{
																AnyOf:        []apiextensionsv1.JSONSchemaProps{{Type: "integer"}, {Type: "string"}},
																Pattern:      "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
																XIntOrString: true,
															},
														},
														Description: "capacity represents the actual resources of the underlying volume.",
														Type:        "object",
													},
													"conditions": {
														Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.",
														Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
															Description: "PersistentVolumeClaimCondition contails details about state of pvc",
															Properties: map[string]apiextensionsv1.JSONSchemaProps{
																"lastProbeTime": {
																	Description: "lastProbeTime is the time we probed the condition.",
																	Format:      "date-time",
																	Type:        "string",
																},
																"lastTransitionTime": {
																	Description: "lastTransitionTime is the time the condition transitioned from one status to another.",
																	Format:      "date-time",
																	Type:        "string",
																},
																"message": {
																	Description: "message is the human-readable message indicating details about last transition.",
																	Type:        "string",
																},
																"reason": {
																	Description: "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.",
																	Type:        "string",
																},
																"status": {Type: "string"},
																"type": {
																	Description: "PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type",
																	Type:        "string",
																},
															},
															Required: []string{"status", "type"},
															Type:     "object",
														}},
														Type: "array",
													},
													"phase": {
														Description: "phase represents the current phase of PersistentVolumeClaim.",
														Type:        "string",
													},
													"resizeStatus": {
														Description: "resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.",
														Type:        "string",
													},
												},
												Type: "object",
											},
										},
										Type: "object",
									},
								},
								Type: "object",
							},
							"staticScrapeNamespaceSelector": {
								Description: "StaticScrapeNamespaceSelector defines Namespaces to be selected for VMStaticScrape discovery. Works in combination with NamespaceSelector. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces. If both nil - behaviour controlled by selectAllByDefault",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"staticScrapeRelabelTemplate": {
								Description: "StaticScrapeRelabelTemplate defines relabel config, that will be added to each VMStaticScrape. it's useful for adding specific labels to all targets",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section of configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"action": {
											Description: "Action to perform based on regex matching. Default is 'replace'",
											Type:        "string",
										},
										"if": {
											Description: "If represents metricsQL match expression: '{__name__=~\"foo_.*\"}'",
											Type:        "string",
										},
										"labels": {
											AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
												Allows: true,
												Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
											},
											Description: "Labels is used together with Match for `action: graphite`",
											Type:        "object",
										},
										"match": {
											Description: "Match is used together with Labels for `action: graphite`",
											Type:        "string",
										},
										"modulus": {
											Description: "Modulus to take of the hash of the source label values.",
											Format:      "int64",
											Type:        "integer",
										},
										"regex": {
											Description: "Regular expression against which the extracted value is matched. Default is '(.*)'",
											Type:        "string",
										},
										"replacement": {
											Description: "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'",
											Type:        "string",
										},
										"separator": {
											Description: "Separator placed between concatenated source label values. default is ';'.",
											Type:        "string",
										},
										"sourceLabels": {
											Description: "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"source_labels": {
											Description: "UnderScoreSourceLabels - additional form of source labels source_labels for compatibility with original relabel config. if set  both sourceLabels and source_labels, sourceLabels has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
											Type:        "array",
										},
										"targetLabel": {
											Description: "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.",
											Type:        "string",
										},
										"target_label": {
											Description: "UnderScoreTargetLabel - additional form of target label - target_label for compatibility with original relabel config. if set  both targetLabel and target_label, targetLabel has priority. for details https://github.com/VictoriaMetrics/operator/issues/131",
											Type:        "string",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"staticScrapeSelector": {
								Description: "StaticScrapeSelector defines PodScrapes to be selected for target discovery. Works in combination with NamespaceSelector. If both nil - match everything. NamespaceSelector nil - only objects at VMAgent namespace. Selector nil - only objects at NamespaceSelector namespaces.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"matchExpressions": {
										Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
											Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
											Properties: map[string]apiextensionsv1.JSONSchemaProps{
												"key": {
													Description: "key is the label key that the selector applies to.",
													Type:        "string",
												},
												"operator": {
													Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
													Type:        "string",
												},
												"values": {
													Description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
													Items:       &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"}},
													Type:        "array",
												},
											},
											Required: []string{"key", "operator"},
											Type:     "object",
										}},
										Type: "array",
									},
									"matchLabels": {
										AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
											Allows: true,
											Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
										},
										Description: "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.",
										Type:        "object",
									},
								},
								Type:     "object",
								XMapType: P("atomic"),
							},
							"terminationGracePeriodSeconds": {
								Description: "TerminationGracePeriodSeconds period for container graceful termination",
								Format:      "int64",
								Type:        "integer",
							},
							"tolerations": {
								Description: "Tolerations If specified, the pod's tolerations.",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"effect": {
											Description: "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.",
											Type:        "string",
										},
										"key": {
											Description: "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.",
											Type:        "string",
										},
										"operator": {
											Description: "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.",
											Type:        "string",
										},
										"tolerationSeconds": {
											Description: "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.",
											Format:      "int64",
											Type:        "integer",
										},
										"value": {
											Description: "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.",
											Type:        "string",
										},
									},
									Type: "object",
								}},
								Type: "array",
							},
							"topologySpreadConstraints": {
								Description: "TopologySpreadConstraints embedded kubernetes pod configuration option, controls how pods are spread across your cluster among failure-domains such as regions, zones, nodes, and other user-defined topology domains https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description:            "TopologySpreadConstraint specifies how to spread matching pods among the given topology.",
									Required:               []string{"maxSkew", "topologyKey", "whenUnsatisfiable"},
									Type:                   "object",
									XPreserveUnknownFields: P(true),
								}},
								Type: "array",
							},
							"updateStrategy": {
								Description: "UpdateStrategy - overrides default update strategy. works only for deployments, statefulset always use OnDelete.",
								Enum:        []apiextensionsv1.JSON{{Raw: []byte("\"Recreate\"")}, {Raw: []byte("\"RollingUpdate\"")}},
								Type:        "string",
							},
							"vmAgentExternalLabelName": {
								Description: "VMAgentExternalLabelName Name of vmAgent external label used to denote vmAgent instance name. Defaults to the value of `prometheus`. External label will _not_ be added when value is set to empty string (`\"\"`).",
								Type:        "string",
							},
							"volumeMounts": {
								Description: "VolumeMounts allows configuration of additional VolumeMounts on the output deploy definition. VolumeMounts specified will be appended to other VolumeMounts in the vmagent container, that are generated as a result of StorageSpec objects.",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description: "VolumeMount describes a mounting of a Volume within a container.",
									Properties: map[string]apiextensionsv1.JSONSchemaProps{
										"mountPath": {
											Description: "Path within the container at which the volume should be mounted.  Must not contain ':'.",
											Type:        "string",
										},
										"mountPropagation": {
											Description: "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.",
											Type:        "string",
										},
										"name": {
											Description: "This must match the Name of a Volume.",
											Type:        "string",
										},
										"readOnly": {
											Description: "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.",
											Type:        "boolean",
										},
										"subPath": {
											Description: "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
											Type:        "string",
										},
										"subPathExpr": {
											Description: "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.",
											Type:        "string",
										},
									},
									Required: []string{"mountPath", "name"},
									Type:     "object",
								}},
								Type: "array",
							},
							"volumes": {
								Description: "Volumes allows configuration of additional volumes on the output deploy definition. Volumes specified will be appended to other volumes that are generated as a result of StorageSpec objects.",
								Items: &apiextensionsv1.JSONSchemaPropsOrArray{Schema: &apiextensionsv1.JSONSchemaProps{
									Description:            "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
									Required:               []string{"name"},
									Type:                   "object",
									XPreserveUnknownFields: P(true),
								}},
								Type: "array",
							},
						},
						Type: "object",
					},
					"status": {
						Description: "VmAgentStatus defines the observed state of VmAgent",
						Properties: map[string]apiextensionsv1.JSONSchemaProps{
							"availableReplicas": {
								Description: "AvailableReplicas Total number of available pods (ready for at least minReadySeconds) targeted by this VMAlert cluster.",
								Format:      "int32",
								Type:        "integer",
							},
							"replicas": {
								Description: "ReplicaCount Total number of pods targeted by this VMAgent",
								Format:      "int32",
								Type:        "integer",
							},
							"selector": {
								Description: "Selector string form of label value set for autoscaling",
								Type:        "string",
							},
							"shards": {
								Description: "Shards represents total number of vmagent deployments with uniq scrape targets",
								Format:      "int32",
								Type:        "integer",
							},
							"unavailableReplicas": {
								Description: "UnavailableReplicas Total number of unavailable pods targeted by this VMAgent cluster.",
								Format:      "int32",
								Type:        "integer",
							},
							"updatedReplicas": {
								Description: "UpdatedReplicas Total number of non-terminated pods targeted by this VMAgent cluster that have the desired version spec.",
								Format:      "int32",
								Type:        "integer",
							},
						},
						Required: []string{"availableReplicas", "replicas", "selector", "shards", "unavailableReplicas", "updatedReplicas"},
						Type:     "object",
					},
				},
				Type: "object",
			}},
			Served:  true,
			Storage: true,
			Subresources: &apiextensionsv1.CustomResourceSubresources{Scale: &apiextensionsv1.CustomResourceSubresourceScale{
				LabelSelectorPath:  P(".status.selector"),
				SpecReplicasPath:   ".spec.shardCount",
				StatusReplicasPath: ".status.shards",
			}},
		}},
	},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "apiextensions.k8s.io/v1",
		Kind:       "CustomResourceDefinition",
	},
}
