This repository has been archived by the owner on Sep 28, 2023. It is now read-only.
/
crdfakes.generators.external-secrets.io.go
86 lines (82 loc) · 3.27 KB
/
crdfakes.generators.external-secrets.io.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// 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 FakesGeneratorsCrd = &apiextensionsv1.CustomResourceDefinition{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{"controller-gen.kubebuilder.io/version": "v0.11.1"},
Name: "fakes.generators.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: "generators.external-secrets.io",
Names: apiextensionsv1.CustomResourceDefinitionNames{
Categories: []string{"fake"},
Kind: "Fake",
ListKind: "FakeList",
Plural: "fakes",
ShortNames: []string{"fake"},
Singular: "fake",
},
Scope: apiextensionsv1.ResourceScope("Namespaced"),
Versions: []apiextensionsv1.CustomResourceDefinitionVersion{
{
Name: "v1alpha1",
Schema: &apiextensionsv1.CustomResourceValidation{
OpenAPIV3Schema: &apiextensionsv1.JSONSchemaProps{
Description: "Fake generator is used for testing. It lets you define a static set of credentials that is always returned.",
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: "FakeSpec contains the static data.",
Properties: map[string]apiextensionsv1.JSONSchemaProps{
"data": {
AdditionalProperties: &apiextensionsv1.JSONSchemaPropsOrBool{
Allows: true,
Schema: &apiextensionsv1.JSONSchemaProps{Type: "string"},
},
Description: "Data defines the static data returned by this generator.",
Type: "object",
},
},
Type: "object",
},
},
Type: "object",
},
},
Served: true,
Storage: true,
Subresources: &apiextensionsv1.CustomResourceSubresources{},
},
},
},
TypeMeta: metav1.TypeMeta{
APIVersion: "apiextensions.k8s.io/v1",
Kind: "CustomResourceDefinition",
},
}