-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmetalstackfirewalltemplate_types.go
More file actions
38 lines (31 loc) · 1.62 KB
/
metalstackfirewalltemplate_types.go
File metadata and controls
38 lines (31 loc) · 1.62 KB
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
package v1alpha1
import (
fcmv2 "github.com/metal-stack/firewall-controller-manager/api/v2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const (
MetalStackFirewallTemplateKind = "MetalStackFirewallTemplate"
)
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Namespaced,categories=cluster-api,shortName=msfwtemplate
// +kubebuilder:printcolumn:name="Partition",type="string",JSONPath=".spec.partition",description="The Metal Stack partition where the firewall will be created"
// +kubebuilder:printcolumn:name="Project",type="string",JSONPath=".spec.project",description="The Metal Stack project where the firewall will be created"
// +kubebuilder:printcolumn:name="Image",type="string",JSONPath=".spec.image",description="The Metal Stack firewall image"
// +kubebuilder:printcolumn:name="Size",type="string",JSONPath=".spec.size",description="The Metal Stack firewall size"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the firewall template"
type MetalStackFirewallTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec defines the firewall deployment template spec used to create firewalls for the cluster.
Spec fcmv2.FirewallSpec `json:"spec"`
}
// +kubebuilder:object:root=true
type MetalStackFirewallTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MetalStackFirewallTemplate `json:"items"`
}
func init() {
SchemeBuilder.Register(&MetalStackFirewallTemplate{}, &MetalStackFirewallTemplateList{})
}