forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
49 lines (36 loc) · 1.47 KB
/
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
43
44
45
46
47
48
49
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
webconsolev1 "github.com/openshift/api/webconsole/v1"
operatorsv1alpha1api "github.com/openshift/origin/pkg/cmd/openshift-operators/apis/operators/v1alpha1"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type OpenShiftWebConsoleConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []OpenShiftWebConsoleConfig `json:"items"`
}
// +genclient
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type OpenShiftWebConsoleConfig struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Spec OpenShiftWebConsoleConfigSpec `json:"spec"`
Status OpenShiftWebConsoleConfigStatus `json:"status"`
}
type OpenShiftWebConsoleConfigSpec struct {
operatorsv1alpha1api.OperatorSpec `json:",inline"`
// config holds a sparse config that the user wants for this component. It only needs to be the overrides from the defaults
// it will end up overlaying in the following order:
// 1. hardcoded default
// 2. this config
WebConsoleConfig webconsolev1.WebConsoleConfiguration `json:"config"`
// TODO I suspect this should be automatic
NodeSelector map[string]string `json:"nodeSelector"`
// TODO I suspect that this should be automatic
Replicas int32 `json:"replicas"`
}
type OpenShiftWebConsoleConfigStatus struct {
operatorsv1alpha1api.OperatorStatus `json:",inline"`
}