added working browser with proxy
This commit is contained in:
@@ -29,15 +29,21 @@ type BrowserStatus struct {
|
||||
Running bool `json:"running,omitempty"`
|
||||
}
|
||||
|
||||
type PortMapping struct {
|
||||
Protocol corev1.Protocol `json:"protocol,omitempty"`
|
||||
HostPort int32 `json:"host_port,omitempty"`
|
||||
TargetPort int32 `json:"target_port,omitempty"`
|
||||
}
|
||||
|
||||
type Port struct {
|
||||
Protocol corev1.Protocol `json:"protocol,omitempty"`
|
||||
Port int32 `json:"port,omitempty"`
|
||||
}
|
||||
|
||||
type ServerStatus struct {
|
||||
Domain string `json:"domain,omitempty"`
|
||||
Running bool `json:"running,omitempty"`
|
||||
HostPorts []Port `json:"host_ports,omitempty"`
|
||||
Domain string `json:"domain,omitempty"`
|
||||
Running bool `json:"running,omitempty"`
|
||||
HostPorts []PortMapping `json:"host_ports,omitempty"`
|
||||
}
|
||||
|
||||
type ServerSpec struct {
|
||||
@@ -55,7 +61,6 @@ type BrowserSpec struct {
|
||||
|
||||
// ServerManagerSpec defines the desired state of ServerManager
|
||||
type ServerManagerSpec struct {
|
||||
Id string `json:"id,omitempty"`
|
||||
Storage string `json:"storage,omitempty"`
|
||||
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
||||
// Important: Run "make" to regenerate code after modifying this file
|
||||
|
@@ -27,7 +27,6 @@ import (
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *BrowserSpec) DeepCopyInto(out *BrowserSpec) {
|
||||
*out = *in
|
||||
out.Port = in.Port
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BrowserSpec.
|
||||
@@ -70,6 +69,21 @@ func (in *Port) DeepCopy() *Port {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *PortMapping) DeepCopyInto(out *PortMapping) {
|
||||
*out = *in
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortMapping.
|
||||
func (in *PortMapping) DeepCopy() *PortMapping {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(PortMapping)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ServerManager) DeepCopyInto(out *ServerManager) {
|
||||
*out = *in
|
||||
@@ -198,7 +212,7 @@ func (in *ServerStatus) DeepCopyInto(out *ServerStatus) {
|
||||
*out = *in
|
||||
if in.HostPorts != nil {
|
||||
in, out := &in.HostPorts, &out.HostPorts
|
||||
*out = make([]Port, len(*in))
|
||||
*out = make([]PortMapping, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user