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

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

package crd

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

var ExternalsecretsCrd = &apiextensionsv1.CustomResourceDefinition{
	ObjectMeta: metav1.ObjectMeta{
		Annotations: map[string]string{"controller-gen.kubebuilder.io/version": "v0.11.1"},
		Name:        "externalsecrets.external-secrets.io",
	},
	Spec: apiextensionsv1.CustomResourceDefinitionSpec{
		Conversion: &apiextensionsv1.CustomResourceConversion{
			Strategy: apiextensionsv1.ConversionStrategyType("Webhook"),
			Webhook: &apiextensionsv1.WebhookConversion{
				ClientConfig: &apiextensionsv1.WebhookClientConfig{
					Service: &apiextensionsv1.ServiceReference{
						Name:      "external-secrets-webhook",
						Namespace: "external-secrets",
						Path:      P("/convert"),
					},
				},
				ConversionReviewVersions: []string{"v1"},
			},
		},
		Group: "external-secrets.io",
		Names: apiextensionsv1.CustomResourceDefinitionNames{
			Categories: []string{"externalsecrets"},
			Kind:       "ExternalSecret",
			ListKind:   "ExternalSecretList",
			Plural:     "externalsecrets",
			ShortNames: []string{"es"},
			Singular:   "externalsecret",
		},
		Scope: apiextensionsv1.ResourceScope("Namespaced"),
		Versions: []apiextensionsv1.CustomResourceDefinitionVersion{
			{
				AdditionalPrinterColumns: []apiextensionsv1.CustomResourceColumnDefinition{
					{
						JSONPath: ".spec.secretStoreRef.name",
						Name:     "Store",
						Type:     "string",
					}, {
						JSONPath: ".spec.refreshInterval",
						Name:     "Refresh Interval",
						Type:     "string",
					}, {
						JSONPath: ".status.conditions[?(@.type==\"Ready\")].reason",
						Name:     "Status",
						Type:     "string",
					},
				},
				Deprecated: true,
				Name:       "v1alpha1",
				Schema: &apiextensionsv1.CustomResourceValidation{
					OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{
						Description: "ExternalSecret is the Schema for the external-secrets API.",
						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: "ExternalSecretSpec defines the desired state of ExternalSecret.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"data": {
										Description: "Data defines the connection between the Kubernetes Secret keys and the Provider data",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.<key>) and the Provider data.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"remoteRef": {
														Description: "ExternalSecretDataRemoteRef defines Provider data location.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"conversionStrategy": {
																Default: &apiextensionsv1.JSON{
																	Raw: []uint8{
																		uint8(0x22),
																		uint8(0x44),
																		uint8(0x65),
																		uint8(0x66),
																		uint8(0x61),
																		uint8(0x75),
																		uint8(0x6c),
																		uint8(0x74),
																		uint8(0x22),
																	},
																},
																Description: "Used to define a conversion Strategy",
																Type:        "string",
															},
															"key": {
																Description: "Key is the key used in the Provider, mandatory",
																Type:        "string",
															},
															"property": {
																Description: "Used to select a specific property of the Provider value (if a map), if supported",
																Type:        "string",
															},
															"version": {
																Description: "Used to select a specific version of the Provider value, if supported",
																Type:        "string",
															},
														},
														Required: []string{"key"},
														Type:     "object",
													},
													"secretKey": {Type: "string"},
												},
												Required: []string{
													"remoteRef",
													"secretKey",
												},
												Type: "object",
											},
										},
										Type: "array",
									},
									"dataFrom": {
										Description: "DataFrom is used to fetch all properties from a specific Provider data If multiple entries are specified, the Secret keys are merged in the specified order",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "ExternalSecretDataRemoteRef defines Provider data location.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"conversionStrategy": {
														Default: &apiextensionsv1.JSON{
															Raw: []uint8{
																uint8(0x22),
																uint8(0x44),
																uint8(0x65),
																uint8(0x66),
																uint8(0x61),
																uint8(0x75),
																uint8(0x6c),
																uint8(0x74),
																uint8(0x22),
															},
														},
														Description: "Used to define a conversion Strategy",
														Type:        "string",
													},
													"key": {
														Description: "Key is the key used in the Provider, mandatory",
														Type:        "string",
													},
													"property": {
														Description: "Used to select a specific property of the Provider value (if a map), if supported",
														Type:        "string",
													},
													"version": {
														Description: "Used to select a specific version of the Provider value, if supported",
														Type:        "string",
													},
												},
												Required: []string{"key"},
												Type:     "object",
											},
										},
										Type: "array",
									},
									"refreshInterval": {
										Default: &apiextensionsv1.JSON{
											Raw: []uint8{
												uint8(0x22),
												uint8(0x31),
												uint8(0x68),
												uint8(0x22),
											},
										},
										Description: "RefreshInterval is the amount of time before the values are read again from the SecretStore provider Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\" May be set to zero to fetch and create it once. Defaults to 1h.",
										Type:        "string",
									},
									"secretStoreRef": {
										Description: "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"kind": {
												Description: "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`",
												Type:        "string",
											},
											"name": {
												Description: "Name of the SecretStore resource",
												Type:        "string",
											},
										},
										Required: []string{"name"},
										Type:     "object",
									},
									"target": {
										Description: "ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"creationPolicy": {
												Default: &apiextensionsv1.JSON{
													Raw: []uint8{
														uint8(0x22),
														uint8(0x4f),
														uint8(0x77),
														uint8(0x6e),
														uint8(0x65),
														uint8(0x72),
														uint8(0x22),
													},
												},
												Description: "CreationPolicy defines rules on how to create the resulting Secret Defaults to 'Owner'",
												Type:        "string",
											},
											"immutable": {
												Description: "Immutable defines if the final secret will be immutable",
												Type:        "boolean",
											},
											"name": {
												Description: "Name defines the name of the Secret resource to be managed This field is immutable Defaults to the .metadata.name of the ExternalSecret resource",
												Type:        "string",
											},
											"template": {
												Description: "Template defines a blueprint for the created Secret resource.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"data": {
														AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
															Allows: true,
															Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
														},
														Type: "object",
													},
													"engineVersion": {
														Default: &apiextensionsv1.JSON{
															Raw: []uint8{
																uint8(0x22),
																uint8(0x76),
																uint8(0x31),
																uint8(0x22),
															},
														},
														Description: "EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[].",
														Type:        "string",
													},
													"metadata": {
														Description: "ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"annotations": {
																AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																	Allows: true,
																	Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
																},
																Type: "object",
															},
															"labels": {
																AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																	Allows: true,
																	Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
																},
																Type: "object",
															},
														},
														Type: "object",
													},
													"templateFrom": {
														Items: &apiextensionsv1.JSONSchemaPropsOrArray{
															Schema: &apiextensionsv1.JSONSchemaProps{
																MaxProperties: P(int64(1)),
																MinProperties: P(int64(1)),
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"configMap": {
																		Properties: map[string]apiextensionsv1.JSONSchemaProps{
																			"items": {
																				Items: &apiextensionsv1.JSONSchemaPropsOrArray{
																					Schema: &apiextensionsv1.JSONSchemaProps{
																						Properties: map[string]apiextensionsv1.JSONSchemaProps{"key": {Type: "string"}},
																						Required:   []string{"key"},
																						Type:       "object",
																					},
																				},
																				Type: "array",
																			},
																			"name": {Type: "string"},
																		},
																		Required: []string{
																			"items",
																			"name",
																		},
																		Type: "object",
																	},
																	"secret": {
																		Properties: map[string]apiextensionsv1.JSONSchemaProps{
																			"items": {
																				Items: &apiextensionsv1.JSONSchemaPropsOrArray{
																					Schema: &apiextensionsv1.JSONSchemaProps{
																						Properties: map[string]apiextensionsv1.JSONSchemaProps{"key": {Type: "string"}},
																						Required:   []string{"key"},
																						Type:       "object",
																					},
																				},
																				Type: "array",
																			},
																			"name": {Type: "string"},
																		},
																		Required: []string{
																			"items",
																			"name",
																		},
																		Type: "object",
																	},
																},
																Type: "object",
															},
														},
														Type: "array",
													},
													"type": {Type: "string"},
												},
												Type: "object",
											},
										},
										Type: "object",
									},
								},
								Required: []string{"secretStoreRef", "target"},
								Type:     "object",
							},
							"status": {
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"conditions": {
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"lastTransitionTime": {
														Format: "date-time",
														Type:   "string",
													},
													"message": {Type: "string"},
													"reason":  {Type: "string"},
													"status":  {Type: "string"},
													"type":    {Type: "string"},
												},
												Required: []string{
													"status",
													"type",
												},
												Type: "object",
											},
										},
										Type: "array",
									},
									"refreshTime": {
										Description: "refreshTime is the time and date the external secret was fetched and the target secret updated",
										Format:      "date-time",
										Nullable:    true,
										Type:        "string",
									},
									"syncedResourceVersion": {
										Description: "SyncedResourceVersion keeps track of the last synced version",
										Type:        "string",
									},
								},
								Type: "object",
							},
						},
						Type: "object",
					},
				},
				Served:       true,
				Subresources: &apiextensionsv1.CustomResourceSubresources{},
			}, {
				AdditionalPrinterColumns: []apiextensionsv1.CustomResourceColumnDefinition{
					{
						JSONPath: ".spec.secretStoreRef.name",
						Name:     "Store",
						Type:     "string",
					}, {
						JSONPath: ".spec.refreshInterval",
						Name:     "Refresh Interval",
						Type:     "string",
					}, {
						JSONPath: ".status.conditions[?(@.type==\"Ready\")].reason",
						Name:     "Status",
						Type:     "string",
					}, {
						JSONPath: ".status.conditions[?(@.type==\"Ready\")].status",
						Name:     "Ready",
						Type:     "string",
					},
				},
				Name: "v1beta1",
				Schema: &apiextensionsv1.CustomResourceValidation{
					OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{
						Description: "ExternalSecret is the Schema for the external-secrets API.",
						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: "ExternalSecretSpec defines the desired state of ExternalSecret.",
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"data": {
										Description: "Data defines the connection between the Kubernetes Secret keys and the Provider data",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Description: "ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.<key>) and the Provider data.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"remoteRef": {
														Description: "RemoteRef points to the remote secret and defines which secret (version/property/..) to fetch.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"conversionStrategy": {
																Default: &apiextensionsv1.JSON{
																	Raw: []uint8{
																		uint8(0x22),
																		uint8(0x44),
																		uint8(0x65),
																		uint8(0x66),
																		uint8(0x61),
																		uint8(0x75),
																		uint8(0x6c),
																		uint8(0x74),
																		uint8(0x22),
																	},
																},
																Description: "Used to define a conversion Strategy",
																Type:        "string",
															},
															"decodingStrategy": {
																Default: &apiextensionsv1.JSON{
																	Raw: []uint8{
																		uint8(0x22),
																		uint8(0x4e),
																		uint8(0x6f),
																		uint8(0x6e),
																		uint8(0x65),
																		uint8(0x22),
																	},
																},
																Description: "Used to define a decoding Strategy",
																Type:        "string",
															},
															"key": {
																Description: "Key is the key used in the Provider, mandatory",
																Type:        "string",
															},
															"metadataPolicy": {
																Description: "Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None",
																Type:        "string",
															},
															"property": {
																Description: "Used to select a specific property of the Provider value (if a map), if supported",
																Type:        "string",
															},
															"version": {
																Description: "Used to select a specific version of the Provider value, if supported",
																Type:        "string",
															},
														},
														Required: []string{"key"},
														Type:     "object",
													},
													"secretKey": {
														Description: "SecretKey defines the key in which the controller stores the value. This is the key in the Kind=Secret",
														Type:        "string",
													},
													"sourceRef": {
														Description:   "SourceRef allows you to override the source from which the value will pulled from.",
														MaxProperties: P(int64(1)),
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"generatorRef": {
																Description: "GeneratorRef points to a generator custom resource in",
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"apiVersion": {
																		Default: &apiextensionsv1.JSON{
																			Raw: []uint8{
																				uint8(0x22),
																				uint8(0x67),
																				uint8(0x65),
																				uint8(0x6e),
																				uint8(0x65),
																				uint8(0x72),
																				uint8(0x61),
																				uint8(0x74),
																				uint8(0x6f),
																				uint8(0x72),
																				uint8(0x73),
																				uint8(0x2e),
																				uint8(0x65),
																				uint8(0x78),
																				uint8(0x74),
																				uint8(0x65),
																				uint8(0x72),
																				uint8(0x6e),
																				uint8(0x61),
																				uint8(0x6c),
																				uint8(0x2d),
																				uint8(0x73),
																				uint8(0x65),
																				uint8(0x63),
																				uint8(0x72),
																				uint8(0x65),
																				uint8(0x74),
																				uint8(0x73),
																				uint8(0x2e),
																				uint8(0x69),
																				uint8(0x6f),
																				uint8(0x2f),
																				uint8(0x76),
																				uint8(0x31),
																				uint8(0x61),
																				uint8(0x6c),
																				uint8(0x70),
																				uint8(0x68),
																				uint8(0x61),
																				uint8(0x31),
																				uint8(0x22),
																			},
																		},
																		Description: "Specify the apiVersion of the generator resource",
																		Type:        "string",
																	},
																	"kind": {
																		Description: "Specify the Kind of the resource, e.g. Password, ACRAccessToken etc.",
																		Type:        "string",
																	},
																	"name": {
																		Description: "Specify the name of the generator resource",
																		Type:        "string",
																	},
																},
																Required: []string{
																	"kind",
																	"name",
																},
																Type: "object",
															},
															"storeRef": {
																Description: "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.",
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"kind": {
																		Description: "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`",
																		Type:        "string",
																	},
																	"name": {
																		Description: "Name of the SecretStore resource",
																		Type:        "string",
																	},
																},
																Required: []string{"name"},
																Type:     "object",
															},
														},
														Type: "object",
													},
												},
												Required: []string{
													"remoteRef",
													"secretKey",
												},
												Type: "object",
											},
										},
										Type: "array",
									},
									"dataFrom": {
										Description: "DataFrom is used to fetch all properties from a specific Provider data If multiple entries are specified, the Secret keys are merged in the specified order",
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"extract": {
														Description: "Used to extract multiple key/value pairs from one secret Note: Extract does not support sourceRef.Generator or sourceRef.GeneratorRef.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"conversionStrategy": {
																Default: &apiextensionsv1.JSON{
																	Raw: []uint8{
																		uint8(0x22),
																		uint8(0x44),
																		uint8(0x65),
																		uint8(0x66),
																		uint8(0x61),
																		uint8(0x75),
																		uint8(0x6c),
																		uint8(0x74),
																		uint8(0x22),
																	},
																},
																Description: "Used to define a conversion Strategy",
																Type:        "string",
															},
															"decodingStrategy": {
																Default: &apiextensionsv1.JSON{
																	Raw: []uint8{
																		uint8(0x22),
																		uint8(0x4e),
																		uint8(0x6f),
																		uint8(0x6e),
																		uint8(0x65),
																		uint8(0x22),
																	},
																},
																Description: "Used to define a decoding Strategy",
																Type:        "string",
															},
															"key": {
																Description: "Key is the key used in the Provider, mandatory",
																Type:        "string",
															},
															"metadataPolicy": {
																Description: "Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None",
																Type:        "string",
															},
															"property": {
																Description: "Used to select a specific property of the Provider value (if a map), if supported",
																Type:        "string",
															},
															"version": {
																Description: "Used to select a specific version of the Provider value, if supported",
																Type:        "string",
															},
														},
														Required: []string{"key"},
														Type:     "object",
													},
													"find": {
														Description: "Used to find secrets based on tags or regular expressions Note: Find does not support sourceRef.Generator or sourceRef.GeneratorRef.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"conversionStrategy": {
																Default: &apiextensionsv1.JSON{
																	Raw: []uint8{
																		uint8(0x22),
																		uint8(0x44),
																		uint8(0x65),
																		uint8(0x66),
																		uint8(0x61),
																		uint8(0x75),
																		uint8(0x6c),
																		uint8(0x74),
																		uint8(0x22),
																	},
																},
																Description: "Used to define a conversion Strategy",
																Type:        "string",
															},
															"decodingStrategy": {
																Default: &apiextensionsv1.JSON{
																	Raw: []uint8{
																		uint8(0x22),
																		uint8(0x4e),
																		uint8(0x6f),
																		uint8(0x6e),
																		uint8(0x65),
																		uint8(0x22),
																	},
																},
																Description: "Used to define a decoding Strategy",
																Type:        "string",
															},
															"name": {
																Description: "Finds secrets based on the name.",
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"regexp": {
																		Description: "Finds secrets base",
																		Type:        "string",
																	},
																},
																Type: "object",
															},
															"path": {
																Description: "A root path to start the find operations.",
																Type:        "string",
															},
															"tags": {
																AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																	Allows: true,
																	Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
																},
																Description: "Find secrets based on tags.",
																Type:        "object",
															},
														},
														Type: "object",
													},
													"rewrite": {
														Description: "Used to rewrite secret Keys after getting them from the secret Provider Multiple Rewrite operations can be provided. They are applied in a layered order (first to last)",
														Items: &apiextensionsv1.JSONSchemaPropsOrArray{
															Schema: &apiextensionsv1.JSONSchemaProps{
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"regexp": {
																		Description: "Used to rewrite with regular expressions. The resulting key will be the output of a regexp.ReplaceAll operation.",
																		Properties: map[string]apiextensionsv1.JSONSchemaProps{
																			"source": {
																				Description: "Used to define the regular expression of a re.Compiler.",
																				Type:        "string",
																			},
																			"target": {
																				Description: "Used to define the target pattern of a ReplaceAll operation.",
																				Type:        "string",
																			},
																		},
																		Required: []string{
																			"source",
																			"target",
																		},
																		Type: "object",
																	},
																},
																Type: "object",
															},
														},
														Type: "array",
													},
													"sourceRef": {
														Description:   "SourceRef points to a store or generator which contains secret values ready to use. Use this in combination with Extract or Find pull values out of a specific SecretStore. When sourceRef points to a generator Extract or Find is not supported. The generator returns a static map of values",
														MaxProperties: P(int64(1)),
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"generatorRef": {
																Description: "GeneratorRef points to a generator custom resource in",
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"apiVersion": {
																		Default: &apiextensionsv1.JSON{
																			Raw: []uint8{
																				uint8(0x22),
																				uint8(0x67),
																				uint8(0x65),
																				uint8(0x6e),
																				uint8(0x65),
																				uint8(0x72),
																				uint8(0x61),
																				uint8(0x74),
																				uint8(0x6f),
																				uint8(0x72),
																				uint8(0x73),
																				uint8(0x2e),
																				uint8(0x65),
																				uint8(0x78),
																				uint8(0x74),
																				uint8(0x65),
																				uint8(0x72),
																				uint8(0x6e),
																				uint8(0x61),
																				uint8(0x6c),
																				uint8(0x2d),
																				uint8(0x73),
																				uint8(0x65),
																				uint8(0x63),
																				uint8(0x72),
																				uint8(0x65),
																				uint8(0x74),
																				uint8(0x73),
																				uint8(0x2e),
																				uint8(0x69),
																				uint8(0x6f),
																				uint8(0x2f),
																				uint8(0x76),
																				uint8(0x31),
																				uint8(0x61),
																				uint8(0x6c),
																				uint8(0x70),
																				uint8(0x68),
																				uint8(0x61),
																				uint8(0x31),
																				uint8(0x22),
																			},
																		},
																		Description: "Specify the apiVersion of the generator resource",
																		Type:        "string",
																	},
																	"kind": {
																		Description: "Specify the Kind of the resource, e.g. Password, ACRAccessToken etc.",
																		Type:        "string",
																	},
																	"name": {
																		Description: "Specify the name of the generator resource",
																		Type:        "string",
																	},
																},
																Required: []string{
																	"kind",
																	"name",
																},
																Type: "object",
															},
															"storeRef": {
																Description: "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.",
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"kind": {
																		Description: "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`",
																		Type:        "string",
																	},
																	"name": {
																		Description: "Name of the SecretStore resource",
																		Type:        "string",
																	},
																},
																Required: []string{"name"},
																Type:     "object",
															},
														},
														Type: "object",
													},
												},
												Type: "object",
											},
										},
										Type: "array",
									},
									"refreshInterval": {
										Default: &apiextensionsv1.JSON{
											Raw: []uint8{
												uint8(0x22),
												uint8(0x31),
												uint8(0x68),
												uint8(0x22),
											},
										},
										Description: "RefreshInterval is the amount of time before the values are read again from the SecretStore provider Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\" May be set to zero to fetch and create it once. Defaults to 1h.",
										Type:        "string",
									},
									"secretStoreRef": {
										Description: "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"kind": {
												Description: "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`",
												Type:        "string",
											},
											"name": {
												Description: "Name of the SecretStore resource",
												Type:        "string",
											},
										},
										Required: []string{"name"},
										Type:     "object",
									},
									"target": {
										Default: &apiextensionsv1.JSON{
											Raw: []uint8{
												uint8(0x7b),
												uint8(0x22),
												uint8(0x63),
												uint8(0x72),
												uint8(0x65),
												uint8(0x61),
												uint8(0x74),
												uint8(0x69),
												uint8(0x6f),
												uint8(0x6e),
												uint8(0x50),
												uint8(0x6f),
												uint8(0x6c),
												uint8(0x69),
												uint8(0x63),
												uint8(0x79),
												uint8(0x22),
												uint8(0x3a),
												uint8(0x22),
												uint8(0x4f),
												uint8(0x77),
												uint8(0x6e),
												uint8(0x65),
												uint8(0x72),
												uint8(0x22),
												uint8(0x2c),
												uint8(0x22),
												uint8(0x64),
												uint8(0x65),
												uint8(0x6c),
												uint8(0x65),
												uint8(0x74),
												uint8(0x69),
												uint8(0x6f),
												uint8(0x6e),
												uint8(0x50),
												uint8(0x6f),
												uint8(0x6c),
												uint8(0x69),
												uint8(0x63),
												uint8(0x79),
												uint8(0x22),
												uint8(0x3a),
												uint8(0x22),
												uint8(0x52),
												uint8(0x65),
												uint8(0x74),
												uint8(0x61),
												uint8(0x69),
												uint8(0x6e),
												uint8(0x22),
												uint8(0x7d),
											},
										},
										Description: "ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret.",
										Properties: map[string]apiextensionsv1.JSONSchemaProps{
											"creationPolicy": {
												Default: &apiextensionsv1.JSON{
													Raw: []uint8{
														uint8(0x22),
														uint8(0x4f),
														uint8(0x77),
														uint8(0x6e),
														uint8(0x65),
														uint8(0x72),
														uint8(0x22),
													},
												},
												Description: "CreationPolicy defines rules on how to create the resulting Secret Defaults to 'Owner'",
												Enum: []apiextensionsv1.JSON{
													{
														Raw: []uint8{
															uint8(0x22),
															uint8(0x4f),
															uint8(0x77),
															uint8(0x6e),
															uint8(0x65),
															uint8(0x72),
															uint8(0x22),
														},
													},
													{
														Raw: []uint8{
															uint8(0x22),
															uint8(0x4f),
															uint8(0x72),
															uint8(0x70),
															uint8(0x68),
															uint8(0x61),
															uint8(0x6e),
															uint8(0x22),
														},
													},
													{
														Raw: []uint8{
															uint8(0x22),
															uint8(0x4d),
															uint8(0x65),
															uint8(0x72),
															uint8(0x67),
															uint8(0x65),
															uint8(0x22),
														},
													},
													{
														Raw: []uint8{
															uint8(0x22),
															uint8(0x4e),
															uint8(0x6f),
															uint8(0x6e),
															uint8(0x65),
															uint8(0x22),
														},
													},
												},
												Type: "string",
											},
											"deletionPolicy": {
												Default: &apiextensionsv1.JSON{
													Raw: []uint8{
														uint8(0x22),
														uint8(0x52),
														uint8(0x65),
														uint8(0x74),
														uint8(0x61),
														uint8(0x69),
														uint8(0x6e),
														uint8(0x22),
													},
												},
												Description: "DeletionPolicy defines rules on how to delete the resulting Secret Defaults to 'Retain'",
												Enum: []apiextensionsv1.JSON{
													{
														Raw: []uint8{
															uint8(0x22),
															uint8(0x44),
															uint8(0x65),
															uint8(0x6c),
															uint8(0x65),
															uint8(0x74),
															uint8(0x65),
															uint8(0x22),
														},
													},
													{
														Raw: []uint8{
															uint8(0x22),
															uint8(0x4d),
															uint8(0x65),
															uint8(0x72),
															uint8(0x67),
															uint8(0x65),
															uint8(0x22),
														},
													},
													{
														Raw: []uint8{
															uint8(0x22),
															uint8(0x52),
															uint8(0x65),
															uint8(0x74),
															uint8(0x61),
															uint8(0x69),
															uint8(0x6e),
															uint8(0x22),
														},
													},
												},
												Type: "string",
											},
											"immutable": {
												Description: "Immutable defines if the final secret will be immutable",
												Type:        "boolean",
											},
											"name": {
												Description: "Name defines the name of the Secret resource to be managed This field is immutable Defaults to the .metadata.name of the ExternalSecret resource",
												Type:        "string",
											},
											"template": {
												Description: "Template defines a blueprint for the created Secret resource.",
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"data": {
														AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
															Allows: true,
															Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
														},
														Type: "object",
													},
													"engineVersion": {
														Default: &apiextensionsv1.JSON{
															Raw: []uint8{
																uint8(0x22),
																uint8(0x76),
																uint8(0x32),
																uint8(0x22),
															},
														},
														Type: "string",
													},
													"metadata": {
														Description: "ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint.",
														Properties: map[string]apiextensionsv1.JSONSchemaProps{
															"annotations": {
																AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																	Allows: true,
																	Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
																},
																Type: "object",
															},
															"labels": {
																AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
																	Allows: true,
																	Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
																},
																Type: "object",
															},
														},
														Type: "object",
													},
													"templateFrom": {
														Items: &apiextensionsv1.JSONSchemaPropsOrArray{
															Schema: &apiextensionsv1.JSONSchemaProps{
																Properties: map[string]apiextensionsv1.JSONSchemaProps{
																	"configMap": {
																		Properties: map[string]apiextensionsv1.JSONSchemaProps{
																			"items": {
																				Items: &apiextensionsv1.JSONSchemaPropsOrArray{
																					Schema: &apiextensionsv1.JSONSchemaProps{
																						Properties: map[string]apiextensionsv1.JSONSchemaProps{
																							"key": {Type: "string"},
																							"templateAs": {
																								Default: &apiextensionsv1.JSON{
																									Raw: []uint8{
																										uint8(0x22),
																										uint8(0x56),
																										uint8(0x61),
																										uint8(0x6c),
																										uint8(0x75),
																										uint8(0x65),
																										uint8(0x73),
																										uint8(0x22),
																									},
																								},
																								Type: "string",
																							},
																						},
																						Required: []string{"key"},
																						Type:     "object",
																					},
																				},
																				Type: "array",
																			},
																			"name": {Type: "string"},
																		},
																		Required: []string{
																			"items",
																			"name",
																		},
																		Type: "object",
																	},
																	"literal": {Type: "string"},
																	"secret": {
																		Properties: map[string]apiextensionsv1.JSONSchemaProps{
																			"items": {
																				Items: &apiextensionsv1.JSONSchemaPropsOrArray{
																					Schema: &apiextensionsv1.JSONSchemaProps{
																						Properties: map[string]apiextensionsv1.JSONSchemaProps{
																							"key": {Type: "string"},
																							"templateAs": {
																								Default: &apiextensionsv1.JSON{
																									Raw: []uint8{
																										uint8(0x22),
																										uint8(0x56),
																										uint8(0x61),
																										uint8(0x6c),
																										uint8(0x75),
																										uint8(0x65),
																										uint8(0x73),
																										uint8(0x22),
																									},
																								},
																								Type: "string",
																							},
																						},
																						Required: []string{"key"},
																						Type:     "object",
																					},
																				},
																				Type: "array",
																			},
																			"name": {Type: "string"},
																		},
																		Required: []string{
																			"items",
																			"name",
																		},
																		Type: "object",
																	},
																	"target": {
																		Default: &apiextensionsv1.JSON{
																			Raw: []uint8{
																				uint8(0x22),
																				uint8(0x44),
																				uint8(0x61),
																				uint8(0x74),
																				uint8(0x61),
																				uint8(0x22),
																			},
																		},
																		Type: "string",
																	},
																},
																Type: "object",
															},
														},
														Type: "array",
													},
													"type": {Type: "string"},
												},
												Type: "object",
											},
										},
										Type: "object",
									},
								},
								Type: "object",
							},
							"status": {
								Properties: map[string]apiextensionsv1.JSONSchemaProps{
									"conditions": {
										Items: &apiextensionsv1.JSONSchemaPropsOrArray{
											Schema: &apiextensionsv1.JSONSchemaProps{
												Properties: map[string]apiextensionsv1.JSONSchemaProps{
													"lastTransitionTime": {
														Format: "date-time",
														Type:   "string",
													},
													"message": {Type: "string"},
													"reason":  {Type: "string"},
													"status":  {Type: "string"},
													"type":    {Type: "string"},
												},
												Required: []string{
													"status",
													"type",
												},
												Type: "object",
											},
										},
										Type: "array",
									},
									"refreshTime": {
										Description: "refreshTime is the time and date the external secret was fetched and the target secret updated",
										Format:      "date-time",
										Nullable:    true,
										Type:        "string",
									},
									"syncedResourceVersion": {
										Description: "SyncedResourceVersion keeps track of the last synced version",
										Type:        "string",
									},
								},
								Type: "object",
							},
						},
						Type: "object",
					},
				},
				Served:       true,
				Storage:      true,
				Subresources: &apiextensionsv1.CustomResourceSubresources{},
			},
		},
	},
	TypeMeta: metav1.TypeMeta{
		APIVersion: "apiextensions.k8s.io/v1",
		Kind:       "CustomResourceDefinition",
	},
}
