-
Notifications
You must be signed in to change notification settings - Fork 48
/
zz_generated.openapi.go
118 lines (111 loc) · 4.13 KB
/
zz_generated.openapi.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Code generated by openapi-gen. DO NOT EDIT.
// This file was autogenerated by openapi-gen. Do not edit it manually!
package v1alpha1
import (
common "k8s.io/kube-openapi/pkg/common"
spec "k8s.io/kube-openapi/pkg/validation/spec"
)
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
return map[string]common.OpenAPIDefinition{
"github.com/openshift/rbac-permissions-operator/api/v1alpha1.SubjectPermissionSpec": schema_openshift_rbac_permissions_operator_api_v1alpha1_SubjectPermissionSpec(ref),
"github.com/openshift/rbac-permissions-operator/api/v1alpha1.SubjectPermissionStatus": schema_openshift_rbac_permissions_operator_api_v1alpha1_SubjectPermissionStatus(ref),
}
}
func schema_openshift_rbac_permissions_operator_api_v1alpha1_SubjectPermissionSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. SubjectPermissionSpec defines the desired state of SubjectPermission",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"subjectKind": {
SchemaProps: spec.SchemaProps{
Description: "Important: Run \"make\" to regenerate code after modifying this file Kind of the Subject that is being granted permissions by the operator",
Default: "",
Type: []string{"string"},
Format: "",
},
},
"subjectName": {
SchemaProps: spec.SchemaProps{
Description: "Name of the Subject granted permissions by the operator",
Default: "",
Type: []string{"string"},
Format: "",
},
},
"subjectNamespace": {
SchemaProps: spec.SchemaProps{
Description: "Namespace of the Subject granted permissions by the operator",
Default: "",
Type: []string{"string"},
Format: "",
},
},
"clusterPermissions": {
SchemaProps: spec.SchemaProps{
Description: "List of permissions applied at Cluster scope",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
},
},
"permissions": {
SchemaProps: spec.SchemaProps{
Description: "List of permissions applied at Namespace scope",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/openshift/rbac-permissions-operator/api/v1alpha1.Permission"),
},
},
},
},
},
},
Required: []string{"subjectKind", "subjectName"},
},
},
Dependencies: []string{
"github.com/openshift/rbac-permissions-operator/api/v1alpha1.Permission"},
}
}
func schema_openshift_rbac_permissions_operator_api_v1alpha1_SubjectPermissionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
return common.OpenAPIDefinition{
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "SubjectPermissionStatus defines the observed state of SubjectPermission",
Type: []string{"object"},
Properties: map[string]spec.Schema{
"conditions": {
SchemaProps: spec.SchemaProps{
Description: "Important: Run \"make\" to regenerate code after modifying this file List of conditions for the CR",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: map[string]interface{}{},
Ref: ref("github.com/openshift/rbac-permissions-operator/api/v1alpha1.Condition"),
},
},
},
},
},
},
},
},
Dependencies: []string{
"github.com/openshift/rbac-permissions-operator/api/v1alpha1.Condition"},
}
}