operatorapi

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 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 GetConsoleState

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

Types

type Auth

type Auth struct {
	OIDCJWKS   string `json:"oidcJWKS"`
	OIDCIssuer string `json:"oidcIssuer"`
}

type Autoscaling

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

type FabricOperatorAPIReconciler

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

FabricOperatorAPIReconciler reconciles a FabricOperatorAPI object

func (*FabricOperatorAPIReconciler) Reconcile

func (*FabricOperatorAPIReconciler) SetupWithManager

func (r *FabricOperatorAPIReconciler) 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 HLFOperatorAPIChart

type HLFOperatorAPIChart struct {
	ReplicaCount     int                           `json:"replicaCount"`
	Image            Image                         `json:"image"`
	Hlf              HLFConfig                     `json:"hlf,omitempty"`
	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"`
	Auth             Auth                          `json:"auth"`
}

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