ordnode

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 40 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 CreateSignCryptoMaterial added in v1.2.1

func CreateSignCryptoMaterial(client *kubernetes.Clientset, conf *hlfv1alpha1.FabricOrdererNode, enrollment *hlfv1alpha1.Component) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)

func CreateTLSAdminCryptoMaterial added in v1.2.1

func CreateTLSCryptoMaterial added in v1.2.1

func CreateTLSCryptoMaterial(client *kubernetes.Clientset, conf *hlfv1alpha1.FabricOrdererNode, enrollment *hlfv1alpha1.TLSComponent) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)

func GetOrdererDeployment added in v1.3.0

func GetOrdererDeployment(conf *action.Configuration, config *rest.Config, releaseName string, ns string) (*appsv1.Deployment, error)

func GetOrdererState

func GetOrdererState(conf *action.Configuration, config *rest.Config, releaseName string, ns string, ordNode *hlfv1alpha1.FabricOrdererNode) (*hlfv1alpha1.FabricOrdererNodeStatus, error)

func ReenrollSignCryptoMaterial added in v1.9.0

func ReenrollSignCryptoMaterial(
	client *kubernetes.Clientset,
	conf *hlfv1alpha1.FabricOrdererNode,
	enrollment *hlfv1alpha1.Component,
	signCertPem string,
	privateKey *ecdsa.PrivateKey,
) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)

func ReenrollTLSAdminCryptoMaterial added in v1.9.0

func ReenrollTLSAdminCryptoMaterial(
	client *kubernetes.Clientset,
	conf *hlfv1alpha1.FabricOrdererNode,
	enrollment *hlfv1alpha1.TLSComponent,
	tlsCertPem string,
	tlsKey *ecdsa.PrivateKey,
) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, *x509.Certificate, error)

func ReenrollTLSCryptoMaterial added in v1.9.0

func ReenrollTLSCryptoMaterial(
	client *kubernetes.Clientset,
	conf *hlfv1alpha1.FabricOrdererNode,
	enrollment *hlfv1alpha1.TLSComponent,
	tlsCertPem string,
	tlsKey *ecdsa.PrivateKey,
) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)

Types

type ConfigValidator added in v1.13.1

type ConfigValidator struct{}

ConfigValidator validates orderer node configuration

func (*ConfigValidator) ValidateOrdererNode added in v1.13.1

func (v *ConfigValidator) ValidateOrdererNode(node *hlfv1alpha1.FabricOrdererNode) error

type FabricOrdererNodeReconciler

type FabricOrdererNodeReconciler struct {
	client.Client
	ChartPath                  string
	Log                        logr.Logger
	Scheme                     *runtime.Scheme
	Config                     *rest.Config
	AutoRenewCertificates      bool
	AutoRenewCertificatesDelta time.Duration
	Wait                       bool
	Timeout                    time.Duration
	MaxHistory                 int
}

FabricOrdererNodeReconciler reconciles a FabricOrdererNode object

func (*FabricOrdererNodeReconciler) Reconcile

+kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabricorderernodes,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabricorderernodes/status,verbs=get;update;patch +kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabricorderernodes/finalizers,verbs=get;update;patch

func (*FabricOrdererNodeReconciler) SetupWithManager

func (r *FabricOrdererNodeReconciler) SetupWithManager(mgr ctrl.Manager, maxReconciles int) error

type GRPCProxy added in v1.7.0

type GRPCProxy struct {
	Enabled          bool                          `json:"enabled"`
	Image            string                        `json:"image"`
	Tag              string                        `json:"tag"`
	PullPolicy       string                        `json:"pullPolicy"`
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets"`
	Istio            Istio                         `json:"istio"`

	// +optional
	// +nullable
	Resources *corev1.ResourceRequirements `json:"resources"`
}

type GatewayApi added in v1.9.0

type GatewayApi struct {
	Port             int      `json:"port"`
	Hosts            []string `json:"hosts"`
	GatewayName      string   `json:"gatewayName"`
	GatewayNamespace string   `json:"gatewayNamespace"`
}

type HostAlias added in v1.2.1

type HostAlias struct {
	IP        string   `json:"ip"`
	Hostnames []string `json:"hostnames"`
}

type Istio added in v1.2.1

type Istio struct {
	Port           int      `json:"port"`
	Hosts          []string `json:"hosts"`
	IngressGateway string   `json:"ingressGateway"`
}

type LeaseManager added in v1.13.1

type LeaseManager struct {
	// contains filtered or unexported fields
}

LeaseManager manages certificate renewal leases

func NewLeaseManager added in v1.13.1

func NewLeaseManager(client kubernetes.Interface, leaseName, namespace string, logger logr.Logger) *LeaseManager

func (*LeaseManager) AcquireWithRetry added in v1.13.1

func (lm *LeaseManager) AcquireWithRetry(ctx context.Context, holderIdentity string, ttl int32, maxRetries int) (bool, error)

func (*LeaseManager) Release added in v1.13.1

func (lm *LeaseManager) Release(ctx context.Context, holderIdentity string) error

type Logging added in v1.2.1

type Logging struct {
	Spec string `json:"spec"`
}

type ServiceMonitor added in v1.2.1

type ServiceMonitor struct {
	Enabled           bool              `json:"enabled"`
	Labels            map[string]string `json:"labels"`
	Interval          string            `json:"interval"`
	ScrapeTimeout     string            `json:"scrapeTimeout"`
	Scheme            string            `json:"scheme"`
	Relabelings       []interface{}     `json:"relabelings"`
	TargetLabels      []interface{}     `json:"targetLabels"`
	MetricRelabelings []interface{}     `json:"metricRelabelings"`
	SampleLimit       int               `json:"sampleLimit"`
}

type Traefik added in v1.10.0

type Traefik struct {
	Entrypoints []string            `json:"entryPoints"`
	Middlewares []TraefikMiddleware `json:"middlewares"`
	Hosts       []string            `json:"hosts"`
}

type TraefikMiddleware added in v1.10.0

type TraefikMiddleware struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

Jump to

Keyboard shortcuts

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