Documentation ¶
Index ¶
- Variables
- func CreateDefaultCA(conf hlfv1alpha1.FabricCAItemConf) (*x509.Certificate, *ecdsa.PrivateKey, error)
- func CreateDefaultTLSCA(clientSet *kubernetes.Clientset, spec hlfv1alpha1.FabricCASpec) (*x509.Certificate, *ecdsa.PrivateKey, error)
- func GetDeploymentName(releaseName string) string
- func GetServiceName(releaseName string) string
- func Reconcile(req ctrl.Request, r *FabricCAReconciler, cfg *action.Configuration) (ctrl.Result, error)
- type Affiliation
- type Affinity
- type ConfigurationFiles
- type Cors
- type Database
- type FabricCAChart
- type FabricCAChartBCCSP
- type FabricCAChartBCCSPSW
- type FabricCAChartCFG
- type FabricCAChartCFGAffilitions
- type FabricCAChartCFGIdentities
- type FabricCAChartCRL
- type FabricCAChartCSR
- type FabricCAChartCSRCA
- type FabricCAChartIdentity
- type FabricCAChartIdentityAttrs
- type FabricCAChartIntermediate
- type FabricCAChartIntermediateEnrollment
- type FabricCAChartIntermediateParentServer
- type FabricCAChartIntermediateTLS
- type FabricCAChartIntermediateTLSClient
- type FabricCAChartItemConf
- type FabricCAChartMetrics
- type FabricCAChartMetricsStatsd
- type FabricCAChartNames
- type FabricCAChartRegistry
- type FabricCAChartSpecService
- type FabricCAReconciler
- type Image
- type Ingress
- type Istio
- type Msp
- type Mysql
- type Names
- type NodeSelector
- type Persistence
- type Requests
- type RequestsLimit
- type Resources
- type Service
- type ServiceMonitor
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClientK8s = errors.New("k8sAPIClientError")
)
Functions ¶
func CreateDefaultCA ¶
func CreateDefaultCA(conf hlfv1alpha1.FabricCAItemConf) (*x509.Certificate, *ecdsa.PrivateKey, error)
func CreateDefaultTLSCA ¶
func CreateDefaultTLSCA(clientSet *kubernetes.Clientset, spec hlfv1alpha1.FabricCASpec) (*x509.Certificate, *ecdsa.PrivateKey, error)
func GetDeploymentName ¶
func GetServiceName ¶
func Reconcile ¶
func Reconcile( req ctrl.Request, r *FabricCAReconciler, cfg *action.Configuration, ) (ctrl.Result, error)
Types ¶
type Affiliation ¶
type ConfigurationFiles ¶
type ConfigurationFiles struct {
MysqlCnf string `json:"mysql.cnf"`
}
type FabricCAChart ¶
type FabricCAChart struct { Istio Istio `json:"istio"` FullNameOverride string `json:"fullnameOverride"` Image Image `json:"image"` Service Service `json:"service"` Persistence Persistence `json:"persistence"` Msp Msp `json:"msp"` Database Database `json:"db"` Resources Resources `json:"resources"` NodeSelector NodeSelector `json:"nodeSelector"` Tolerations []corev1.Toleration `json:"tolerations"` Affinity Affinity `json:"affinity"` Metrics FabricCAChartMetrics `json:"metrics"` Debug bool `json:"debug"` CLRSizeLimit int `json:"clrsizelimit"` Ca FabricCAChartItemConf `json:"ca"` TLSCA FabricCAChartItemConf `json:"tlsCA"` Cors Cors `json:"cors"` ServiceMonitor ServiceMonitor `json:"serviceMonitor"` }
func GetConfig ¶
func GetConfig(conf *hlfv1alpha1.FabricCA, client *kubernetes.Clientset, chartName string, namespace string) (*FabricCAChart, error)
type FabricCAChartBCCSP ¶
type FabricCAChartBCCSP struct { Default string `json:"default"` SW FabricCAChartBCCSPSW `json:"sw"` }
type FabricCAChartBCCSPSW ¶
type FabricCAChartCFG ¶
type FabricCAChartCFG struct { Identities FabricCAChartCFGIdentities `json:"identities"` Affiliations FabricCAChartCFGAffilitions `json:"affiliations"` }
type FabricCAChartCFGAffilitions ¶
type FabricCAChartCFGAffilitions struct {
AllowRemove bool `json:"allowRemove"`
}
type FabricCAChartCFGIdentities ¶
type FabricCAChartCFGIdentities struct {
AllowRemove bool `json:"allowRemove"`
}
type FabricCAChartCRL ¶
type FabricCAChartCRL struct {
Expiry string `json:"expiry"`
}
type FabricCAChartCSR ¶
type FabricCAChartCSR struct { CN string `json:"cn"` Hosts []string `json:"hosts"` Names []FabricCAChartNames `json:"names"` CA FabricCAChartCSRCA `json:"ca"` }
type FabricCAChartCSRCA ¶
type FabricCAChartIdentity ¶
type FabricCAChartIdentity struct { Name string `json:"name"` Pass string `json:"pass"` Type string `json:"type"` Affiliation string `json:"affiliation"` Attrs FabricCAChartIdentityAttrs `json:"attrs"` }
type FabricCAChartIdentityAttrs ¶
type FabricCAChartIdentityAttrs struct { RegistrarRoles string `json:"hf.Registrar.Roles"` DelegateRoles string `json:"hf.Registrar.DelegateRoles"` Attributes string `json:"hf.Registrar.Attributes"` Revoker bool `json:"hf.Revoker"` IntermediateCA bool `json:"hf.IntermediateCA"` GenCRL bool `json:"hf.GenCRL"` AffiliationMgr bool `json:"hf.AffiliationMgr"` }
type FabricCAChartIntermediate ¶
type FabricCAChartIntermediate struct {
ParentServer FabricCAChartIntermediateParentServer `json:"parentServer"`
}
type FabricCAChartIntermediateTLS ¶
type FabricCAChartIntermediateTLS struct { CertFiles []string `json:"certFiles"` Client FabricCAChartIntermediateTLSClient `json:"client"` }
type FabricCAChartItemConf ¶
type FabricCAChartItemConf struct { Name string `json:"name"` CFG FabricCAChartCFG `json:"cfg"` CSR FabricCAChartCSR `json:"csr"` CRL FabricCAChartCRL `json:"crl"` Registry FabricCAChartRegistry `json:"registry"` Intermediate FabricCAChartIntermediate `json:"intermediate"` BCCSP FabricCAChartBCCSP `json:"bccsp"` Affiliations []Affiliation `json:"affiliations"` }
type FabricCAChartMetrics ¶
type FabricCAChartMetrics struct { Provider string `json:"provider"` Statsd FabricCAChartMetricsStatsd `json:"statsd"` }
type FabricCAChartNames ¶
type FabricCAChartRegistry ¶
type FabricCAChartRegistry struct { MaxEnrollments int `json:"maxenrollments"` Identities []FabricCAChartIdentity `json:"identities"` }
type FabricCAChartSpecService ¶
type FabricCAChartSpecService struct {
ServiceType string `json:"type"`
}
type FabricCAReconciler ¶
type FabricCAReconciler struct { client.Client ChartPath string Log logr.Logger Scheme *runtime.Scheme Config *rest.Config ClientSet *kubernetes.Clientset }
FabricCAReconciler reconciles a FabricCA object
func (*FabricCAReconciler) Reconcile ¶
+kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabriccas,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabriccas/status,verbs=get;update;patch +kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabriccas/finalizers,verbs=update
func (*FabricCAReconciler) SetupWithManager ¶
func (r *FabricCAReconciler) SetupWithManager(mgr ctrl.Manager) error
type Msp ¶
type Msp struct { Keyfile string `json:"keyfile"` Certfile string `json:"certfile"` Chainfile string `json:"chainfile"` TLSCAKeyfile string `json:"tlsCAKeyFile"` TLSCACertfile string `json:"tlsCACertFile"` TLSCAChainfile string `json:"tlsCAChainfile"` TlsKeyFile string `json:"tlsKeyFile"` TlsCertFile string `json:"tlsCertFile"` }
type NodeSelector ¶
type NodeSelector struct { }
type Persistence ¶
type RequestsLimit ¶
type Resources ¶
type Resources struct { // +kubebuilder:default:="10m" Requests Requests `json:"requests"` // +kubebuilder:default:="256Mi" Limits RequestsLimit `json:"limits"` }
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 CACert string TLSCACert string NodeURL string NodePort int NodeHost string }
func GetCAState ¶
func GetCAState(clientSet *kubernetes.Clientset, ca *hlfv1alpha1.FabricCA, releaseName string, ns string) (*Status, error)
Click to show internal directories.
Click to hide internal directories.