mirror of https://github.com/k3s-io/k3s.git
63 lines
1.7 KiB
Go
63 lines
1.7 KiB
Go
package v1
|
|
|
|
import (
|
|
"github.com/rancher/dynamiclistener"
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
"k8s.io/apimachinery/pkg/util/intstr"
|
|
)
|
|
|
|
// +genclient
|
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
|
|
type ListenerConfig struct {
|
|
metav1.TypeMeta `json:",inline"`
|
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
|
|
|
Status dynamiclistener.ListenerStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// +genclient
|
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
|
|
type Addon struct {
|
|
metav1.TypeMeta `json:",inline"`
|
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
|
|
|
Spec AddonSpec `json:"spec,omitempty"`
|
|
Status AddonStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
type AddonSpec struct {
|
|
Source string `json:"source,omitempty"`
|
|
Checksum string `json:"checksum,omitempty"`
|
|
}
|
|
|
|
type AddonStatus struct {
|
|
GVKs []schema.GroupVersionKind `json:"gvks,omitempty"`
|
|
}
|
|
|
|
// +genclient
|
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
|
|
type HelmChart struct {
|
|
metav1.TypeMeta `json:",inline"`
|
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
|
|
|
Spec HelmChartSpec `json:"spec,omitempty"`
|
|
Status HelmChartStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
type HelmChartSpec struct {
|
|
TargetNamespace string `json:"targetNamespace,omitempty"`
|
|
Chart string `json:"chart,omitempty"`
|
|
Version string `json:"version,omitempty"`
|
|
Repo string `json:"repo,omitempty"`
|
|
Set map[string]intstr.IntOrString `json:"set,omitempty"`
|
|
ValuesContent string `json:"valuesContent,omitempty"`
|
|
}
|
|
|
|
type HelmChartStatus struct {
|
|
JobName string `json:"jobName,omitempty"`
|
|
}
|