-
Notifications
You must be signed in to change notification settings - Fork 35
/
jspolicybundle_types.go
42 lines (33 loc) · 1.09 KB
/
jspolicybundle_types.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
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +genclient
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// JsPolicyBundle holds the bundled payload
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
type JsPolicyBundle struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec JsPolicyBundleSpec `json:"spec,omitempty"`
Status JsPolicyBundleStatus `json:"status,omitempty"`
}
type JsPolicyBundleSpec struct {
// Bundle holds the bundled payload (including dependencies and minified javascript code)
// +optional
Bundle []byte `json:"bundle,omitempty"`
}
type JsPolicyBundleStatus struct {
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// JsPolicyBundleList contains a list of JsPolicyBundle
type JsPolicyBundleList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []JsPolicyBundle `json:"items"`
}
func init() {
SchemeBuilder.Register(&JsPolicyBundle{}, &JsPolicyBundleList{})
}