override

package
v1.0.5-1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INIT      = "init"
	ORDERER   = "orderer"
	PROXY     = "proxy"
	HSMCLIENT = "hsm-client"
)

Container names

Variables

This section is empty.

Functions

This section is empty.

Types

type OrdererConfig

type OrdererConfig interface {
	MergeWith(interface{}, bool) error
	ToBytes() ([]byte, error)
	UsingPKCS11() bool
	SetPKCS11Defaults(bool)
	GetBCCSPSection() *commonapi.BCCSP
	SetDefaultKeyStore()
}

type Override

type Override struct {
	Name   string
	Client controllerclient.Client
	Config *config.Config
}

func (*Override) AdminSecretExists

func (o *Override) AdminSecretExists(instance *current.IBPOrderer) bool

func (*Override) CommonDeploymentOverrides

func (o *Override) CommonDeploymentOverrides(instance *current.IBPOrderer, deployment *dep.Deployment) error

func (*Override) CreateDeployment

func (o *Override) CreateDeployment(instance *current.IBPOrderer, k8sDep *appsv1.Deployment) error

func (*Override) CreateEnvCM

func (o *Override) CreateEnvCM(instance *current.IBPOrderer, cm *corev1.ConfigMap) error

func (*Override) CreateOrderernode

func (o *Override) CreateOrderernode(instance *current.IBPOrderer, orderernode *current.IBPOrderer) error

func (*Override) CreatePVC

func (o *Override) CreatePVC(instance *current.IBPOrderer, pvc *corev1.PersistentVolumeClaim) error

func (*Override) CreateService

func (o *Override) CreateService(instance *current.IBPOrderer, service *corev1.Service) error

func (*Override) CreateServiceAccount

func (o *Override) CreateServiceAccount(instance *current.IBPOrderer, sa *corev1.ServiceAccount) error

func (*Override) Deployment

func (o *Override) Deployment(object v1.Object, deployment *appsv1.Deployment, action resources.Action) error

func (*Override) EnvCM

func (o *Override) EnvCM(object v1.Object, cm *corev1.ConfigMap, action resources.Action, options map[string]interface{}) error

func (*Override) GetAffinity

func (o *Override) GetAffinity(instance *current.IBPOrderer) *corev1.Affinity

func (*Override) OrdererNode

func (o *Override) OrdererNode(object v1.Object, orderernode *current.IBPOrderer, action resources.Action) error

func (*Override) PVC

func (o *Override) PVC(object v1.Object, pvc *corev1.PersistentVolumeClaim, action resources.Action) error

func (*Override) Service

func (o *Override) Service(object v1.Object, service *corev1.Service, action resources.Action) error

func (*Override) ServiceAccount

func (o *Override) ServiceAccount(object v1.Object, sa *corev1.ServiceAccount, action resources.Action) error

func (*Override) UpdateDeployment

func (o *Override) UpdateDeployment(instance *current.IBPOrderer, k8sDep *appsv1.Deployment) error

func (*Override) UpdateEnvCM

func (o *Override) UpdateEnvCM(instance *current.IBPOrderer, cm *corev1.ConfigMap) error

func (*Override) UpdateOrderernode

func (o *Override) UpdateOrderernode(instance *current.IBPOrderer, deployment *current.IBPOrderer) error

func (*Override) UpdatePVC

func (o *Override) UpdatePVC(instance *current.IBPOrderer, pvc *corev1.PersistentVolumeClaim) error

func (*Override) UpdateService

func (o *Override) UpdateService(instance *current.IBPOrderer, service *corev1.Service) error

func (*Override) UpdateServiceAccount

func (o *Override) UpdateServiceAccount(instance *current.IBPOrderer, sa *corev1.ServiceAccount) error

Jump to

Keyboard shortcuts

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