operatorconfig

package
v1.0.6-1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitImage       = "registry.access.redhat.com/ubi8/ubi-minimal"
	LatestTag       = "latest"
	FabricCAVersion = "1.5.3"
	FabricVersion   = "2.4.3"
)

Variables

This section is empty.

Functions

func LoadFromConfigMap

func LoadFromConfigMap(nn k8sclient.ObjectKey, key string, client Client, operator *Operator) error

LoadFromConfigMap will read config map and return back operator config built on top by updating config values based on environment variables.

Types

type CA

type CA struct {
	Timeouts CATimeouts `json:"timeouts" yaml:"timeouts"`
}

CA defines configurable properties for CA custom resource

type CATimeouts

type CATimeouts struct {
	HSMInitJob cainit.HSMInitJobTimeouts `json:"hsmInitJob" yaml:"hsmInitJob"`
}

CATimeouts defines timeouts properties that can be configured

type Client

type Client interface {
	Get(ctx context.Context, key k8sclient.ObjectKey, obj k8sclient.Object) error
}

Client defines interface for making GET calls to kubernetes API server

type Config

type Config struct {
	CAInitConfig      *cainit.Config
	PeerInitConfig    *peerinit.Config
	OrdererInitConfig *ordererinit.Config
	ConsoleInitConfig *ConsoleConfig
	Offering          offering.Type
	Operator          Operator
	Logger            *logr.Logger
}

type Console

type Console struct {
	ApplyNetworkPolicy string `json:"applyNetworkPolicy" yaml:"applyNetworkPolicy"`
}

type ConsoleConfig

type ConsoleConfig struct {
	DeploymentFile           string
	NetworkPolicyIngressFile string
	NetworkPolicyDenyAllFile string
	ServiceFile              string
	DeployerServiceFile      string
	PVCFile                  string
	CMFile                   string
	ConsoleCMFile            string
	DeployerCMFile           string
	RoleFile                 string
	RoleBindingFile          string
	ServiceAccountFile       string
	IngressFile              string
	Ingressv1beta1File       string
	RouteFile                string
}

type DBMigrationTimeouts

type DBMigrationTimeouts struct {
	CouchDBStartUp common.Duration `json:"couchDBStartUp" yaml:"couchDbStartUp"`
	JobStart       common.Duration `json:"jobStart" yaml:"jobStart"`
	JobCompletion  common.Duration `json:"jobCompletion" yaml:"jobCompletion"`
	ReplicaChange  common.Duration `json:"replicaChange" yaml:"replicaChange"`
	PodDeletion    common.Duration `json:"podDeletion" yaml:"podDeletion"`
	PodStart       common.Duration `json:"podStart" yaml:"podStart"`
}

type Debug

type Debug struct {
	DisableDeploymentChecks string `json:"disableDeploymentChecks,omitempty" yaml:"disableDeploymentChecks,omitempty"`
}

type DisableRestart

type DisableRestart struct {
	Components bool `json:"components" yaml:"components"`
}

type Globals

type Globals struct {
	SecurityContext         *container.SecurityContext `json:"securityContext,omitempty" yaml:"securityContext,omitempty"`
	AllowKubernetesEighteen string                     `json:"allowKubernetesEighteen,omitempty" yaml:"allowKubernetesEighteen,omitempty"`
}

type Operator

type Operator struct {
	Orderer  Orderer            `json:"orderer" yaml:"orderer"`
	Peer     Peer               `json:"peer" yaml:"peer"`
	CA       CA                 `json:"ca" yaml:"ca"`
	Console  Console            `json:"console" yaml:"console"`
	Restart  Restart            `json:"restart" yaml:"restart"`
	Versions *deployer.Versions `json:"versions,omitempty" yaml:"versions,omitempty"`
	Globals  Globals            `json:"globals,omitempty" yaml:"globals,omitempty" envconfig:"optional"`
	Debug    Debug              `json:"debug" yaml:"debug"`
}

Operator defines operator configuration parameters

func (*Operator) SetDefaults

func (o *Operator) SetDefaults()

SetDefaults will set defaults as defined by to the operator configuration settings

type Orderer

type Orderer struct {
	Timeouts      OrdererTimeouts `json:"timeouts" yaml:"timeouts"`
	Renewals      OrdererRenewals `json:"renewals" yaml:"renewals"`
	DisableProbes string          `json:"disableProbes" yaml:"disableProbes"`
}

type OrdererRenewals

type OrdererRenewals struct {
	DisableTLScert bool `json:"disableTLScert" yaml:"disableTLScert"`
}

type OrdererTimeouts

type OrdererTimeouts struct {
	SecretPoll common.Duration               `json:"secretPollTimeout" yaml:"secretPollTimeout"`
	EnrollJob  enroller.HSMEnrollJobTimeouts `json:"enrollJob" yaml:"enrollJob"`
}

type Peer

type Peer struct {
	Timeouts PeerTimeouts `json:"timeouts" yaml:"timeouts"`
}

type PeerTimeouts

type PeerTimeouts struct {
	DBMigration DBMigrationTimeouts           `json:"dbMigration" yaml:"dbMigration"`
	EnrollJob   enroller.HSMEnrollJobTimeouts `json:"enrollJob" yaml:"enrollJob"`
}

type Restart

type Restart struct {
	WaitTime common.Duration `json:"waitTime" yaml:"waitTime"`
	Disable  DisableRestart  `json:"disable" yaml:"disable"`
	Timeout  common.Duration `json:"timeout" yaml:"timeout"`
}

Jump to

Keyboard shortcuts

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