operatorui

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientK8s = errors.New("k8sAPIClientError")
)

Functions

func GetOperatorUIState

func GetOperatorUIState(conf *action.Configuration, config *rest.Config, releaseName string, ns string) (*hlfv1alpha1.FabricOperatorUIStatus, error)

Types

type Auth

type Auth struct {
	OIDCAuthority string `json:"oidcAuthority"`
	OIDCClientId  string `json:"oidcClientId"`
	OIDCScope     string `json:"oidcScope"`
}

type Autoscaling

type Autoscaling struct {
	Enabled                        bool `json:"enabled"`
	MinReplicas                    int  `json:"minReplicas"`
	MaxReplicas                    int  `json:"maxReplicas"`
	TargetCPUUtilizationPercentage int  `json:"targetCPUUtilizationPercentage"`
}

type FabricOperatorUIReconciler

type FabricOperatorUIReconciler struct {
	client.Client
	ChartPath string
	Log       logr.Logger
	Scheme    *runtime.Scheme
	Config    *rest.Config
}

FabricOperatorUIReconciler reconciles a FabricOperatorUI object

func (*FabricOperatorUIReconciler) Reconcile

func (*FabricOperatorUIReconciler) SetupWithManager

func (r *FabricOperatorUIReconciler) SetupWithManager(mgr ctrl.Manager) error

type HLFConfig

type HLFConfig struct {
	MspID         string           `json:"mspID"`
	User          string           `json:"user"`
	NetworkConfig HLFNetworkConfig `json:"networkConfig"`
}

type HLFNetworkConfig

type HLFNetworkConfig struct {
	SecretName string `json:"secretName"`
	Key        string `json:"key"`
}

type HLFOperatorUIChart

type HLFOperatorUIChart struct {
	ReplicaCount     int                           `json:"replicaCount"`
	Image            Image                         `json:"image"`
	APIUrl           string                        `json:"apiUrl"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets"`
	ServiceAccount   ServiceAccount                `json:"serviceAccount"`
	PodAnnotations   map[string]string             `json:"podAnnotations"`
	Service          Service                       `json:"service"`
	Ingress          Ingress                       `json:"ingress"`
	Resources        *corev1.ResourceRequirements  `json:"resources"`
	Autoscaling      Autoscaling                   `json:"autoscaling"`
	Tolerations      []corev1.Toleration           `json:"tolerations,omitempty"`
	Affinity         *corev1.Affinity              `json:"affinity"`
	LogoURL          string                        `json:"logoUrl"`
	Auth             Auth                          `json:"auth,omitempty"`
}

type Image

type Image struct {
	Repository string            `json:"repository"`
	PullPolicy corev1.PullPolicy `json:"pullPolicy"`
	Tag        string            `json:"tag"`
}

type Ingress

type Ingress struct {
	Enabled     bool                 `json:"enabled"`
	ClassName   string               `json:"className"`
	Annotations map[string]string    `json:"annotations"`
	TLS         []v1beta1.IngressTLS `json:"tls"`
	Hosts       []IngressHost        `json:"hosts"`
}

type IngressHost

type IngressHost struct {
	Host  string        `json:"host"`
	Paths []IngressPath `json:"paths"`
}

type IngressPath

type IngressPath struct {
	Path     string `json:"path"`
	PathType string `json:"pathType"`
}

type Service

type Service struct {
	Type string `json:"type"`
	Port int    `json:"port"`
}

type ServiceAccount

type ServiceAccount struct {
	Create      bool              `json:"create"`
	Annotations map[string]string `json:"annotations"`
	Name        string            `json:"name"`
}

type Status

type Status struct {
	Status   hlfv1alpha1.DeploymentStatus
	TLSCert  string
	NodePort int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL