/*
Copyright The cert-manager Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Code generated by applyconfiguration-gen. DO NOT EDIT.

package applyconfigurations

import (
	v1 "github.com/cert-manager/cert-manager/pkg/apis/acme/v1"
	certmanagerv1 "github.com/cert-manager/cert-manager/pkg/apis/certmanager/v1"
	metav1 "github.com/cert-manager/cert-manager/pkg/apis/meta/v1"
	acmev1 "github.com/cert-manager/cert-manager/pkg/client/applyconfigurations/acme/v1"
	applyconfigurationscertmanagerv1 "github.com/cert-manager/cert-manager/pkg/client/applyconfigurations/certmanager/v1"
	internal "github.com/cert-manager/cert-manager/pkg/client/applyconfigurations/internal"
	applyconfigurationsmetav1 "github.com/cert-manager/cert-manager/pkg/client/applyconfigurations/meta/v1"
	runtime "k8s.io/apimachinery/pkg/runtime"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	testing "k8s.io/client-go/testing"
)

// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
// apply configuration type exists for the given GroupVersionKind.
func ForKind(kind schema.GroupVersionKind) interface{} {
	switch kind {
	// Group=acme.cert-manager.io, Version=v1
	case v1.SchemeGroupVersion.WithKind("ACMEAuthorization"):
		return &acmev1.ACMEAuthorizationApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallenge"):
		return &acmev1.ACMEChallengeApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolver"):
		return &acmev1.ACMEChallengeSolverApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverDNS01"):
		return &acmev1.ACMEChallengeSolverDNS01ApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01"):
		return &acmev1.ACMEChallengeSolverHTTP01ApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01GatewayHTTPRoute"):
		return &acmev1.ACMEChallengeSolverHTTP01GatewayHTTPRouteApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01Ingress"):
		return &acmev1.ACMEChallengeSolverHTTP01IngressApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01IngressObjectMeta"):
		return &acmev1.ACMEChallengeSolverHTTP01IngressObjectMetaApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01IngressPodObjectMeta"):
		return &acmev1.ACMEChallengeSolverHTTP01IngressPodObjectMetaApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01IngressPodSecurityContext"):
		return &acmev1.ACMEChallengeSolverHTTP01IngressPodSecurityContextApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01IngressPodSpec"):
		return &acmev1.ACMEChallengeSolverHTTP01IngressPodSpecApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01IngressPodTemplate"):
		return &acmev1.ACMEChallengeSolverHTTP01IngressPodTemplateApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEChallengeSolverHTTP01IngressTemplate"):
		return &acmev1.ACMEChallengeSolverHTTP01IngressTemplateApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEExternalAccountBinding"):
		return &acmev1.ACMEExternalAccountBindingApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuer"):
		return &acmev1.ACMEIssuerApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderAcmeDNS"):
		return &acmev1.ACMEIssuerDNS01ProviderAcmeDNSApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderAkamai"):
		return &acmev1.ACMEIssuerDNS01ProviderAkamaiApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderAzureDNS"):
		return &acmev1.ACMEIssuerDNS01ProviderAzureDNSApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderCloudDNS"):
		return &acmev1.ACMEIssuerDNS01ProviderCloudDNSApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderCloudflare"):
		return &acmev1.ACMEIssuerDNS01ProviderCloudflareApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderDigitalOcean"):
		return &acmev1.ACMEIssuerDNS01ProviderDigitalOceanApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderRFC2136"):
		return &acmev1.ACMEIssuerDNS01ProviderRFC2136ApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderRoute53"):
		return &acmev1.ACMEIssuerDNS01ProviderRoute53ApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerDNS01ProviderWebhook"):
		return &acmev1.ACMEIssuerDNS01ProviderWebhookApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ACMEIssuerStatus"):
		return &acmev1.ACMEIssuerStatusApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("AzureManagedIdentity"):
		return &acmev1.AzureManagedIdentityApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("CertificateDNSNameSelector"):
		return &acmev1.CertificateDNSNameSelectorApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("Challenge"):
		return &acmev1.ChallengeApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ChallengeSpec"):
		return &acmev1.ChallengeSpecApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ChallengeStatus"):
		return &acmev1.ChallengeStatusApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("Order"):
		return &acmev1.OrderApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("OrderSpec"):
		return &acmev1.OrderSpecApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("OrderStatus"):
		return &acmev1.OrderStatusApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("Route53Auth"):
		return &acmev1.Route53AuthApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("Route53KubernetesAuth"):
		return &acmev1.Route53KubernetesAuthApplyConfiguration{}
	case v1.SchemeGroupVersion.WithKind("ServiceAccountRef"):
		return &acmev1.ServiceAccountRefApplyConfiguration{}

		// Group=cert-manager.io, Version=v1
	case certmanagerv1.SchemeGroupVersion.WithKind("CAIssuer"):
		return &applyconfigurationscertmanagerv1.CAIssuerApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("Certificate"):
		return &applyconfigurationscertmanagerv1.CertificateApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateAdditionalOutputFormat"):
		return &applyconfigurationscertmanagerv1.CertificateAdditionalOutputFormatApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateCondition"):
		return &applyconfigurationscertmanagerv1.CertificateConditionApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateKeystores"):
		return &applyconfigurationscertmanagerv1.CertificateKeystoresApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificatePrivateKey"):
		return &applyconfigurationscertmanagerv1.CertificatePrivateKeyApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateRequest"):
		return &applyconfigurationscertmanagerv1.CertificateRequestApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateRequestCondition"):
		return &applyconfigurationscertmanagerv1.CertificateRequestConditionApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateRequestSpec"):
		return &applyconfigurationscertmanagerv1.CertificateRequestSpecApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateRequestStatus"):
		return &applyconfigurationscertmanagerv1.CertificateRequestStatusApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateSecretTemplate"):
		return &applyconfigurationscertmanagerv1.CertificateSecretTemplateApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateSpec"):
		return &applyconfigurationscertmanagerv1.CertificateSpecApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("CertificateStatus"):
		return &applyconfigurationscertmanagerv1.CertificateStatusApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("ClusterIssuer"):
		return &applyconfigurationscertmanagerv1.ClusterIssuerApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("Issuer"):
		return &applyconfigurationscertmanagerv1.IssuerApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("IssuerCondition"):
		return &applyconfigurationscertmanagerv1.IssuerConditionApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("IssuerConfig"):
		return &applyconfigurationscertmanagerv1.IssuerConfigApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("IssuerSpec"):
		return &applyconfigurationscertmanagerv1.IssuerSpecApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("IssuerStatus"):
		return &applyconfigurationscertmanagerv1.IssuerStatusApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("JKSKeystore"):
		return &applyconfigurationscertmanagerv1.JKSKeystoreApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("NameConstraintItem"):
		return &applyconfigurationscertmanagerv1.NameConstraintItemApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("NameConstraints"):
		return &applyconfigurationscertmanagerv1.NameConstraintsApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("OtherName"):
		return &applyconfigurationscertmanagerv1.OtherNameApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("PKCS12Keystore"):
		return &applyconfigurationscertmanagerv1.PKCS12KeystoreApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("SelfSignedIssuer"):
		return &applyconfigurationscertmanagerv1.SelfSignedIssuerApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("ServiceAccountRef"):
		return &applyconfigurationscertmanagerv1.ServiceAccountRefApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("VaultAppRole"):
		return &applyconfigurationscertmanagerv1.VaultAppRoleApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("VaultAuth"):
		return &applyconfigurationscertmanagerv1.VaultAuthApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("VaultClientCertificateAuth"):
		return &applyconfigurationscertmanagerv1.VaultClientCertificateAuthApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("VaultIssuer"):
		return &applyconfigurationscertmanagerv1.VaultIssuerApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("VaultKubernetesAuth"):
		return &applyconfigurationscertmanagerv1.VaultKubernetesAuthApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("VenafiCloud"):
		return &applyconfigurationscertmanagerv1.VenafiCloudApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("VenafiIssuer"):
		return &applyconfigurationscertmanagerv1.VenafiIssuerApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("VenafiTPP"):
		return &applyconfigurationscertmanagerv1.VenafiTPPApplyConfiguration{}
	case certmanagerv1.SchemeGroupVersion.WithKind("X509Subject"):
		return &applyconfigurationscertmanagerv1.X509SubjectApplyConfiguration{}

		// Group=meta, Version=v1
	case metav1.SchemeGroupVersion.WithKind("IssuerReference"):
		return &applyconfigurationsmetav1.IssuerReferenceApplyConfiguration{}
	case metav1.SchemeGroupVersion.WithKind("LocalObjectReference"):
		return &applyconfigurationsmetav1.LocalObjectReferenceApplyConfiguration{}
	case metav1.SchemeGroupVersion.WithKind("SecretKeySelector"):
		return &applyconfigurationsmetav1.SecretKeySelectorApplyConfiguration{}

	}
	return nil
}

func NewTypeConverter(scheme *runtime.Scheme) *testing.TypeConverter {
	return &testing.TypeConverter{Scheme: scheme, TypeResolver: internal.Parser()}
}
