operatorapi

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: Apache-2.0 Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	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 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 {
	PodLabels        map[string]string             `json:"podLabels"`
	ReplicaCount     int                           `json:"replicaCount"`
	LogoURL          string                        `json:"logoUrl"`
	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