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
package v1alpha1
import (
corev1alpha1 "github.com/johnandersen777/socialweb-computer-kcp/api/v1alpha1"
)
type PrinterColumn = corev1alpha1.PrinterColumn
type APIResource = corev1alpha1.APIResource
var APIResources = []APIResource{
{Kind: "Service", Plural: "services", Revision: 2, Export: "exposures", Object: Service{}, PrinterColumns: []PrinterColumn{
{Name: "Protocol", Type: "string", JSONPath: ".spec.protocol"},
{Name: "Target", Type: "string", JSONPath: ".spec.targetRef.name"},
{Name: "Phase", Type: "string", JSONPath: ".status.phase"},
{Name: "Ready", Type: "boolean", JSONPath: ".status.ready"},
{Name: "Suspend", Type: "boolean", JSONPath: ".spec.suspend"},
{Name: "Age", Type: "date", JSONPath: ".metadata.creationTimestamp"},
}},
{Kind: "Exposure", Plural: "exposures", Revision: 5, Export: "exposures", Object: Exposure{}, PrinterColumns: []PrinterColumn{
{Name: "Mode", Type: "string", JSONPath: ".spec.mode"},
{Name: "Hostname", Type: "string", JSONPath: ".spec.hostname"},
{Name: "Phase", Type: "string", JSONPath: ".status.phase"},
{Name: "Ready", Type: "boolean", JSONPath: ".status.ready"},
{Name: "IngressRegistered", Type: "string", JSONPath: `.status.conditions[?(@.type=="IngressRegistered")].status`},
{Name: "Address", Type: "string", JSONPath: ".status.address"},
{Name: "Age", Type: "date", JSONPath: ".metadata.creationTimestamp"},
}},
{Kind: "ComponentLink", Plural: "componentlinks", Revision: 3, Export: "exposures", Object: ComponentLink{}, PrinterColumns: []PrinterColumn{
{Name: "To Kind", Type: "string", JSONPath: ".spec.to.kind"},
{Name: "To", Type: "string", JSONPath: ".spec.to.name"},
{Name: "Suspend", Type: "boolean", JSONPath: ".spec.suspend"},
{Name: "Age", Type: "date", JSONPath: ".metadata.creationTimestamp"},
}},
}