Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSignCryptoMaterial(conf *hlfv1alpha1.FabricPeer, caName string, caurl string, enrollID string, ...) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
- func CreateTLSCryptoMaterial(conf *hlfv1alpha1.FabricPeer, caName string, caurl string, enrollID string, ...) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
- func CreateTLSOPSCryptoMaterial(conf *hlfv1alpha1.FabricPeer, caName string, caurl string, enrollID string, ...) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
- func GetPeerState(peer *hlfv1alpha1.FabricPeer, conf *action.Configuration, config *rest.Config, ...) (*hlfv1alpha1.FabricPeerStatus, error)
- type Affinity
- type Annotations
- type Client
- type ExternalBuilder
- type FabricPeerChart
- type FabricPeerReconciler
- type Gossip
- type HostAlias
- type Image
- type Istio
- type Limits
- type Logging
- type NodeSelector
- type Peer
- type PeerPersistence
- type PeerResources
- type Persistence
- type RBAC
- type Requests
- type Resources
- type Server
- type Service
- type ServiceMonitor
- type Status
- type TLS
- type TLSAuth
Constants ¶
View Source
const ChaincodePortName = "chaincode"
View Source
const EventPortName = "event"
View Source
const OperationsPortName = "operations"
View Source
const PeerPortName = "peer"
Variables ¶
View Source
var (
ErrClientK8s = errors.New("k8sAPIClientError")
)
Functions ¶
func CreateSignCryptoMaterial ¶
func CreateSignCryptoMaterial(conf *hlfv1alpha1.FabricPeer, caName string, caurl string, enrollID string, enrollSecret string, tlsCertString string) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
func CreateTLSCryptoMaterial ¶
func CreateTLSCryptoMaterial(conf *hlfv1alpha1.FabricPeer, caName string, caurl string, enrollID string, enrollSecret string, tlsCertString string, hosts []string) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
func CreateTLSOPSCryptoMaterial ¶
func CreateTLSOPSCryptoMaterial(conf *hlfv1alpha1.FabricPeer, caName string, caurl string, enrollID string, enrollSecret string, tlsCertString string, hosts []string) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
func GetPeerState ¶
func GetPeerState(peer *hlfv1alpha1.FabricPeer, conf *action.Configuration, config *rest.Config, releaseName string, ns string, svc *corev1.Service) (*hlfv1alpha1.FabricPeerStatus, error)
Types ¶
type Annotations ¶
type Annotations struct { }
type ExternalBuilder ¶ added in v1.1.1
type FabricPeerChart ¶
type FabricPeerChart struct { Istio Istio `json:"istio"` Replicas int `json:"replicas"` ExternalChaincodeBuilder bool `json:"externalChaincodeBuilder"` CouchdbUsername string `json:"couchdbUsername"` CouchdbPassword string `json:"couchdbPassword"` Image Image `json:"image"` Rbac RBAC `json:"rbac"` DockerSocketPath string `json:"dockerSocketPath"` Peer Peer `json:"peer"` Cert string `json:"cert"` Key string `json:"key"` Hosts []string `json:"hosts"` TLS TLS `json:"tls"` OPSTLS TLS `json:"opsTLS"` Cacert string `json:"cacert"` IntCacert string `json:"intCAcert"` Tlsrootcert string `json:"tlsrootcert"` Resources PeerResources `json:"resources,omitempty"` NodeSelector NodeSelector `json:"nodeSelector,omitempty"` Tolerations []interface{} `json:"tolerations"` Affinity Affinity `json:"affinity,omitempty"` ExternalHost string `json:"externalHost"` FullnameOverride string `json:"fullnameOverride"` HostAliases []HostAlias `json:"hostAliases"` Service Service `json:"service"` Persistence PeerPersistence `json:"persistence"` Logging Logging `json:"logging"` ExternalBuilders []ExternalBuilder `json:"externalBuilders"` ServiceMonitor ServiceMonitor `json:"serviceMonitor"` }
func GetConfig ¶
func GetConfig(conf *hlfv1alpha1.FabricPeer, client *kubernetes.Clientset, chartName string, namespace string, svc *corev1.Service) (*FabricPeerChart, error)
type FabricPeerReconciler ¶
type FabricPeerReconciler struct { client.Client ChartPath string Log logr.Logger Scheme *runtime.Scheme Config *rest.Config }
FabricPeerReconciler reconciles a FabricPeer object
func (*FabricPeerReconciler) SetupWithManager ¶
func (r *FabricPeerReconciler) SetupWithManager(mgr ctrl.Manager) error
type NodeSelector ¶
type NodeSelector struct { }
type PeerPersistence ¶
type PeerPersistence struct { Peer Persistence `json:"peer"` CouchDB Persistence `json:"couchdb"` Chaincode Persistence `json:"chaincode"` }
type PeerResources ¶ added in v1.2.1
type Persistence ¶
type Persistence struct { Enabled bool `json:"enabled"` Annotations Annotations `json:"annotations"` StorageClass string `json:"storageClass"` AccessMode string `json:"accessMode"` Size string `json:"size"` }
type Service ¶
type Service struct { Type string `json:"type"` PortRequest int `json:"portRequest"` PortEvent int `json:"portEvent"` PortOperations int `json:"portOperations"` NodePortOperations int `json:"nodePortOperations,omitempty"` NodePortEvent int `json:"nodePortEvent,omitempty"` NodePortRequest int `json:"nodePortRequest,omitempty"` }
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 Status ¶
type Status struct { Status hlfv1alpha1.DeploymentStatus TLSCert string NodePort int }
Click to show internal directories.
Click to hide internal directories.