diff --git a/api/hlf.kungfusoftware.es/v1alpha1/hlf_types.go b/api/hlf.kungfusoftware.es/v1alpha1/hlf_types.go index 4fc233ed..3d938cf0 100644 --- a/api/hlf.kungfusoftware.es/v1alpha1/hlf_types.go +++ b/api/hlf.kungfusoftware.es/v1alpha1/hlf_types.go @@ -2259,16 +2259,12 @@ type FabricChaincodeTemplateStatus struct { } // +genclient -// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:defaulter-gen=true // +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster,shortName=fabricchaincodetemplate,singular=fabricchaincodetemplate +// +kubebuilder:resource:scope=Namespaced,shortName=fabricchaincodetemplate,singular=fabricchaincodetemplate // +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.status" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:object:root=true -// +kubebuilder:subresource:status -// +k8s:openapi-gen=true // FabricChaincodeTemplate is the Schema for the hlfs API type FabricChaincodeTemplate struct { @@ -2371,7 +2367,7 @@ type FabricChaincodeTemplateSpec struct { func init() { SchemeBuilder.Register(&FabricPeer{}, &FabricPeerList{}) - SchemeBuilder.Register(&FabricChaincode{}, &FabricChaincodeList{}) + SchemeBuilder.Register(&FabricChaincodeTemplate{}, &FabricChaincodeTemplateList{}) SchemeBuilder.Register(&FabricOrderingService{}, &FabricOrderingServiceList{}) SchemeBuilder.Register(&FabricCA{}, &FabricCAList{}) SchemeBuilder.Register(&FabricOrdererNode{}, &FabricOrdererNodeList{}) diff --git a/api/hlf.kungfusoftware.es/v1alpha1/zz_generated.deepcopy.go b/api/hlf.kungfusoftware.es/v1alpha1/zz_generated.deepcopy.go index e6a960dd..f2c773a1 100644 --- a/api/hlf.kungfusoftware.es/v1alpha1/zz_generated.deepcopy.go +++ b/api/hlf.kungfusoftware.es/v1alpha1/zz_generated.deepcopy.go @@ -2,35 +2,25 @@ // +build !ignore_autogenerated /* - - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by controller-gen. DO NOT EDIT. + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha1 import ( - "github.com/kfsoftware/hlf-operator/pkg/status" - "k8s.io/api/core/v1" - "k8s.io/api/networking/v1beta1" + status "github.com/kfsoftware/hlf-operator/pkg/status" + v1 "k8s.io/api/core/v1" + v1beta1 "k8s.io/api/networking/v1beta1" runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AddressOverride) DeepCopyInto(out *AddressOverride) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressOverride. @@ -46,6 +36,7 @@ func (in *AddressOverride) DeepCopy() *AddressOverride { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ApplicationCapabilities) DeepCopyInto(out *ApplicationCapabilities) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationCapabilities. @@ -61,6 +52,7 @@ func (in *ApplicationCapabilities) DeepCopy() *ApplicationCapabilities { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CA) DeepCopyInto(out *CA) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CA. @@ -76,6 +68,7 @@ func (in *CA) DeepCopy() *CA { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CARef) DeepCopyInto(out *CARef) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CARef. @@ -96,6 +89,7 @@ func (in *Catls) DeepCopyInto(out *Catls) { *out = new(SecretRefNSKey) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Catls. @@ -111,6 +105,7 @@ func (in *Catls) DeepCopy() *Catls { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ChannelCapabilities) DeepCopyInto(out *ChannelCapabilities) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelCapabilities. @@ -129,6 +124,7 @@ func (in *ChannelConfig) DeepCopyInto(out *ChannelConfig) { out.OrdererCapabilities = in.OrdererCapabilities out.ApplicationCapabilities = in.ApplicationCapabilities out.ChannelCapabilities = in.ChannelCapabilities + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelConfig. @@ -150,6 +146,7 @@ func (in *Component) DeepCopyInto(out *Component) { *out = new(ExternalCertificate) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component. @@ -166,6 +163,7 @@ func (in *Component) DeepCopy() *Component { func (in *Condition) DeepCopyInto(out *Condition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition. @@ -186,6 +184,7 @@ func (in *Cors) DeepCopyInto(out *Cors) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cors. @@ -206,6 +205,7 @@ func (in *Csr) DeepCopyInto(out *Csr) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Csr. @@ -223,6 +223,7 @@ func (in *Enrollment) DeepCopyInto(out *Enrollment) { *out = *in in.Component.DeepCopyInto(&out.Component) in.TLS.DeepCopyInto(&out.TLS) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Enrollment. @@ -243,6 +244,7 @@ func (in *ExternalBuilder) DeepCopyInto(out *ExternalBuilder) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalBuilder. @@ -258,6 +260,7 @@ func (in *ExternalBuilder) DeepCopy() *ExternalBuilder { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExternalCertificate) DeepCopyInto(out *ExternalCertificate) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalCertificate. @@ -277,6 +280,7 @@ func (in *FabricCA) DeepCopyInto(out *FabricCA) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCA. @@ -305,6 +309,7 @@ func (in *FabricCAAffiliation) DeepCopyInto(out *FabricCAAffiliation) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAAffiliation. @@ -321,6 +326,7 @@ func (in *FabricCAAffiliation) DeepCopy() *FabricCAAffiliation { func (in *FabricCABCCSP) DeepCopyInto(out *FabricCABCCSP) { *out = *in out.SW = in.SW + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCABCCSP. @@ -336,6 +342,7 @@ func (in *FabricCABCCSP) DeepCopy() *FabricCABCCSP { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCABCCSPSW) DeepCopyInto(out *FabricCABCCSPSW) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCABCCSPSW. @@ -353,6 +360,7 @@ func (in *FabricCACFG) DeepCopyInto(out *FabricCACFG) { *out = *in out.Identities = in.Identities out.Affiliations = in.Affiliations + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCACFG. @@ -368,6 +376,7 @@ func (in *FabricCACFG) DeepCopy() *FabricCACFG { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCACFGAffilitions) DeepCopyInto(out *FabricCACFGAffilitions) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCACFGAffilitions. @@ -383,6 +392,7 @@ func (in *FabricCACFGAffilitions) DeepCopy() *FabricCACFGAffilitions { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCACFGIdentities) DeepCopyInto(out *FabricCACFGIdentities) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCACFGIdentities. @@ -398,6 +408,7 @@ func (in *FabricCACFGIdentities) DeepCopy() *FabricCACFGIdentities { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCACRL) DeepCopyInto(out *FabricCACRL) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCACRL. @@ -424,6 +435,7 @@ func (in *FabricCACSR) DeepCopyInto(out *FabricCACSR) { copy(*out, *in) } out.CA = in.CA + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCACSR. @@ -439,6 +451,7 @@ func (in *FabricCACSR) DeepCopy() *FabricCACSR { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCACSRCA) DeepCopyInto(out *FabricCACSRCA) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCACSRCA. @@ -459,6 +472,7 @@ func (in *FabricCAClientAuth) DeepCopyInto(out *FabricCAClientAuth) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAClientAuth. @@ -479,6 +493,7 @@ func (in *FabricCACrypto) DeepCopyInto(out *FabricCACrypto) { *out = new(SecretRef) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCACrypto. @@ -494,6 +509,7 @@ func (in *FabricCACrypto) DeepCopy() *FabricCACrypto { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCADatabase) DeepCopyInto(out *FabricCADatabase) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCADatabase. @@ -510,6 +526,7 @@ func (in *FabricCADatabase) DeepCopy() *FabricCADatabase { func (in *FabricCAIdentity) DeepCopyInto(out *FabricCAIdentity) { *out = *in out.Attrs = in.Attrs + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAIdentity. @@ -525,6 +542,7 @@ func (in *FabricCAIdentity) DeepCopy() *FabricCAIdentity { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCAIdentityAttrs) DeepCopyInto(out *FabricCAIdentityAttrs) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAIdentityAttrs. @@ -541,6 +559,7 @@ func (in *FabricCAIdentityAttrs) DeepCopy() *FabricCAIdentityAttrs { func (in *FabricCAIntermediate) DeepCopyInto(out *FabricCAIntermediate) { *out = *in out.ParentServer = in.ParentServer + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAIntermediate. @@ -556,6 +575,7 @@ func (in *FabricCAIntermediate) DeepCopy() *FabricCAIntermediate { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCAIntermediateEnrollment) DeepCopyInto(out *FabricCAIntermediateEnrollment) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAIntermediateEnrollment. @@ -571,6 +591,7 @@ func (in *FabricCAIntermediateEnrollment) DeepCopy() *FabricCAIntermediateEnroll // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCAIntermediateParentServer) DeepCopyInto(out *FabricCAIntermediateParentServer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAIntermediateParentServer. @@ -592,6 +613,7 @@ func (in *FabricCAIntermediateTLS) DeepCopyInto(out *FabricCAIntermediateTLS) { copy(*out, *in) } out.Client = in.Client + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAIntermediateTLS. @@ -607,6 +629,7 @@ func (in *FabricCAIntermediateTLS) DeepCopy() *FabricCAIntermediateTLS { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCAIntermediateTLSClient) DeepCopyInto(out *FabricCAIntermediateTLSClient) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAIntermediateTLSClient. @@ -646,6 +669,7 @@ func (in *FabricCAItemConf) DeepCopyInto(out *FabricCAItemConf) { *out = new(FabricCACrypto) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAItemConf. @@ -670,6 +694,7 @@ func (in *FabricCAList) DeepCopyInto(out *FabricCAList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAList. @@ -682,14 +707,6 @@ func (in *FabricCAList) DeepCopy() *FabricCAList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricCAList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCAMetrics) DeepCopyInto(out *FabricCAMetrics) { *out = *in @@ -698,6 +715,7 @@ func (in *FabricCAMetrics) DeepCopyInto(out *FabricCAMetrics) { *out = new(FabricCAMetricsStatsd) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAMetrics. @@ -713,6 +731,7 @@ func (in *FabricCAMetrics) DeepCopy() *FabricCAMetrics { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCAMetricsStatsd) DeepCopyInto(out *FabricCAMetricsStatsd) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAMetricsStatsd. @@ -728,6 +747,7 @@ func (in *FabricCAMetricsStatsd) DeepCopy() *FabricCAMetricsStatsd { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCANames) DeepCopyInto(out *FabricCANames) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCANames. @@ -748,6 +768,7 @@ func (in *FabricCARegistry) DeepCopyInto(out *FabricCARegistry) { *out = make([]FabricCAIdentity, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCARegistry. @@ -765,6 +786,7 @@ func (in *FabricCASigning) DeepCopyInto(out *FabricCASigning) { *out = *in in.Default.DeepCopyInto(&out.Default) in.Profiles.DeepCopyInto(&out.Profiles) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASigning. @@ -785,6 +807,7 @@ func (in *FabricCASigningDefault) DeepCopyInto(out *FabricCASigningDefault) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASigningDefault. @@ -802,6 +825,7 @@ func (in *FabricCASigningProfiles) DeepCopyInto(out *FabricCASigningProfiles) { *out = *in in.CA.DeepCopyInto(&out.CA) in.TLS.DeepCopyInto(&out.TLS) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASigningProfiles. @@ -823,6 +847,7 @@ func (in *FabricCASigningSignProfile) DeepCopyInto(out *FabricCASigningSignProfi copy(*out, *in) } out.CAConstraint = in.CAConstraint + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASigningSignProfile. @@ -838,6 +863,7 @@ func (in *FabricCASigningSignProfile) DeepCopy() *FabricCASigningSignProfile { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCASigningSignProfileConstraint) DeepCopyInto(out *FabricCASigningSignProfileConstraint) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASigningSignProfileConstraint. @@ -858,6 +884,7 @@ func (in *FabricCASigningTLSProfile) DeepCopyInto(out *FabricCASigningTLSProfile *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASigningTLSProfile. @@ -950,6 +977,7 @@ func (in *FabricCASpec) DeepCopyInto(out *FabricCASpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASpec. @@ -965,6 +993,7 @@ func (in *FabricCASpec) DeepCopy() *FabricCASpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCASpecService) DeepCopyInto(out *FabricCASpecService) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASpecService. @@ -987,6 +1016,7 @@ func (in *FabricCAStatus) DeepCopyInto(out *FabricCAStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCAStatus. @@ -1002,6 +1032,7 @@ func (in *FabricCAStatus) DeepCopy() *FabricCAStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricCASubject) DeepCopyInto(out *FabricCASubject) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCASubject. @@ -1018,6 +1049,7 @@ func (in *FabricCASubject) DeepCopy() *FabricCASubject { func (in *FabricCATLSConf) DeepCopyInto(out *FabricCATLSConf) { *out = *in out.Subject = in.Subject + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricCATLSConf. @@ -1037,6 +1069,7 @@ func (in *FabricChaincode) DeepCopyInto(out *FabricChaincode) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricChaincode. @@ -1069,6 +1102,7 @@ func (in *FabricChaincodeList) DeepCopyInto(out *FabricChaincodeList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricChaincodeList. @@ -1081,14 +1115,6 @@ func (in *FabricChaincodeList) DeepCopy() *FabricChaincodeList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricChaincodeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricChaincodeSpec) DeepCopyInto(out *FabricChaincodeSpec) { *out = *in @@ -1164,6 +1190,7 @@ func (in *FabricChaincodeSpec) DeepCopyInto(out *FabricChaincodeSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricChaincodeSpec. @@ -1186,6 +1213,7 @@ func (in *FabricChaincodeStatus) DeepCopyInto(out *FabricChaincodeStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricChaincodeStatus. @@ -1205,6 +1233,7 @@ func (in *FabricChaincodeTemplate) DeepCopyInto(out *FabricChaincodeTemplate) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricChaincodeTemplate. @@ -1237,6 +1266,7 @@ func (in *FabricChaincodeTemplateList) DeepCopyInto(out *FabricChaincodeTemplate (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricChaincodeTemplateList. @@ -1249,14 +1279,6 @@ func (in *FabricChaincodeTemplateList) DeepCopy() *FabricChaincodeTemplateList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricChaincodeTemplateList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricChaincodeTemplateSpec) DeepCopyInto(out *FabricChaincodeTemplateSpec) { *out = *in @@ -1332,6 +1354,7 @@ func (in *FabricChaincodeTemplateSpec) DeepCopyInto(out *FabricChaincodeTemplate (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricChaincodeTemplateSpec. @@ -1354,6 +1377,7 @@ func (in *FabricChaincodeTemplateStatus) DeepCopyInto(out *FabricChaincodeTempla (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricChaincodeTemplateStatus. @@ -1373,6 +1397,7 @@ func (in *FabricExplorer) DeepCopyInto(out *FabricExplorer) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricExplorer. @@ -1405,6 +1430,7 @@ func (in *FabricExplorerList) DeepCopyInto(out *FabricExplorerList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricExplorerList. @@ -1417,18 +1443,11 @@ func (in *FabricExplorerList) DeepCopy() *FabricExplorerList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricExplorerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricExplorerSpec) DeepCopyInto(out *FabricExplorerSpec) { *out = *in in.Resources.DeepCopyInto(&out.Resources) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricExplorerSpec. @@ -1451,6 +1470,7 @@ func (in *FabricExplorerStatus) DeepCopyInto(out *FabricExplorerStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricExplorerStatus. @@ -1466,6 +1486,7 @@ func (in *FabricExplorerStatus) DeepCopy() *FabricExplorerStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricFSServer) DeepCopyInto(out *FabricFSServer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFSServer. @@ -1485,6 +1506,7 @@ func (in *FabricFollowerChannel) DeepCopyInto(out *FabricFollowerChannel) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFollowerChannel. @@ -1508,6 +1530,7 @@ func (in *FabricFollowerChannel) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricFollowerChannelAnchorPeer) DeepCopyInto(out *FabricFollowerChannelAnchorPeer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFollowerChannelAnchorPeer. @@ -1523,6 +1546,7 @@ func (in *FabricFollowerChannelAnchorPeer) DeepCopy() *FabricFollowerChannelAnch // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricFollowerChannelExternalPeer) DeepCopyInto(out *FabricFollowerChannelExternalPeer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFollowerChannelExternalPeer. @@ -1547,6 +1571,7 @@ func (in *FabricFollowerChannelList) DeepCopyInto(out *FabricFollowerChannelList (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFollowerChannelList. @@ -1559,17 +1584,10 @@ func (in *FabricFollowerChannelList) DeepCopy() *FabricFollowerChannelList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricFollowerChannelList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricFollowerChannelOrderer) DeepCopyInto(out *FabricFollowerChannelOrderer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFollowerChannelOrderer. @@ -1585,6 +1603,7 @@ func (in *FabricFollowerChannelOrderer) DeepCopy() *FabricFollowerChannelOrderer // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricFollowerChannelPeer) DeepCopyInto(out *FabricFollowerChannelPeer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFollowerChannelPeer. @@ -1621,6 +1640,7 @@ func (in *FabricFollowerChannelSpec) DeepCopyInto(out *FabricFollowerChannelSpec copy(*out, *in) } out.HLFIdentity = in.HLFIdentity + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFollowerChannelSpec. @@ -1643,6 +1663,7 @@ func (in *FabricFollowerChannelStatus) DeepCopyInto(out *FabricFollowerChannelSt (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricFollowerChannelStatus. @@ -1663,6 +1684,7 @@ func (in *FabricGatewayApi) DeepCopyInto(out *FabricGatewayApi) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricGatewayApi. @@ -1682,6 +1704,7 @@ func (in *FabricIdentity) DeepCopyInto(out *FabricIdentity) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricIdentity. @@ -1714,6 +1737,7 @@ func (in *FabricIdentityList) DeepCopyInto(out *FabricIdentityList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricIdentityList. @@ -1726,14 +1750,6 @@ func (in *FabricIdentityList) DeepCopy() *FabricIdentityList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricIdentityList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricIdentityRegister) DeepCopyInto(out *FabricIdentityRegister) { *out = *in @@ -1742,6 +1758,7 @@ func (in *FabricIdentityRegister) DeepCopyInto(out *FabricIdentityRegister) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricIdentityRegister. @@ -1763,6 +1780,7 @@ func (in *FabricIdentitySpec) DeepCopyInto(out *FabricIdentitySpec) { *out = new(FabricIdentityRegister) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricIdentitySpec. @@ -1785,6 +1803,7 @@ func (in *FabricIdentityStatus) DeepCopyInto(out *FabricIdentityStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricIdentityStatus. @@ -1805,6 +1824,7 @@ func (in *FabricIstio) DeepCopyInto(out *FabricIstio) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricIstio. @@ -1824,6 +1844,7 @@ func (in *FabricMainChannel) DeepCopyInto(out *FabricMainChannel) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannel. @@ -1847,6 +1868,7 @@ func (in *FabricMainChannel) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelAdminOrdererOrganizationSpec) DeepCopyInto(out *FabricMainChannelAdminOrdererOrganizationSpec) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelAdminOrdererOrganizationSpec. @@ -1862,6 +1884,7 @@ func (in *FabricMainChannelAdminOrdererOrganizationSpec) DeepCopy() *FabricMainC // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelAdminPeerOrganizationSpec) DeepCopyInto(out *FabricMainChannelAdminPeerOrganizationSpec) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelAdminPeerOrganizationSpec. @@ -1877,6 +1900,7 @@ func (in *FabricMainChannelAdminPeerOrganizationSpec) DeepCopy() *FabricMainChan // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelAnchorPeer) DeepCopyInto(out *FabricMainChannelAnchorPeer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelAnchorPeer. @@ -1919,6 +1943,7 @@ func (in *FabricMainChannelApplicationConfig) DeepCopyInto(out *FabricMainChanne } } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelApplicationConfig. @@ -1960,6 +1985,7 @@ func (in *FabricMainChannelConfig) DeepCopyInto(out *FabricMainChannelConfig) { } } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelConfig. @@ -1975,6 +2001,7 @@ func (in *FabricMainChannelConfig) DeepCopy() *FabricMainChannelConfig { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelConsenter) DeepCopyInto(out *FabricMainChannelConsenter) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelConsenter. @@ -1995,6 +2022,7 @@ func (in *FabricMainChannelEtcdRaft) DeepCopyInto(out *FabricMainChannelEtcdRaft *out = new(FabricMainChannelEtcdRaftOptions) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelEtcdRaft. @@ -2010,6 +2038,7 @@ func (in *FabricMainChannelEtcdRaft) DeepCopy() *FabricMainChannelEtcdRaft { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelEtcdRaftOptions) DeepCopyInto(out *FabricMainChannelEtcdRaftOptions) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelEtcdRaftOptions. @@ -2025,6 +2054,7 @@ func (in *FabricMainChannelEtcdRaftOptions) DeepCopy() *FabricMainChannelEtcdRaf // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelExternalOrdererNode) DeepCopyInto(out *FabricMainChannelExternalOrdererNode) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelExternalOrdererNode. @@ -2045,6 +2075,7 @@ func (in *FabricMainChannelExternalOrdererOrganization) DeepCopyInto(out *Fabric *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelExternalOrdererOrganization. @@ -2060,6 +2091,7 @@ func (in *FabricMainChannelExternalOrdererOrganization) DeepCopy() *FabricMainCh // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelExternalPeerOrganization) DeepCopyInto(out *FabricMainChannelExternalPeerOrganization) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelExternalPeerOrganization. @@ -2075,6 +2107,7 @@ func (in *FabricMainChannelExternalPeerOrganization) DeepCopy() *FabricMainChann // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelIdentity) DeepCopyInto(out *FabricMainChannelIdentity) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelIdentity. @@ -2099,6 +2132,7 @@ func (in *FabricMainChannelList) DeepCopyInto(out *FabricMainChannelList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelList. @@ -2111,17 +2145,10 @@ func (in *FabricMainChannelList) DeepCopy() *FabricMainChannelList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricMainChannelList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelOrdererBatchSize) DeepCopyInto(out *FabricMainChannelOrdererBatchSize) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelOrdererBatchSize. @@ -2163,6 +2190,7 @@ func (in *FabricMainChannelOrdererConfig) DeepCopyInto(out *FabricMainChannelOrd *out = new(FabricMainChannelEtcdRaft) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelOrdererConfig. @@ -2178,6 +2206,7 @@ func (in *FabricMainChannelOrdererConfig) DeepCopy() *FabricMainChannelOrdererCo // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelOrdererNode) DeepCopyInto(out *FabricMainChannelOrdererNode) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelOrdererNode. @@ -2208,6 +2237,7 @@ func (in *FabricMainChannelOrdererOrganization) DeepCopyInto(out *FabricMainChan *out = make([]FabricMainChannelExternalOrdererNode, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelOrdererOrganization. @@ -2223,6 +2253,7 @@ func (in *FabricMainChannelOrdererOrganization) DeepCopy() *FabricMainChannelOrd // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelPeerOrganization) DeepCopyInto(out *FabricMainChannelPeerOrganization) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelPeerOrganization. @@ -2238,6 +2269,7 @@ func (in *FabricMainChannelPeerOrganization) DeepCopy() *FabricMainChannelPeerOr // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricMainChannelPoliciesConfig) DeepCopyInto(out *FabricMainChannelPoliciesConfig) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelPoliciesConfig. @@ -2304,6 +2336,7 @@ func (in *FabricMainChannelSpec) DeepCopyInto(out *FabricMainChannelSpec) { *out = make([]FabricMainChannelConsenter, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelSpec. @@ -2326,6 +2359,7 @@ func (in *FabricMainChannelStatus) DeepCopyInto(out *FabricMainChannelStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricMainChannelStatus. @@ -2345,6 +2379,7 @@ func (in *FabricNetworkConfig) DeepCopyInto(out *FabricNetworkConfig) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfig. @@ -2368,6 +2403,7 @@ func (in *FabricNetworkConfig) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricNetworkConfigCA) DeepCopyInto(out *FabricNetworkConfigCA) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigCA. @@ -2383,6 +2419,7 @@ func (in *FabricNetworkConfigCA) DeepCopy() *FabricNetworkConfigCA { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricNetworkConfigExternalOrderer) DeepCopyInto(out *FabricNetworkConfigExternalOrderer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigExternalOrderer. @@ -2398,6 +2435,7 @@ func (in *FabricNetworkConfigExternalOrderer) DeepCopy() *FabricNetworkConfigExt // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricNetworkConfigExternalPeer) DeepCopyInto(out *FabricNetworkConfigExternalPeer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigExternalPeer. @@ -2413,6 +2451,7 @@ func (in *FabricNetworkConfigExternalPeer) DeepCopy() *FabricNetworkConfigExtern // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricNetworkConfigIdentity) DeepCopyInto(out *FabricNetworkConfigIdentity) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigIdentity. @@ -2437,6 +2476,7 @@ func (in *FabricNetworkConfigList) DeepCopyInto(out *FabricNetworkConfigList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigList. @@ -2449,17 +2489,10 @@ func (in *FabricNetworkConfigList) DeepCopy() *FabricNetworkConfigList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricNetworkConfigList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricNetworkConfigOrgPeer) DeepCopyInto(out *FabricNetworkConfigOrgPeer) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigOrgPeer. @@ -2480,6 +2513,7 @@ func (in *FabricNetworkConfigOrganization) DeepCopyInto(out *FabricNetworkConfig *out = make([]FabricNetworkConfigOrgPeer, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigOrganization. @@ -2537,6 +2571,7 @@ func (in *FabricNetworkConfigSpec) DeepCopyInto(out *FabricNetworkConfigSpec) { *out = make([]FabricNetworkConfigExternalPeer, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigSpec. @@ -2559,6 +2594,7 @@ func (in *FabricNetworkConfigStatus) DeepCopyInto(out *FabricNetworkConfigStatus (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricNetworkConfigStatus. @@ -2578,6 +2614,7 @@ func (in *FabricOperationsConsole) DeepCopyInto(out *FabricOperationsConsole) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperationsConsole. @@ -2601,6 +2638,7 @@ func (in *FabricOperationsConsole) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricOperationsConsoleAuth) DeepCopyInto(out *FabricOperationsConsoleAuth) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperationsConsoleAuth. @@ -2639,6 +2677,7 @@ func (in *FabricOperationsConsoleCouchDB) DeepCopyInto(out *FabricOperationsCons (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperationsConsoleCouchDB. @@ -2663,6 +2702,7 @@ func (in *FabricOperationsConsoleList) DeepCopyInto(out *FabricOperationsConsole (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperationsConsoleList. @@ -2675,14 +2715,6 @@ func (in *FabricOperationsConsoleList) DeepCopy() *FabricOperationsConsoleList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricOperationsConsoleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricOperationsConsoleSpec) DeepCopyInto(out *FabricOperationsConsoleSpec) { *out = *in @@ -2714,6 +2746,7 @@ func (in *FabricOperationsConsoleSpec) DeepCopyInto(out *FabricOperationsConsole (*in).DeepCopyInto(*out) } in.Ingress.DeepCopyInto(&out.Ingress) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperationsConsoleSpec. @@ -2736,6 +2769,7 @@ func (in *FabricOperationsConsoleStatus) DeepCopyInto(out *FabricOperationsConso (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperationsConsoleStatus. @@ -2755,6 +2789,7 @@ func (in *FabricOperatorAPI) DeepCopyInto(out *FabricOperatorAPI) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorAPI. @@ -2778,6 +2813,7 @@ func (in *FabricOperatorAPI) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricOperatorAPIAuth) DeepCopyInto(out *FabricOperatorAPIAuth) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorAPIAuth. @@ -2794,6 +2830,7 @@ func (in *FabricOperatorAPIAuth) DeepCopy() *FabricOperatorAPIAuth { func (in *FabricOperatorAPIHLFConfig) DeepCopyInto(out *FabricOperatorAPIHLFConfig) { *out = *in out.NetworkConfig = in.NetworkConfig + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorAPIHLFConfig. @@ -2818,6 +2855,7 @@ func (in *FabricOperatorAPIList) DeepCopyInto(out *FabricOperatorAPIList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorAPIList. @@ -2830,17 +2868,10 @@ func (in *FabricOperatorAPIList) DeepCopy() *FabricOperatorAPIList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricOperatorAPIList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricOperatorAPINetworkConfig) DeepCopyInto(out *FabricOperatorAPINetworkConfig) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorAPINetworkConfig. @@ -2900,6 +2931,7 @@ func (in *FabricOperatorAPISpec) DeepCopyInto(out *FabricOperatorAPISpec) { *out = new(v1.ResourceRequirements) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorAPISpec. @@ -2922,6 +2954,7 @@ func (in *FabricOperatorAPIStatus) DeepCopyInto(out *FabricOperatorAPIStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorAPIStatus. @@ -2941,6 +2974,7 @@ func (in *FabricOperatorUI) DeepCopyInto(out *FabricOperatorUI) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorUI. @@ -2964,6 +2998,7 @@ func (in *FabricOperatorUI) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricOperatorUIAuth) DeepCopyInto(out *FabricOperatorUIAuth) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorUIAuth. @@ -2988,6 +3023,7 @@ func (in *FabricOperatorUIList) DeepCopyInto(out *FabricOperatorUIList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorUIList. @@ -3000,14 +3036,6 @@ func (in *FabricOperatorUIList) DeepCopy() *FabricOperatorUIList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricOperatorUIList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricOperatorUISpec) DeepCopyInto(out *FabricOperatorUISpec) { *out = *in @@ -3046,6 +3074,7 @@ func (in *FabricOperatorUISpec) DeepCopyInto(out *FabricOperatorUISpec) { *out = new(v1.ResourceRequirements) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorUISpec. @@ -3068,6 +3097,7 @@ func (in *FabricOperatorUIStatus) DeepCopyInto(out *FabricOperatorUIStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOperatorUIStatus. @@ -3087,6 +3117,7 @@ func (in *FabricOrdererNode) DeepCopyInto(out *FabricOrdererNode) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOrdererNode. @@ -3119,6 +3150,7 @@ func (in *FabricOrdererNodeList) DeepCopyInto(out *FabricOrdererNodeList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOrdererNodeList. @@ -3131,14 +3163,6 @@ func (in *FabricOrdererNodeList) DeepCopy() *FabricOrdererNodeList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricOrdererNodeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricOrdererNodeSpec) DeepCopyInto(out *FabricOrdererNodeSpec) { *out = *in @@ -3244,6 +3268,7 @@ func (in *FabricOrdererNodeSpec) DeepCopyInto(out *FabricOrdererNodeSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOrdererNodeSpec. @@ -3270,6 +3295,7 @@ func (in *FabricOrdererNodeStatus) DeepCopyInto(out *FabricOrdererNodeStatus) { in, out := &in.LastCertificateUpdate, &out.LastCertificateUpdate *out = (*in).DeepCopy() } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOrdererNodeStatus. @@ -3289,6 +3315,7 @@ func (in *FabricOrderingService) DeepCopyInto(out *FabricOrderingService) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOrderingService. @@ -3321,6 +3348,7 @@ func (in *FabricOrderingServiceList) DeepCopyInto(out *FabricOrderingServiceList (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOrderingServiceList. @@ -3333,14 +3361,6 @@ func (in *FabricOrderingServiceList) DeepCopy() *FabricOrderingServiceList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricOrderingServiceList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricOrderingServiceSpec) DeepCopyInto(out *FabricOrderingServiceSpec) { *out = *in @@ -3355,6 +3375,7 @@ func (in *FabricOrderingServiceSpec) DeepCopyInto(out *FabricOrderingServiceSpec out.Service = in.Service out.Storage = in.Storage out.SystemChannel = in.SystemChannel + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOrderingServiceSpec. @@ -3377,6 +3398,7 @@ func (in *FabricOrderingServiceStatus) DeepCopyInto(out *FabricOrderingServiceSt (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricOrderingServiceStatus. @@ -3396,6 +3418,7 @@ func (in *FabricPeer) DeepCopyInto(out *FabricPeer) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeer. @@ -3424,6 +3447,7 @@ func (in *FabricPeerCouchDB) DeepCopyInto(out *FabricPeerCouchDB) { *out = new(FabricPeerExternalCouchDB) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerCouchDB. @@ -3439,6 +3463,7 @@ func (in *FabricPeerCouchDB) DeepCopy() *FabricPeerCouchDB { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricPeerCouchdbExporter) DeepCopyInto(out *FabricPeerCouchdbExporter) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerCouchdbExporter. @@ -3454,6 +3479,7 @@ func (in *FabricPeerCouchdbExporter) DeepCopy() *FabricPeerCouchdbExporter { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricPeerDiscovery) DeepCopyInto(out *FabricPeerDiscovery) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerDiscovery. @@ -3469,6 +3495,7 @@ func (in *FabricPeerDiscovery) DeepCopy() *FabricPeerDiscovery { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricPeerExternalCouchDB) DeepCopyInto(out *FabricPeerExternalCouchDB) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerExternalCouchDB. @@ -3493,6 +3520,7 @@ func (in *FabricPeerList) DeepCopyInto(out *FabricPeerList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerList. @@ -3505,17 +3533,10 @@ func (in *FabricPeerList) DeepCopy() *FabricPeerList { return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *FabricPeerList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricPeerLogging) DeepCopyInto(out *FabricPeerLogging) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerLogging. @@ -3556,6 +3577,7 @@ func (in *FabricPeerResources) DeepCopyInto(out *FabricPeerResources) { *out = new(v1.ResourceRequirements) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerResources. @@ -3699,6 +3721,7 @@ func (in *FabricPeerSpec) DeepCopyInto(out *FabricPeerSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerSpec. @@ -3714,6 +3737,7 @@ func (in *FabricPeerSpec) DeepCopy() *FabricPeerSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricPeerSpecGossip) DeepCopyInto(out *FabricPeerSpecGossip) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerSpecGossip. @@ -3740,6 +3764,7 @@ func (in *FabricPeerStatus) DeepCopyInto(out *FabricPeerStatus) { in, out := &in.LastCertificateUpdate, &out.LastCertificateUpdate *out = (*in).DeepCopy() } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerStatus. @@ -3758,6 +3783,7 @@ func (in *FabricPeerStorage) DeepCopyInto(out *FabricPeerStorage) { out.CouchDB = in.CouchDB out.Peer = in.Peer out.Chaincode = in.Chaincode + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricPeerStorage. @@ -3774,6 +3800,7 @@ func (in *FabricPeerStorage) DeepCopy() *FabricPeerStorage { func (in *FabricTLSCACrypto) DeepCopyInto(out *FabricTLSCACrypto) { *out = *in in.ClientAuth.DeepCopyInto(&out.ClientAuth) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricTLSCACrypto. @@ -3804,6 +3831,7 @@ func (in *FabricTraefik) DeepCopyInto(out *FabricTraefik) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricTraefik. @@ -3819,6 +3847,7 @@ func (in *FabricTraefik) DeepCopy() *FabricTraefik { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *FabricTraefikMiddleware) DeepCopyInto(out *FabricTraefikMiddleware) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FabricTraefikMiddleware. @@ -3845,6 +3874,7 @@ func (in *GRPCProxy) DeepCopyInto(out *GRPCProxy) { *out = make([]v1.LocalObjectReference, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GRPCProxy. @@ -3860,6 +3890,7 @@ func (in *GRPCProxy) DeepCopy() *GRPCProxy { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HLFIdentity) DeepCopyInto(out *HLFIdentity) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HLFIdentity. @@ -3896,6 +3927,7 @@ func (in *Ingress) DeepCopyInto(out *Ingress) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ingress. @@ -3916,6 +3948,7 @@ func (in *IngressHost) DeepCopyInto(out *IngressHost) { *out = make([]IngressPath, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressHost. @@ -3931,6 +3964,7 @@ func (in *IngressHost) DeepCopy() *IngressHost { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressPath) DeepCopyInto(out *IngressPath) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressPath. @@ -3946,6 +3980,7 @@ func (in *IngressPath) DeepCopy() *IngressPath { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *OrdererCapabilities) DeepCopyInto(out *OrdererCapabilities) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererCapabilities. @@ -3963,6 +3998,7 @@ func (in *OrdererEnrollment) DeepCopyInto(out *OrdererEnrollment) { *out = *in in.Component.DeepCopyInto(&out.Component) in.TLS.DeepCopyInto(&out.TLS) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererEnrollment. @@ -3979,6 +4015,7 @@ func (in *OrdererEnrollment) DeepCopy() *OrdererEnrollment { func (in *OrdererNode) DeepCopyInto(out *OrdererNode) { *out = *in in.Enrollment.DeepCopyInto(&out.Enrollment) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererNode. @@ -3995,6 +4032,7 @@ func (in *OrdererNode) DeepCopy() *OrdererNode { func (in *OrdererNodeEnrollment) DeepCopyInto(out *OrdererNodeEnrollment) { *out = *in in.TLS.DeepCopyInto(&out.TLS) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererNodeEnrollment. @@ -4011,6 +4049,7 @@ func (in *OrdererNodeEnrollment) DeepCopy() *OrdererNodeEnrollment { func (in *OrdererNodeEnrollmentTLS) DeepCopyInto(out *OrdererNodeEnrollmentTLS) { *out = *in in.Csr.DeepCopyInto(&out.Csr) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererNodeEnrollmentTLS. @@ -4026,6 +4065,7 @@ func (in *OrdererNodeEnrollmentTLS) DeepCopy() *OrdererNodeEnrollmentTLS { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *OrdererNodeService) DeepCopyInto(out *OrdererNodeService) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererNodeService. @@ -4041,6 +4081,7 @@ func (in *OrdererNodeService) DeepCopy() *OrdererNodeService { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *OrdererService) DeepCopyInto(out *OrdererService) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererService. @@ -4057,6 +4098,7 @@ func (in *OrdererService) DeepCopy() *OrdererService { func (in *OrdererSystemChannel) DeepCopyInto(out *OrdererSystemChannel) { *out = *in out.Config = in.Config + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererSystemChannel. @@ -4072,6 +4114,7 @@ func (in *OrdererSystemChannel) DeepCopy() *OrdererSystemChannel { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *OrgCertsRef) DeepCopyInto(out *OrgCertsRef) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrgCertsRef. @@ -4087,6 +4130,7 @@ func (in *OrgCertsRef) DeepCopy() *OrgCertsRef { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PeerService) DeepCopyInto(out *PeerService) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerService. @@ -4103,6 +4147,7 @@ func (in *PeerService) DeepCopy() *PeerService { func (in *Secret) DeepCopyInto(out *Secret) { *out = *in in.Enrollment.DeepCopyInto(&out.Enrollment) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret. @@ -4118,6 +4163,7 @@ func (in *Secret) DeepCopy() *Secret { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SecretRef) DeepCopyInto(out *SecretRef) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef. @@ -4133,6 +4179,7 @@ func (in *SecretRef) DeepCopy() *SecretRef { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SecretRefNSKey) DeepCopyInto(out *SecretRefNSKey) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRefNSKey. @@ -4148,6 +4195,7 @@ func (in *SecretRefNSKey) DeepCopy() *SecretRefNSKey { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Service) DeepCopyInto(out *Service) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service. @@ -4170,6 +4218,7 @@ func (in *ServiceMonitor) DeepCopyInto(out *ServiceMonitor) { (*out)[key] = val } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitor. @@ -4185,6 +4234,7 @@ func (in *ServiceMonitor) DeepCopy() *ServiceMonitor { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Storage) DeepCopyInto(out *Storage) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage. @@ -4207,6 +4257,7 @@ func (in *TLS) DeepCopyInto(out *TLS) { *out = new(ExternalCertificate) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLS. diff --git a/config/crd/bases/hlf.kungfusoftware.es_fabricchaincodetemplates.yaml b/config/crd/bases/hlf.kungfusoftware.es_fabricchaincodetemplates.yaml new file mode 100644 index 00000000..e0ac7a8e --- /dev/null +++ b/config/crd/bases/hlf.kungfusoftware.es_fabricchaincodetemplates.yaml @@ -0,0 +1,1235 @@ + +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.3.0 + creationTimestamp: null + name: fabricchaincodetemplates.hlf.kungfusoftware.es +spec: + group: hlf.kungfusoftware.es + names: + kind: FabricChaincodeTemplate + listKind: FabricChaincodeTemplateList + plural: fabricchaincodetemplates + shortNames: + - fabricchaincodetemplate + singular: fabricchaincodetemplate + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .status.status + name: State + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1alpha1 + schema: + openAPIV3Schema: + description: FabricChaincodeTemplate is the Schema for the hlfs API + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: FabricChaincodeTemplateSpec defines the desired state of + FabricChaincodeTemplate + properties: + affinity: + description: Affinity is a group of affinity scheduling rules. + nullable: true + properties: + nodeAffinity: + description: Describes node affinity scheduling rules for the + pod. + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: The scheduler will prefer to schedule pods to + nodes that satisfy the affinity expressions specified by + this field, but it may choose a node that violates one or + more of the expressions. The node that is most preferred + is the one with the greatest sum of weights, i.e. for each + node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling affinity expressions, + etc.), compute a sum by iterating through the elements of + this field and adding "weight" to the sum if the node matches + the corresponding matchExpressions; the node(s) with the + highest sum are the most preferred. + items: + description: An empty preferred scheduling term matches + all objects with implicit weight 0 (i.e. it's a no-op). + A null preferred scheduling term matches no objects (i.e. + is also a no-op). + properties: + preference: + description: A node selector term, associated with the + corresponding weight. + properties: + matchExpressions: + description: A list of node selector requirements + by node's labels. + items: + description: A node selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: The label key that the selector + applies to. + type: string + operator: + description: Represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists, DoesNotExist. Gt, and + Lt. + type: string + values: + description: An array of string values. If + the operator is In or NotIn, the values + array must be non-empty. If the operator + is Exists or DoesNotExist, the values array + must be empty. If the operator is Gt or + Lt, the values array must have a single + element, which will be interpreted as an + integer. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchFields: + description: A list of node selector requirements + by node's fields. + items: + description: A node selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: The label key that the selector + applies to. + type: string + operator: + description: Represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists, DoesNotExist. Gt, and + Lt. + type: string + values: + description: An array of string values. If + the operator is In or NotIn, the values + array must be non-empty. If the operator + is Exists or DoesNotExist, the values array + must be empty. If the operator is Gt or + Lt, the values array must have a single + element, which will be interpreted as an + integer. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + type: object + weight: + description: Weight associated with matching the corresponding + nodeSelectorTerm, in the range 1-100. + format: int32 + type: integer + required: + - preference + - weight + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: If the affinity requirements specified by this + field are not met at scheduling time, the pod will not be + scheduled onto the node. If the affinity requirements specified + by this field cease to be met at some point during pod execution + (e.g. due to an update), the system may or may not try to + eventually evict the pod from its node. + properties: + nodeSelectorTerms: + description: Required. A list of node selector terms. + The terms are ORed. + items: + description: A null or empty node selector term matches + no objects. The requirements of them are ANDed. The + TopologySelectorTerm type implements a subset of the + NodeSelectorTerm. + properties: + matchExpressions: + description: A list of node selector requirements + by node's labels. + items: + description: A node selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: The label key that the selector + applies to. + type: string + operator: + description: Represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists, DoesNotExist. Gt, and + Lt. + type: string + values: + description: An array of string values. If + the operator is In or NotIn, the values + array must be non-empty. If the operator + is Exists or DoesNotExist, the values array + must be empty. If the operator is Gt or + Lt, the values array must have a single + element, which will be interpreted as an + integer. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchFields: + description: A list of node selector requirements + by node's fields. + items: + description: A node selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: The label key that the selector + applies to. + type: string + operator: + description: Represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists, DoesNotExist. Gt, and + Lt. + type: string + values: + description: An array of string values. If + the operator is In or NotIn, the values + array must be non-empty. If the operator + is Exists or DoesNotExist, the values array + must be empty. If the operator is Gt or + Lt, the values array must have a single + element, which will be interpreted as an + integer. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + type: object + type: array + required: + - nodeSelectorTerms + type: object + type: object + podAffinity: + description: Describes pod affinity scheduling rules (e.g. co-locate + this pod in the same node, zone, etc. as some other pod(s)). + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: The scheduler will prefer to schedule pods to + nodes that satisfy the affinity expressions specified by + this field, but it may choose a node that violates one or + more of the expressions. The node that is most preferred + is the one with the greatest sum of weights, i.e. for each + node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling affinity expressions, + etc.), compute a sum by iterating through the elements of + this field and adding "weight" to the sum if the node has + pods which matches the corresponding podAffinityTerm; the + node(s) with the highest sum are the most preferred. + items: + description: The weights of all of the matched WeightedPodAffinityTerm + fields are added per-node to find the most preferred node(s) + properties: + podAffinityTerm: + description: Required. A pod affinity term, associated + with the corresponding weight. + properties: + labelSelector: + description: A label query over a set of resources, + in this case pods. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + namespaceSelector: + description: A label query over the set of namespaces + that the term applies to. The term is applied + to the union of the namespaces selected by this + field and the ones listed in the namespaces field. + null selector and null or empty namespaces list + means "this pod's namespace". An empty selector + ({}) matches all namespaces. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + namespaces: + description: namespaces specifies a static list + of namespace names that the term applies to. The + term is applied to the union of the namespaces + listed in this field and the ones selected by + namespaceSelector. null or empty namespaces list + and null namespaceSelector means "this pod's namespace". + items: + type: string + type: array + topologyKey: + description: This pod should be co-located (affinity) + or not co-located (anti-affinity) with the pods + matching the labelSelector in the specified namespaces, + where co-located is defined as running on a node + whose value of the label with key topologyKey + matches that of any node on which any of the selected + pods is running. Empty topologyKey is not allowed. + type: string + required: + - topologyKey + type: object + weight: + description: weight associated with matching the corresponding + podAffinityTerm, in the range 1-100. + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: If the affinity requirements specified by this + field are not met at scheduling time, the pod will not be + scheduled onto the node. If the affinity requirements specified + by this field cease to be met at some point during pod execution + (e.g. due to a pod label update), the system may or may + not try to eventually evict the pod from its node. When + there are multiple elements, the lists of nodes corresponding + to each podAffinityTerm are intersected, i.e. all terms + must be satisfied. + items: + description: Defines a set of pods (namely those matching + the labelSelector relative to the given namespace(s)) + that this pod should be co-located (affinity) or not co-located + (anti-affinity) with, where co-located is defined as running + on a node whose value of the label with key + matches that of any node on which a pod of the set of + pods is running + properties: + labelSelector: + description: A label query over a set of resources, + in this case pods. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If the + operator is Exists or DoesNotExist, the + values array must be empty. This array is + replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". The + requirements are ANDed. + type: object + type: object + namespaceSelector: + description: A label query over the set of namespaces + that the term applies to. The term is applied to the + union of the namespaces selected by this field and + the ones listed in the namespaces field. null selector + and null or empty namespaces list means "this pod's + namespace". An empty selector ({}) matches all namespaces. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If the + operator is Exists or DoesNotExist, the + values array must be empty. This array is + replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". The + requirements are ANDed. + type: object + type: object + namespaces: + description: namespaces specifies a static list of namespace + names that the term applies to. The term is applied + to the union of the namespaces listed in this field + and the ones selected by namespaceSelector. null or + empty namespaces list and null namespaceSelector means + "this pod's namespace". + items: + type: string + type: array + topologyKey: + description: This pod should be co-located (affinity) + or not co-located (anti-affinity) with the pods matching + the labelSelector in the specified namespaces, where + co-located is defined as running on a node whose value + of the label with key topologyKey matches that of + any node on which any of the selected pods is running. + Empty topologyKey is not allowed. + type: string + required: + - topologyKey + type: object + type: array + type: object + podAntiAffinity: + description: Describes pod anti-affinity scheduling rules (e.g. + avoid putting this pod in the same node, zone, etc. as some + other pod(s)). + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: The scheduler will prefer to schedule pods to + nodes that satisfy the anti-affinity expressions specified + by this field, but it may choose a node that violates one + or more of the expressions. The node that is most preferred + is the one with the greatest sum of weights, i.e. for each + node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling anti-affinity expressions, + etc.), compute a sum by iterating through the elements of + this field and adding "weight" to the sum if the node has + pods which matches the corresponding podAffinityTerm; the + node(s) with the highest sum are the most preferred. + items: + description: The weights of all of the matched WeightedPodAffinityTerm + fields are added per-node to find the most preferred node(s) + properties: + podAffinityTerm: + description: Required. A pod affinity term, associated + with the corresponding weight. + properties: + labelSelector: + description: A label query over a set of resources, + in this case pods. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + namespaceSelector: + description: A label query over the set of namespaces + that the term applies to. The term is applied + to the union of the namespaces selected by this + field and the ones listed in the namespaces field. + null selector and null or empty namespaces list + means "this pod's namespace". An empty selector + ({}) matches all namespaces. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + namespaces: + description: namespaces specifies a static list + of namespace names that the term applies to. The + term is applied to the union of the namespaces + listed in this field and the ones selected by + namespaceSelector. null or empty namespaces list + and null namespaceSelector means "this pod's namespace". + items: + type: string + type: array + topologyKey: + description: This pod should be co-located (affinity) + or not co-located (anti-affinity) with the pods + matching the labelSelector in the specified namespaces, + where co-located is defined as running on a node + whose value of the label with key topologyKey + matches that of any node on which any of the selected + pods is running. Empty topologyKey is not allowed. + type: string + required: + - topologyKey + type: object + weight: + description: weight associated with matching the corresponding + podAffinityTerm, in the range 1-100. + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: If the anti-affinity requirements specified by + this field are not met at scheduling time, the pod will + not be scheduled onto the node. If the anti-affinity requirements + specified by this field cease to be met at some point during + pod execution (e.g. due to a pod label update), the system + may or may not try to eventually evict the pod from its + node. When there are multiple elements, the lists of nodes + corresponding to each podAffinityTerm are intersected, i.e. + all terms must be satisfied. + items: + description: Defines a set of pods (namely those matching + the labelSelector relative to the given namespace(s)) + that this pod should be co-located (affinity) or not co-located + (anti-affinity) with, where co-located is defined as running + on a node whose value of the label with key + matches that of any node on which a pod of the set of + pods is running + properties: + labelSelector: + description: A label query over a set of resources, + in this case pods. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If the + operator is Exists or DoesNotExist, the + values array must be empty. This array is + replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". The + requirements are ANDed. + type: object + type: object + namespaceSelector: + description: A label query over the set of namespaces + that the term applies to. The term is applied to the + union of the namespaces selected by this field and + the ones listed in the namespaces field. null selector + and null or empty namespaces list means "this pod's + namespace". An empty selector ({}) matches all namespaces. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If the + operator is Exists or DoesNotExist, the + values array must be empty. This array is + replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". The + requirements are ANDed. + type: object + type: object + namespaces: + description: namespaces specifies a static list of namespace + names that the term applies to. The term is applied + to the union of the namespaces listed in this field + and the ones selected by namespaceSelector. null or + empty namespaces list and null namespaceSelector means + "this pod's namespace". + items: + type: string + type: array + topologyKey: + description: This pod should be co-located (affinity) + or not co-located (anti-affinity) with the pods matching + the labelSelector in the specified namespaces, where + co-located is defined as running on a node whose value + of the label with key topologyKey matches that of + any node on which any of the selected pods is running. + Empty topologyKey is not allowed. + type: string + required: + - topologyKey + type: object + type: array + type: object + type: object + annotations: + additionalProperties: + type: string + nullable: true + type: object + args: + description: Arguments to the entrypoint. The container image's CMD + is used if this is not provided. + items: + type: string + type: array + chaincodeServerPort: + default: 7052 + type: integer + command: + description: Entrypoint array. Not executed within a shell. The container + image's ENTRYPOINT is used if this is not provided. + items: + type: string + type: array + credentials: + nullable: true + properties: + cahost: + type: string + caname: + type: string + caport: + type: integer + catls: + properties: + cacert: + type: string + secretRef: + nullable: true + properties: + key: + type: string + name: + type: string + namespace: + type: string + required: + - key + - name + - namespace + type: object + required: + - cacert + type: object + csr: + properties: + cn: + type: string + hosts: + items: + type: string + type: array + type: object + enrollid: + type: string + enrollsecret: + type: string + external: + nullable: true + properties: + certificateKey: + type: string + privateKeyKey: + type: string + rootCertificateKey: + type: string + secretName: + type: string + secretNamespace: + type: string + required: + - certificateKey + - privateKeyKey + - rootCertificateKey + - secretName + - secretNamespace + type: object + required: + - cahost + - caname + - caport + - catls + - enrollid + - enrollsecret + type: object + env: + items: + description: EnvVar represents an environment variable present in + a Container. + properties: + name: + description: Name of the environment variable. Must be a C_IDENTIFIER. + type: string + value: + description: 'Variable references $(VAR_NAME) are expanded using + the previously defined environment variables in the container + and any service environment variables. If a variable cannot + be resolved, the reference in the input string will be unchanged. + Double $$ are reduced to a single $, which allows for escaping + the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the + string literal "$(VAR_NAME)". Escaped references will never + be expanded, regardless of whether the variable exists or + not. Defaults to "".' + type: string + valueFrom: + description: Source for the environment variable's value. Cannot + be used if value is not empty. + properties: + configMapKeyRef: + description: Selects a key of a ConfigMap. + properties: + key: + description: The key to select. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the ConfigMap or its key + must be defined + type: boolean + required: + - key + type: object + fieldRef: + description: 'Selects a field of the pod: supports metadata.name, + metadata.namespace, `metadata.labels['''']`, `metadata.annotations['''']`, + spec.nodeName, spec.serviceAccountName, status.hostIP, + status.podIP, status.podIPs.' + properties: + apiVersion: + description: Version of the schema the FieldPath is + written in terms of, defaults to "v1". + type: string + fieldPath: + description: Path of the field to select in the specified + API version. + type: string + required: + - fieldPath + type: object + resourceFieldRef: + description: 'Selects a resource of the container: only + resources limits and requests (limits.cpu, limits.memory, + limits.ephemeral-storage, requests.cpu, requests.memory + and requests.ephemeral-storage) are currently supported.' + properties: + containerName: + description: 'Container name: required for volumes, + optional for env vars' + type: string + divisor: + anyOf: + - type: integer + - type: string + description: Specifies the output format of the exposed + resources, defaults to "1" + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + description: 'Required: resource to select' + type: string + required: + - resource + type: object + secretKeyRef: + description: Selects a key of a secret in the pod's namespace + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the Secret or its key must + be defined + type: boolean + required: + - key + type: object + type: object + required: + - name + type: object + nullable: true + type: array + imagePullPolicy: + default: IfNotPresent + description: PullPolicy describes a policy for if/when to pull a container + image + type: string + imagePullSecrets: + items: + description: LocalObjectReference contains enough information to + let you locate the referenced object inside the same namespace. + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + nullable: true + type: array + labels: + additionalProperties: + type: string + nullable: true + type: object + mspID: + type: string + podAnnotations: + additionalProperties: + type: string + nullable: true + type: object + podLabels: + additionalProperties: + type: string + nullable: true + type: object + replicas: + type: integer + resources: + description: ResourceRequirements describes the compute resource requirements. + nullable: true + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum amount of compute resources + allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Requests describes the minimum amount of compute + resources required. If Requests is omitted for a container, + it defaults to Limits if that is explicitly specified, otherwise + to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + type: object + tolerations: + items: + description: The pod this Toleration is attached to tolerates any + taint that matches the triple using the matching + operator . + properties: + effect: + description: Effect indicates the taint effect to match. Empty + means match all taint effects. When specified, allowed values + are NoSchedule, PreferNoSchedule and NoExecute. + type: string + key: + description: Key is the taint key that the toleration applies + to. Empty means match all taint keys. If the key is empty, + operator must be Exists; this combination means to match all + values and all keys. + type: string + operator: + description: Operator represents a key's relationship to the + value. Valid operators are Exists and Equal. Defaults to Equal. + Exists is equivalent to wildcard for value, so that a pod + can tolerate all taints of a particular category. + type: string + tolerationSeconds: + description: TolerationSeconds represents the period of time + the toleration (which must be of effect NoExecute, otherwise + this field is ignored) tolerates the taint. By default, it + is not set, which means tolerate the taint forever (do not + evict). Zero and negative values will be treated as 0 (evict + immediately) by the system. + format: int64 + type: integer + value: + description: Value is the taint value the toleration matches + to. If the operator is Exists, the value should be empty, + otherwise just a regular string. + type: string + type: object + nullable: true + type: array + required: + - chaincodeServerPort + - imagePullPolicy + - replicas + type: object + status: + description: FabricChaincodeTemplateStatus defines the observed state + of FabricChaincodeTemplate + properties: + conditions: + description: Conditions is a set of Condition instances. + items: + description: "Condition represents an observation of an object's + state. Conditions are an extension mechanism intended to be used + when the details of an observation are not a priori known or would + not apply to all instances of a given Kind. \n Conditions should + be added to explicitly convey properties that users and components + care about rather than requiring those properties to be inferred + from other observations. Once defined, the meaning of a Condition + can not be changed arbitrarily - it becomes part of the API, and + has the same backwards- and forwards-compatibility concerns of + any other part of the API." + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + reason: + description: ConditionReason is intended to be a one-word, CamelCase + representation of the category of cause of the current status. + It is intended to be used in concise output, such as one-line + kubectl get output, and in summarizing occurrences of causes. + type: string + status: + type: string + type: + description: "ConditionType is the type of the condition and + is typically a CamelCased word or short phrase. \n Condition + types should indicate state in the \"abnormal-true\" polarity. + For example, if the condition indicates when a policy is invalid, + the \"is valid\" case is probably the norm, so the condition + should be called \"Invalid\"." + type: string + required: + - status + - type + type: object + type: array + message: + type: string + status: + description: Status of the FabricCA + type: string + required: + - conditions + - message + - status + type: object + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/k8s/boilerplate.go.txt b/k8s/boilerplate.go.txt index e69de29b..494895f7 100644 --- a/k8s/boilerplate.go.txt +++ b/k8s/boilerplate.go.txt @@ -0,0 +1,5 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ \ No newline at end of file diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/addressoverride.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/addressoverride.go new file mode 100644 index 00000000..bf7484c4 --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/addressoverride.go @@ -0,0 +1,46 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// AddressOverrideApplyConfiguration represents an declarative configuration of the AddressOverride type for use +// with apply. +type AddressOverrideApplyConfiguration struct { + From *string `json:"from,omitempty"` + To *string `json:"to,omitempty"` + CACertsFile *string `json:"caCertsFile,omitempty"` +} + +// AddressOverrideApplyConfiguration constructs an declarative configuration of the AddressOverride type for use with +// apply. +func AddressOverride() *AddressOverrideApplyConfiguration { + return &AddressOverrideApplyConfiguration{} +} + +// WithFrom sets the From field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the From field is set to the value of the last call. +func (b *AddressOverrideApplyConfiguration) WithFrom(value string) *AddressOverrideApplyConfiguration { + b.From = &value + return b +} + +// WithTo sets the To field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the To field is set to the value of the last call. +func (b *AddressOverrideApplyConfiguration) WithTo(value string) *AddressOverrideApplyConfiguration { + b.To = &value + return b +} + +// WithCACertsFile sets the CACertsFile field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CACertsFile field is set to the value of the last call. +func (b *AddressOverrideApplyConfiguration) WithCACertsFile(value string) *AddressOverrideApplyConfiguration { + b.CACertsFile = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/applicationcapabilities.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/applicationcapabilities.go index 6ee2b071..5681fa45 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/applicationcapabilities.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/applicationcapabilities.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/catls.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/catls.go index 18d3536a..970c8924 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/catls.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/catls.go @@ -3,13 +3,15 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 // CatlsApplyConfiguration represents an declarative configuration of the Catls type for use // with apply. type CatlsApplyConfiguration struct { - Cacert *string `json:"cacert,omitempty"` + Cacert *string `json:"cacert,omitempty"` + SecretRef *SecretRefNSKeyApplyConfiguration `json:"secretRef,omitempty"` } // CatlsApplyConfiguration constructs an declarative configuration of the Catls type for use with @@ -25,3 +27,11 @@ func (b *CatlsApplyConfiguration) WithCacert(value string) *CatlsApplyConfigurat b.Cacert = &value return b } + +// WithSecretRef sets the SecretRef field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the SecretRef field is set to the value of the last call. +func (b *CatlsApplyConfiguration) WithSecretRef(value *SecretRefNSKeyApplyConfiguration) *CatlsApplyConfiguration { + b.SecretRef = value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/channelcapabilities.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/channelcapabilities.go index d121c6e9..a0be1b73 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/channelcapabilities.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/channelcapabilities.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/channelconfig.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/channelconfig.go index 7de48e03..d9946b02 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/channelconfig.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/channelconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/component.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/component.go index 8e664bfc..4fac580f 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/component.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/component.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/cors.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/cors.go index c8837835..d2bdd72d 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/cors.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/cors.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/csr.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/csr.go index f6d3fe81..456a0b51 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/csr.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/csr.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/enrollment.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/enrollment.go index 2089f76c..49801ce0 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/enrollment.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/enrollment.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/externalbuilder.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/externalbuilder.go index 12ae9803..1297c7eb 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/externalbuilder.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/externalbuilder.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/externalcertificate.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/externalcertificate.go index 09a0bdd1..834c87dc 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/externalcertificate.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/externalcertificate.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricca.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricca.go index 97f13e24..4a7750f2 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricca.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricca.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaaffiliation.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaaffiliation.go index 4f58f4e7..6ee44cf2 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaaffiliation.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaaffiliation.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccabccsp.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccabccsp.go index 3285bd2f..235a9f85 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccabccsp.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccabccsp.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccabccspsw.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccabccspsw.go index 89799b97..22145d2f 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccabccspsw.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccabccspsw.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfg.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfg.go index bdada19a..c09ff9f9 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfg.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfg.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfgaffilitions.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfgaffilitions.go index 08cc485e..089f2245 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfgaffilitions.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfgaffilitions.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfgidentities.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfgidentities.go index f1414605..e9cb0429 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfgidentities.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacfgidentities.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaclientauth.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaclientauth.go deleted file mode 100644 index 748cd9f1..00000000 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaclientauth.go +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright Kungfusoftware.es. All Rights Reserved. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -package v1alpha1 - -// FabricCAClientAuthApplyConfiguration represents an declarative configuration of the FabricCAClientAuth type for use -// with apply. -type FabricCAClientAuthApplyConfiguration struct { - Type *string `json:"type,omitempty"` - CertFile []string `json:"cert_file,omitempty"` -} - -// FabricCAClientAuthApplyConfiguration constructs an declarative configuration of the FabricCAClientAuth type for use with -// apply. -func FabricCAClientAuth() *FabricCAClientAuthApplyConfiguration { - return &FabricCAClientAuthApplyConfiguration{} -} - -// WithType sets the Type field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Type field is set to the value of the last call. -func (b *FabricCAClientAuthApplyConfiguration) WithType(value string) *FabricCAClientAuthApplyConfiguration { - b.Type = &value - return b -} - -// WithCertFile adds the given value to the CertFile field in the declarative configuration -// and returns the receiver, so that objects can be build by chaining "With" function invocations. -// If called multiple times, values provided by each call will be appended to the CertFile field. -func (b *FabricCAClientAuthApplyConfiguration) WithCertFile(values ...string) *FabricCAClientAuthApplyConfiguration { - for i := range values { - b.CertFile = append(b.CertFile, values[i]) - } - return b -} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacrl.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacrl.go index a5039735..7ce94181 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacrl.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacrl.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacrypto.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacrypto.go index ce01d3d4..cbe91559 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacrypto.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacrypto.go @@ -3,15 +3,17 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 // FabricCACryptoApplyConfiguration represents an declarative configuration of the FabricCACrypto type for use // with apply. type FabricCACryptoApplyConfiguration struct { - Key *string `json:"key,omitempty"` - Cert *string `json:"cert,omitempty"` - Chain *string `json:"chain,omitempty"` + Key *string `json:"key,omitempty"` + SecretRef *SecretRefApplyConfiguration `json:"secret,omitempty"` + Cert *string `json:"cert,omitempty"` + Chain *string `json:"chain,omitempty"` } // FabricCACryptoApplyConfiguration constructs an declarative configuration of the FabricCACrypto type for use with @@ -28,6 +30,14 @@ func (b *FabricCACryptoApplyConfiguration) WithKey(value string) *FabricCACrypto return b } +// WithSecretRef sets the SecretRef field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the SecretRef field is set to the value of the last call. +func (b *FabricCACryptoApplyConfiguration) WithSecretRef(value *SecretRefApplyConfiguration) *FabricCACryptoApplyConfiguration { + b.SecretRef = value + return b +} + // WithCert sets the Cert field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Cert field is set to the value of the last call. diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacsr.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacsr.go index 36ef0ba0..e5c3049b 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacsr.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacsr.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacsrca.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacsrca.go index afa0af76..b6ed5b55 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacsrca.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccacsrca.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccadatabase.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccadatabase.go index 2285642a..ae183ac2 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccadatabase.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccadatabase.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaidentity.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaidentity.go index 937d7c61..f7eed9de 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaidentity.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaidentityattrs.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaidentityattrs.go index 42003364..2f49dd4b 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaidentityattrs.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaidentityattrs.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaintermediate.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaintermediate.go index 4dd5a7ff..926b93e7 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaintermediate.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaintermediate.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaintermediateparentserver.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaintermediateparentserver.go index d71a75e5..74a7021b 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaintermediateparentserver.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaintermediateparentserver.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaitemconf.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaitemconf.go index d6e01168..df7aa4b3 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaitemconf.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaitemconf.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 @@ -20,7 +21,6 @@ type FabricCAItemConfApplyConfiguration struct { BCCSP *FabricCABCCSPApplyConfiguration `json:"bccsp,omitempty"` Affiliations []FabricCAAffiliationApplyConfiguration `json:"affiliations,omitempty"` CA *FabricCACryptoApplyConfiguration `json:"ca,omitempty"` - TlsCA *FabricTLSCACryptoApplyConfiguration `json:"tlsCa,omitempty"` } // FabricCAItemConfApplyConfiguration constructs an declarative configuration of the FabricCAItemConf type for use with @@ -121,11 +121,3 @@ func (b *FabricCAItemConfApplyConfiguration) WithCA(value *FabricCACryptoApplyCo b.CA = value return b } - -// WithTlsCA sets the TlsCA field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the TlsCA field is set to the value of the last call. -func (b *FabricCAItemConfApplyConfiguration) WithTlsCA(value *FabricTLSCACryptoApplyConfiguration) *FabricCAItemConfApplyConfiguration { - b.TlsCA = value - return b -} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccametrics.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccametrics.go index 06c0d9bf..02111b7a 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccametrics.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccametrics.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccametricsstatsd.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccametricsstatsd.go index d5a76161..83c21532 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccametricsstatsd.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccametricsstatsd.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccanames.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccanames.go index cf296b73..451e7cfd 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccanames.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccanames.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaregistry.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaregistry.go index 855ed22a..bdbc4164 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaregistry.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaregistry.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigning.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigning.go index 79c3daf6..68c1243c 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigning.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigning.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningdefault.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningdefault.go index edec84b8..a053f2b2 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningdefault.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningdefault.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningprofiles.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningprofiles.go index 59d28128..e2c7bd3b 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningprofiles.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningprofiles.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningsignprofile.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningsignprofile.go index db05da10..2c1b9a8f 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningsignprofile.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningsignprofile.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningsignprofileconstraint.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningsignprofileconstraint.go index dff6f609..a19a0cf8 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningsignprofileconstraint.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningsignprofileconstraint.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningtlsprofile.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningtlsprofile.go index 8b77ff27..b2f2f39a 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningtlsprofile.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasigningtlsprofile.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaspec.go index 491b691e..1673683b 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaspec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 @@ -13,12 +14,16 @@ import ( // FabricCASpecApplyConfiguration represents an declarative configuration of the FabricCASpec type for use // with apply. type FabricCASpecApplyConfiguration struct { + PodAnnotations map[string]string `json:"podAnnotations,omitempty"` + PodLabels map[string]string `json:"podLabels,omitempty"` Affinity *v1.Affinity `json:"affinity,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` NodeSelector *v1.NodeSelector `json:"nodeSelector,omitempty"` ServiceMonitor *ServiceMonitorApplyConfiguration `json:"serviceMonitor,omitempty"` + GatewayApi *FabricGatewayApiApplyConfiguration `json:"gatewayApi,omitempty"` Istio *FabricIstioApplyConfiguration `json:"istio,omitempty"` + Traefik *FabricTraefikApplyConfiguration `json:"traefik,omitempty"` Database *FabricCADatabaseApplyConfiguration `json:"db,omitempty"` Hosts []string `json:"hosts,omitempty"` Service *FabricCASpecServiceApplyConfiguration `json:"service,omitempty"` @@ -42,6 +47,34 @@ func FabricCASpec() *FabricCASpecApplyConfiguration { return &FabricCASpecApplyConfiguration{} } +// WithPodAnnotations puts the entries into the PodAnnotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodAnnotations field, +// overwriting an existing map entries in PodAnnotations field with the same key. +func (b *FabricCASpecApplyConfiguration) WithPodAnnotations(entries map[string]string) *FabricCASpecApplyConfiguration { + if b.PodAnnotations == nil && len(entries) > 0 { + b.PodAnnotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodAnnotations[k] = v + } + return b +} + +// WithPodLabels puts the entries into the PodLabels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodLabels field, +// overwriting an existing map entries in PodLabels field with the same key. +func (b *FabricCASpecApplyConfiguration) WithPodLabels(entries map[string]string) *FabricCASpecApplyConfiguration { + if b.PodLabels == nil && len(entries) > 0 { + b.PodLabels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodLabels[k] = v + } + return b +} + // WithAffinity sets the Affinity field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Affinity field is set to the value of the last call. @@ -86,6 +119,14 @@ func (b *FabricCASpecApplyConfiguration) WithServiceMonitor(value *ServiceMonito return b } +// WithGatewayApi sets the GatewayApi field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GatewayApi field is set to the value of the last call. +func (b *FabricCASpecApplyConfiguration) WithGatewayApi(value *FabricGatewayApiApplyConfiguration) *FabricCASpecApplyConfiguration { + b.GatewayApi = value + return b +} + // WithIstio sets the Istio field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Istio field is set to the value of the last call. @@ -94,6 +135,14 @@ func (b *FabricCASpecApplyConfiguration) WithIstio(value *FabricIstioApplyConfig return b } +// WithTraefik sets the Traefik field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Traefik field is set to the value of the last call. +func (b *FabricCASpecApplyConfiguration) WithTraefik(value *FabricTraefikApplyConfiguration) *FabricCASpecApplyConfiguration { + b.Traefik = value + return b +} + // WithDatabase sets the Database field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Database field is set to the value of the last call. diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaspecservice.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaspecservice.go index 6f51b31e..8785cec3 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaspecservice.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccaspecservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccastatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccastatus.go index d360a125..721783e7 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccastatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccastatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasubject.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasubject.go index a808b67f..5b8ff300 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasubject.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccasubject.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccatlsconf.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccatlsconf.go index 33a8f492..ac068f37 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccatlsconf.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabriccatlsconf.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go index 75980be9..fffe668d 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodespec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodespec.go index 26302aab..ae45f3cb 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodespec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodespec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 @@ -13,16 +14,24 @@ import ( // FabricChaincodeSpecApplyConfiguration represents an declarative configuration of the FabricChaincodeSpec type for use // with apply. type FabricChaincodeSpecApplyConfiguration struct { - Image *string `json:"image,omitempty"` - ImagePullPolicy *v1.PullPolicy `json:"imagePullPolicy,omitempty"` - PackageID *string `json:"packageId,omitempty"` - ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` - Affinity *v1.Affinity `json:"affinity,omitempty"` - Tolerations []v1.Toleration `json:"tolerations,omitempty"` - Resources *v1.ResourceRequirements `json:"resources,omitempty"` - Credentials *TLSApplyConfiguration `json:"credentials,omitempty"` - Replicas *int `json:"replicas,omitempty"` - Env []v1.EnvVar `json:"env,omitempty"` + Annotations map[string]string `json:"annotations,omitempty"` + Labels map[string]string `json:"labels,omitempty"` + PodAnnotations map[string]string `json:"podAnnotations,omitempty"` + PodLabels map[string]string `json:"podLabels,omitempty"` + Image *string `json:"image,omitempty"` + ImagePullPolicy *v1.PullPolicy `json:"imagePullPolicy,omitempty"` + PackageID *string `json:"packageId,omitempty"` + ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` + Affinity *v1.Affinity `json:"affinity,omitempty"` + Tolerations []v1.Toleration `json:"tolerations,omitempty"` + Resources *v1.ResourceRequirements `json:"resources,omitempty"` + Credentials *TLSApplyConfiguration `json:"credentials,omitempty"` + Replicas *int `json:"replicas,omitempty"` + Env []v1.EnvVar `json:"env,omitempty"` + ChaincodeServerPort *int `json:"chaincodeServerPort,omitempty"` + MspID *string `json:"mspID,omitempty"` } // FabricChaincodeSpecApplyConfiguration constructs an declarative configuration of the FabricChaincodeSpec type for use with @@ -31,6 +40,62 @@ func FabricChaincodeSpec() *FabricChaincodeSpecApplyConfiguration { return &FabricChaincodeSpecApplyConfiguration{} } +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *FabricChaincodeSpecApplyConfiguration) WithAnnotations(entries map[string]string) *FabricChaincodeSpecApplyConfiguration { + if b.Annotations == nil && len(entries) > 0 { + b.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.Annotations[k] = v + } + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *FabricChaincodeSpecApplyConfiguration) WithLabels(entries map[string]string) *FabricChaincodeSpecApplyConfiguration { + if b.Labels == nil && len(entries) > 0 { + b.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.Labels[k] = v + } + return b +} + +// WithPodAnnotations puts the entries into the PodAnnotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodAnnotations field, +// overwriting an existing map entries in PodAnnotations field with the same key. +func (b *FabricChaincodeSpecApplyConfiguration) WithPodAnnotations(entries map[string]string) *FabricChaincodeSpecApplyConfiguration { + if b.PodAnnotations == nil && len(entries) > 0 { + b.PodAnnotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodAnnotations[k] = v + } + return b +} + +// WithPodLabels puts the entries into the PodLabels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodLabels field, +// overwriting an existing map entries in PodLabels field with the same key. +func (b *FabricChaincodeSpecApplyConfiguration) WithPodLabels(entries map[string]string) *FabricChaincodeSpecApplyConfiguration { + if b.PodLabels == nil && len(entries) > 0 { + b.PodLabels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodLabels[k] = v + } + return b +} + // WithImage sets the Image field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Image field is set to the value of the last call. @@ -65,6 +130,26 @@ func (b *FabricChaincodeSpecApplyConfiguration) WithImagePullSecrets(values ...v return b } +// WithCommand adds the given value to the Command field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Command field. +func (b *FabricChaincodeSpecApplyConfiguration) WithCommand(values ...string) *FabricChaincodeSpecApplyConfiguration { + for i := range values { + b.Command = append(b.Command, values[i]) + } + return b +} + +// WithArgs adds the given value to the Args field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Args field. +func (b *FabricChaincodeSpecApplyConfiguration) WithArgs(values ...string) *FabricChaincodeSpecApplyConfiguration { + for i := range values { + b.Args = append(b.Args, values[i]) + } + return b +} + // WithAffinity sets the Affinity field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Affinity field is set to the value of the last call. @@ -116,3 +201,19 @@ func (b *FabricChaincodeSpecApplyConfiguration) WithEnv(values ...v1.EnvVar) *Fa } return b } + +// WithChaincodeServerPort sets the ChaincodeServerPort field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ChaincodeServerPort field is set to the value of the last call. +func (b *FabricChaincodeSpecApplyConfiguration) WithChaincodeServerPort(value int) *FabricChaincodeSpecApplyConfiguration { + b.ChaincodeServerPort = &value + return b +} + +// WithMspID sets the MspID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the MspID field is set to the value of the last call. +func (b *FabricChaincodeSpecApplyConfiguration) WithMspID(value string) *FabricChaincodeSpecApplyConfiguration { + b.MspID = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodestatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodestatus.go index 19dea8d3..fe67566e 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodestatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodestatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go new file mode 100644 index 00000000..c12d6a0c --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go @@ -0,0 +1,208 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + v1 "k8s.io/client-go/applyconfigurations/meta/v1" +) + +// FabricChaincodeTemplateApplyConfiguration represents an declarative configuration of the FabricChaincodeTemplate type for use +// with apply. +type FabricChaincodeTemplateApplyConfiguration struct { + v1.TypeMetaApplyConfiguration `json:",inline"` + *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` + Spec *FabricChaincodeTemplateSpecApplyConfiguration `json:"spec,omitempty"` + Status *FabricChaincodeTemplateStatusApplyConfiguration `json:"status,omitempty"` +} + +// FabricChaincodeTemplate constructs an declarative configuration of the FabricChaincodeTemplate type for use with +// apply. +func FabricChaincodeTemplate(name, namespace string) *FabricChaincodeTemplateApplyConfiguration { + b := &FabricChaincodeTemplateApplyConfiguration{} + b.WithName(name) + b.WithNamespace(namespace) + b.WithKind("FabricChaincodeTemplate") + b.WithAPIVersion("hlf.kungfusoftware.es/v1alpha1") + return b +} + +// WithKind sets the Kind field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Kind field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithKind(value string) *FabricChaincodeTemplateApplyConfiguration { + b.Kind = &value + return b +} + +// WithAPIVersion sets the APIVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the APIVersion field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithAPIVersion(value string) *FabricChaincodeTemplateApplyConfiguration { + b.APIVersion = &value + return b +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithName(value string) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.Name = &value + return b +} + +// WithGenerateName sets the GenerateName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GenerateName field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithGenerateName(value string) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.GenerateName = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithNamespace(value string) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.Namespace = &value + return b +} + +// WithUID sets the UID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the UID field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithUID(value types.UID) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.UID = &value + return b +} + +// WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ResourceVersion field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithResourceVersion(value string) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.ResourceVersion = &value + return b +} + +// WithGeneration sets the Generation field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Generation field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithGeneration(value int64) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.Generation = &value + return b +} + +// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the CreationTimestamp field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithCreationTimestamp(value metav1.Time) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.CreationTimestamp = &value + return b +} + +// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionTimestamp field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.DeletionTimestamp = &value + return b +} + +// WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + b.DeletionGracePeriodSeconds = &value + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *FabricChaincodeTemplateApplyConfiguration) WithLabels(entries map[string]string) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.Labels == nil && len(entries) > 0 { + b.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.Labels[k] = v + } + return b +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *FabricChaincodeTemplateApplyConfiguration) WithAnnotations(entries map[string]string) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + if b.Annotations == nil && len(entries) > 0 { + b.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.Annotations[k] = v + } + return b +} + +// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the OwnerReferences field. +func (b *FabricChaincodeTemplateApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + if values[i] == nil { + panic("nil value passed to WithOwnerReferences") + } + b.OwnerReferences = append(b.OwnerReferences, *values[i]) + } + return b +} + +// WithFinalizers adds the given value to the Finalizers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Finalizers field. +func (b *FabricChaincodeTemplateApplyConfiguration) WithFinalizers(values ...string) *FabricChaincodeTemplateApplyConfiguration { + b.ensureObjectMetaApplyConfigurationExists() + for i := range values { + b.Finalizers = append(b.Finalizers, values[i]) + } + return b +} + +func (b *FabricChaincodeTemplateApplyConfiguration) ensureObjectMetaApplyConfigurationExists() { + if b.ObjectMetaApplyConfiguration == nil { + b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{} + } +} + +// WithSpec sets the Spec field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Spec field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithSpec(value *FabricChaincodeTemplateSpecApplyConfiguration) *FabricChaincodeTemplateApplyConfiguration { + b.Spec = value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *FabricChaincodeTemplateApplyConfiguration) WithStatus(value *FabricChaincodeTemplateStatusApplyConfiguration) *FabricChaincodeTemplateApplyConfiguration { + b.Status = value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplatespec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplatespec.go new file mode 100644 index 00000000..b81c693f --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplatespec.go @@ -0,0 +1,201 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1 "k8s.io/api/core/v1" +) + +// FabricChaincodeTemplateSpecApplyConfiguration represents an declarative configuration of the FabricChaincodeTemplateSpec type for use +// with apply. +type FabricChaincodeTemplateSpecApplyConfiguration struct { + Annotations map[string]string `json:"annotations,omitempty"` + Labels map[string]string `json:"labels,omitempty"` + PodAnnotations map[string]string `json:"podAnnotations,omitempty"` + PodLabels map[string]string `json:"podLabels,omitempty"` + ImagePullPolicy *v1.PullPolicy `json:"imagePullPolicy,omitempty"` + ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` + Command []string `json:"command,omitempty"` + Args []string `json:"args,omitempty"` + Affinity *v1.Affinity `json:"affinity,omitempty"` + Tolerations []v1.Toleration `json:"tolerations,omitempty"` + Resources *v1.ResourceRequirements `json:"resources,omitempty"` + Credentials *TLSApplyConfiguration `json:"credentials,omitempty"` + Replicas *int `json:"replicas,omitempty"` + Env []v1.EnvVar `json:"env,omitempty"` + ChaincodeServerPort *int `json:"chaincodeServerPort,omitempty"` + MspID *string `json:"mspID,omitempty"` +} + +// FabricChaincodeTemplateSpecApplyConfiguration constructs an declarative configuration of the FabricChaincodeTemplateSpec type for use with +// apply. +func FabricChaincodeTemplateSpec() *FabricChaincodeTemplateSpecApplyConfiguration { + return &FabricChaincodeTemplateSpecApplyConfiguration{} +} + +// WithAnnotations puts the entries into the Annotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Annotations field, +// overwriting an existing map entries in Annotations field with the same key. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithAnnotations(entries map[string]string) *FabricChaincodeTemplateSpecApplyConfiguration { + if b.Annotations == nil && len(entries) > 0 { + b.Annotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.Annotations[k] = v + } + return b +} + +// WithLabels puts the entries into the Labels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the Labels field, +// overwriting an existing map entries in Labels field with the same key. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithLabels(entries map[string]string) *FabricChaincodeTemplateSpecApplyConfiguration { + if b.Labels == nil && len(entries) > 0 { + b.Labels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.Labels[k] = v + } + return b +} + +// WithPodAnnotations puts the entries into the PodAnnotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodAnnotations field, +// overwriting an existing map entries in PodAnnotations field with the same key. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithPodAnnotations(entries map[string]string) *FabricChaincodeTemplateSpecApplyConfiguration { + if b.PodAnnotations == nil && len(entries) > 0 { + b.PodAnnotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodAnnotations[k] = v + } + return b +} + +// WithPodLabels puts the entries into the PodLabels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodLabels field, +// overwriting an existing map entries in PodLabels field with the same key. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithPodLabels(entries map[string]string) *FabricChaincodeTemplateSpecApplyConfiguration { + if b.PodLabels == nil && len(entries) > 0 { + b.PodLabels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodLabels[k] = v + } + return b +} + +// WithImagePullPolicy sets the ImagePullPolicy field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ImagePullPolicy field is set to the value of the last call. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithImagePullPolicy(value v1.PullPolicy) *FabricChaincodeTemplateSpecApplyConfiguration { + b.ImagePullPolicy = &value + return b +} + +// WithImagePullSecrets adds the given value to the ImagePullSecrets field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the ImagePullSecrets field. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithImagePullSecrets(values ...v1.LocalObjectReference) *FabricChaincodeTemplateSpecApplyConfiguration { + for i := range values { + b.ImagePullSecrets = append(b.ImagePullSecrets, values[i]) + } + return b +} + +// WithCommand adds the given value to the Command field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Command field. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithCommand(values ...string) *FabricChaincodeTemplateSpecApplyConfiguration { + for i := range values { + b.Command = append(b.Command, values[i]) + } + return b +} + +// WithArgs adds the given value to the Args field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Args field. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithArgs(values ...string) *FabricChaincodeTemplateSpecApplyConfiguration { + for i := range values { + b.Args = append(b.Args, values[i]) + } + return b +} + +// WithAffinity sets the Affinity field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Affinity field is set to the value of the last call. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithAffinity(value v1.Affinity) *FabricChaincodeTemplateSpecApplyConfiguration { + b.Affinity = &value + return b +} + +// WithTolerations adds the given value to the Tolerations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Tolerations field. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithTolerations(values ...v1.Toleration) *FabricChaincodeTemplateSpecApplyConfiguration { + for i := range values { + b.Tolerations = append(b.Tolerations, values[i]) + } + return b +} + +// WithResources sets the Resources field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Resources field is set to the value of the last call. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithResources(value v1.ResourceRequirements) *FabricChaincodeTemplateSpecApplyConfiguration { + b.Resources = &value + return b +} + +// WithCredentials sets the Credentials field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Credentials field is set to the value of the last call. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithCredentials(value *TLSApplyConfiguration) *FabricChaincodeTemplateSpecApplyConfiguration { + b.Credentials = value + return b +} + +// WithReplicas sets the Replicas field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Replicas field is set to the value of the last call. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithReplicas(value int) *FabricChaincodeTemplateSpecApplyConfiguration { + b.Replicas = &value + return b +} + +// WithEnv adds the given value to the Env field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Env field. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithEnv(values ...v1.EnvVar) *FabricChaincodeTemplateSpecApplyConfiguration { + for i := range values { + b.Env = append(b.Env, values[i]) + } + return b +} + +// WithChaincodeServerPort sets the ChaincodeServerPort field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the ChaincodeServerPort field is set to the value of the last call. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithChaincodeServerPort(value int) *FabricChaincodeTemplateSpecApplyConfiguration { + b.ChaincodeServerPort = &value + return b +} + +// WithMspID sets the MspID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the MspID field is set to the value of the last call. +func (b *FabricChaincodeTemplateSpecApplyConfiguration) WithMspID(value string) *FabricChaincodeTemplateSpecApplyConfiguration { + b.MspID = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplatestatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplatestatus.go new file mode 100644 index 00000000..8d575ac9 --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplatestatus.go @@ -0,0 +1,51 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/kfsoftware/hlf-operator/api/hlf.kungfusoftware.es/v1alpha1" + status "github.com/kfsoftware/hlf-operator/pkg/status" +) + +// FabricChaincodeTemplateStatusApplyConfiguration represents an declarative configuration of the FabricChaincodeTemplateStatus type for use +// with apply. +type FabricChaincodeTemplateStatusApplyConfiguration struct { + Conditions *status.Conditions `json:"conditions,omitempty"` + Message *string `json:"message,omitempty"` + Status *v1alpha1.DeploymentStatus `json:"status,omitempty"` +} + +// FabricChaincodeTemplateStatusApplyConfiguration constructs an declarative configuration of the FabricChaincodeTemplateStatus type for use with +// apply. +func FabricChaincodeTemplateStatus() *FabricChaincodeTemplateStatusApplyConfiguration { + return &FabricChaincodeTemplateStatusApplyConfiguration{} +} + +// WithConditions sets the Conditions field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Conditions field is set to the value of the last call. +func (b *FabricChaincodeTemplateStatusApplyConfiguration) WithConditions(value status.Conditions) *FabricChaincodeTemplateStatusApplyConfiguration { + b.Conditions = &value + return b +} + +// WithMessage sets the Message field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Message field is set to the value of the last call. +func (b *FabricChaincodeTemplateStatusApplyConfiguration) WithMessage(value string) *FabricChaincodeTemplateStatusApplyConfiguration { + b.Message = &value + return b +} + +// WithStatus sets the Status field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Status field is set to the value of the last call. +func (b *FabricChaincodeTemplateStatusApplyConfiguration) WithStatus(value v1alpha1.DeploymentStatus) *FabricChaincodeTemplateStatusApplyConfiguration { + b.Status = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go index 5f9ebf12..02f14100 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorerspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorerspec.go index f4b820b0..fe8a0e6e 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorerspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorerspec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorerstatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorerstatus.go index 5ca19d56..d84c1507 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorerstatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricexplorerstatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go index 92ddad70..84bfe0fd 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelanchorpeer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelanchorpeer.go index d3cb6533..48fa304e 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelanchorpeer.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelanchorpeer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelexternalpeer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelexternalpeer.go index 2f6130a7..3660a374 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelexternalpeer.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelexternalpeer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelorderer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelorderer.go index 3a39301b..41ef27bd 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelorderer.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelorderer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelpeer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelpeer.go index b5264f9e..5b967baf 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelpeer.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelpeer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelspec.go index 63c5211b..d8167b40 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelspec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelstatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelstatus.go index aee47044..8a15efa9 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelstatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannelstatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfsserver.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfsserver.go index 69e67c11..428a823e 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfsserver.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricfsserver.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricgatewayapi.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricgatewayapi.go new file mode 100644 index 00000000..1a58250c --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricgatewayapi.go @@ -0,0 +1,57 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// FabricGatewayApiApplyConfiguration represents an declarative configuration of the FabricGatewayApi type for use +// with apply. +type FabricGatewayApiApplyConfiguration struct { + Port *int `json:"port,omitempty"` + Hosts []string `json:"hosts,omitempty"` + GatewayName *string `json:"gatewayName,omitempty"` + GatewayNamespace *string `json:"gatewayNamespace,omitempty"` +} + +// FabricGatewayApiApplyConfiguration constructs an declarative configuration of the FabricGatewayApi type for use with +// apply. +func FabricGatewayApi() *FabricGatewayApiApplyConfiguration { + return &FabricGatewayApiApplyConfiguration{} +} + +// WithPort sets the Port field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Port field is set to the value of the last call. +func (b *FabricGatewayApiApplyConfiguration) WithPort(value int) *FabricGatewayApiApplyConfiguration { + b.Port = &value + return b +} + +// WithHosts adds the given value to the Hosts field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Hosts field. +func (b *FabricGatewayApiApplyConfiguration) WithHosts(values ...string) *FabricGatewayApiApplyConfiguration { + for i := range values { + b.Hosts = append(b.Hosts, values[i]) + } + return b +} + +// WithGatewayName sets the GatewayName field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GatewayName field is set to the value of the last call. +func (b *FabricGatewayApiApplyConfiguration) WithGatewayName(value string) *FabricGatewayApiApplyConfiguration { + b.GatewayName = &value + return b +} + +// WithGatewayNamespace sets the GatewayNamespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GatewayNamespace field is set to the value of the last call. +func (b *FabricGatewayApiApplyConfiguration) WithGatewayNamespace(value string) *FabricGatewayApiApplyConfiguration { + b.GatewayNamespace = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go index 4c14ccd5..d91b76c6 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentityregister.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentityregister.go index 198eff50..068834f0 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentityregister.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentityregister.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentityspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentityspec.go index 31dc99cc..9867eb89 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentityspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentityspec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentitystatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentitystatus.go index 64b624c2..79db57e3 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentitystatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricidentitystatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricistio.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricistio.go index efb790d4..681989a3 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricistio.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricistio.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go index f9be4689..9fc20685 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneladminordererorganizationspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneladminordererorganizationspec.go index 3d933bd2..4038c56e 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneladminordererorganizationspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneladminordererorganizationspec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneladminpeerorganizationspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneladminpeerorganizationspec.go index 0847b3cd..5ae11b84 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneladminpeerorganizationspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneladminpeerorganizationspec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelapplicationconfig.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelapplicationconfig.go index f188ae59..af6e4f41 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelapplicationconfig.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelapplicationconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelconfig.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelconfig.go index a8d31d2d..d3d55d4e 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelconfig.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelconsenter.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelconsenter.go index 3691311f..01624a75 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelconsenter.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelconsenter.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneletcdraft.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneletcdraft.go index c791807a..299fa1d5 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneletcdraft.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneletcdraft.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneletcdraftoptions.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneletcdraftoptions.go index 4e1ba180..7cc02eb0 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneletcdraftoptions.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchanneletcdraftoptions.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalorderernode.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalorderernode.go index d97c4a06..9e0a994d 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalorderernode.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalorderernode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalordererorganization.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalordererorganization.go index 93640ec9..a4c2d4e5 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalordererorganization.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalordererorganization.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalpeerorganization.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalpeerorganization.go index 26de2cdc..9e71044a 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalpeerorganization.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelexternalpeerorganization.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelidentity.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelidentity.go index e21b16c1..84ec1e4b 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelidentity.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererbatchsize.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererbatchsize.go index ffd4ff0b..dc58e7fd 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererbatchsize.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererbatchsize.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererconfig.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererconfig.go index 869500fc..429840ad 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererconfig.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelorderernode.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelorderernode.go index 34f23247..6e60bf1f 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelorderernode.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelorderernode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererorganization.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererorganization.go index 96339003..336d728d 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererorganization.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelordererorganization.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelpeerorganization.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelpeerorganization.go index b05b785e..fd7002ea 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelpeerorganization.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelpeerorganization.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelpoliciesconfig.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelpoliciesconfig.go index bfe6dfa6..323ed3d5 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelpoliciesconfig.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelpoliciesconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelspec.go index a43d384b..282568b1 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelspec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelstatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelstatus.go index f83a0b6e..0228dd31 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelstatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricmainchannelstatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go index de02e6ae..8713dc7f 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigca.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigca.go new file mode 100644 index 00000000..43965cf8 --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigca.go @@ -0,0 +1,37 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// FabricNetworkConfigCAApplyConfiguration represents an declarative configuration of the FabricNetworkConfigCA type for use +// with apply. +type FabricNetworkConfigCAApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// FabricNetworkConfigCAApplyConfiguration constructs an declarative configuration of the FabricNetworkConfigCA type for use with +// apply. +func FabricNetworkConfigCA() *FabricNetworkConfigCAApplyConfiguration { + return &FabricNetworkConfigCAApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *FabricNetworkConfigCAApplyConfiguration) WithName(value string) *FabricNetworkConfigCAApplyConfiguration { + b.Name = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *FabricNetworkConfigCAApplyConfiguration) WithNamespace(value string) *FabricNetworkConfigCAApplyConfiguration { + b.Namespace = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigexternalorderer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigexternalorderer.go new file mode 100644 index 00000000..2f3e30f2 --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigexternalorderer.go @@ -0,0 +1,55 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// FabricNetworkConfigExternalOrdererApplyConfiguration represents an declarative configuration of the FabricNetworkConfigExternalOrderer type for use +// with apply. +type FabricNetworkConfigExternalOrdererApplyConfiguration struct { + Name *string `json:"name,omitempty"` + URL *string `json:"url,omitempty"` + TLSCACert *string `json:"tlsCACert,omitempty"` + MSPID *string `json:"mspID,omitempty"` +} + +// FabricNetworkConfigExternalOrdererApplyConfiguration constructs an declarative configuration of the FabricNetworkConfigExternalOrderer type for use with +// apply. +func FabricNetworkConfigExternalOrderer() *FabricNetworkConfigExternalOrdererApplyConfiguration { + return &FabricNetworkConfigExternalOrdererApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *FabricNetworkConfigExternalOrdererApplyConfiguration) WithName(value string) *FabricNetworkConfigExternalOrdererApplyConfiguration { + b.Name = &value + return b +} + +// WithURL sets the URL field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the URL field is set to the value of the last call. +func (b *FabricNetworkConfigExternalOrdererApplyConfiguration) WithURL(value string) *FabricNetworkConfigExternalOrdererApplyConfiguration { + b.URL = &value + return b +} + +// WithTLSCACert sets the TLSCACert field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the TLSCACert field is set to the value of the last call. +func (b *FabricNetworkConfigExternalOrdererApplyConfiguration) WithTLSCACert(value string) *FabricNetworkConfigExternalOrdererApplyConfiguration { + b.TLSCACert = &value + return b +} + +// WithMSPID sets the MSPID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the MSPID field is set to the value of the last call. +func (b *FabricNetworkConfigExternalOrdererApplyConfiguration) WithMSPID(value string) *FabricNetworkConfigExternalOrdererApplyConfiguration { + b.MSPID = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigexternalpeer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigexternalpeer.go new file mode 100644 index 00000000..cbafc17c --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigexternalpeer.go @@ -0,0 +1,55 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// FabricNetworkConfigExternalPeerApplyConfiguration represents an declarative configuration of the FabricNetworkConfigExternalPeer type for use +// with apply. +type FabricNetworkConfigExternalPeerApplyConfiguration struct { + Name *string `json:"name,omitempty"` + URL *string `json:"url,omitempty"` + TLSCACert *string `json:"tlsCACert,omitempty"` + MSPID *string `json:"mspID,omitempty"` +} + +// FabricNetworkConfigExternalPeerApplyConfiguration constructs an declarative configuration of the FabricNetworkConfigExternalPeer type for use with +// apply. +func FabricNetworkConfigExternalPeer() *FabricNetworkConfigExternalPeerApplyConfiguration { + return &FabricNetworkConfigExternalPeerApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *FabricNetworkConfigExternalPeerApplyConfiguration) WithName(value string) *FabricNetworkConfigExternalPeerApplyConfiguration { + b.Name = &value + return b +} + +// WithURL sets the URL field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the URL field is set to the value of the last call. +func (b *FabricNetworkConfigExternalPeerApplyConfiguration) WithURL(value string) *FabricNetworkConfigExternalPeerApplyConfiguration { + b.URL = &value + return b +} + +// WithTLSCACert sets the TLSCACert field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the TLSCACert field is set to the value of the last call. +func (b *FabricNetworkConfigExternalPeerApplyConfiguration) WithTLSCACert(value string) *FabricNetworkConfigExternalPeerApplyConfiguration { + b.TLSCACert = &value + return b +} + +// WithMSPID sets the MSPID field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the MSPID field is set to the value of the last call. +func (b *FabricNetworkConfigExternalPeerApplyConfiguration) WithMSPID(value string) *FabricNetworkConfigExternalPeerApplyConfiguration { + b.MSPID = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigidentity.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigidentity.go index 97bdfa67..5ba54fc9 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigidentity.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigorganization.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigorganization.go new file mode 100644 index 00000000..48dc749c --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigorganization.go @@ -0,0 +1,33 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// FabricNetworkConfigOrganizationApplyConfiguration represents an declarative configuration of the FabricNetworkConfigOrganization type for use +// with apply. +type FabricNetworkConfigOrganizationApplyConfiguration struct { + Peers []FabricNetworkConfigOrgPeerApplyConfiguration `json:"peers,omitempty"` +} + +// FabricNetworkConfigOrganizationApplyConfiguration constructs an declarative configuration of the FabricNetworkConfigOrganization type for use with +// apply. +func FabricNetworkConfigOrganization() *FabricNetworkConfigOrganizationApplyConfiguration { + return &FabricNetworkConfigOrganizationApplyConfiguration{} +} + +// WithPeers adds the given value to the Peers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Peers field. +func (b *FabricNetworkConfigOrganizationApplyConfiguration) WithPeers(values ...*FabricNetworkConfigOrgPeerApplyConfiguration) *FabricNetworkConfigOrganizationApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithPeers") + } + b.Peers = append(b.Peers, *values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigorgpeer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigorgpeer.go new file mode 100644 index 00000000..50f5c471 --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigorgpeer.go @@ -0,0 +1,37 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// FabricNetworkConfigOrgPeerApplyConfiguration represents an declarative configuration of the FabricNetworkConfigOrgPeer type for use +// with apply. +type FabricNetworkConfigOrgPeerApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// FabricNetworkConfigOrgPeerApplyConfiguration constructs an declarative configuration of the FabricNetworkConfigOrgPeer type for use with +// apply. +func FabricNetworkConfigOrgPeer() *FabricNetworkConfigOrgPeerApplyConfiguration { + return &FabricNetworkConfigOrgPeerApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *FabricNetworkConfigOrgPeerApplyConfiguration) WithName(value string) *FabricNetworkConfigOrgPeerApplyConfiguration { + b.Name = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *FabricNetworkConfigOrgPeerApplyConfiguration) WithNamespace(value string) *FabricNetworkConfigOrgPeerApplyConfiguration { + b.Namespace = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigspec.go index e5de3a28..36f4e6f0 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigspec.go @@ -3,19 +3,24 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 // FabricNetworkConfigSpecApplyConfiguration represents an declarative configuration of the FabricNetworkConfigSpec type for use // with apply. type FabricNetworkConfigSpecApplyConfiguration struct { - Organization *string `json:"organization,omitempty"` - Internal *bool `json:"internal,omitempty"` - Organizations []string `json:"organizations,omitempty"` - Namespaces []string `json:"namespaces,omitempty"` - Channels []string `json:"channels,omitempty"` - Identities []FabricNetworkConfigIdentityApplyConfiguration `json:"identities,omitempty"` - SecretName *string `json:"secretName,omitempty"` + Organization *string `json:"organization,omitempty"` + Internal *bool `json:"internal,omitempty"` + Organizations []string `json:"organizations,omitempty"` + OrganizationConfig map[string]FabricNetworkConfigOrganizationApplyConfiguration `json:"organizationConfig,omitempty"` + Namespaces []string `json:"namespaces,omitempty"` + CertificateAuthorities []FabricNetworkConfigCAApplyConfiguration `json:"certificateAuthorities,omitempty"` + Channels []string `json:"channels,omitempty"` + Identities []FabricNetworkConfigIdentityApplyConfiguration `json:"identities,omitempty"` + ExternalOrderers []FabricNetworkConfigExternalOrdererApplyConfiguration `json:"externalOrderers,omitempty"` + ExternalPeers []FabricNetworkConfigExternalPeerApplyConfiguration `json:"externalPeers,omitempty"` + SecretName *string `json:"secretName,omitempty"` } // FabricNetworkConfigSpecApplyConfiguration constructs an declarative configuration of the FabricNetworkConfigSpec type for use with @@ -50,6 +55,20 @@ func (b *FabricNetworkConfigSpecApplyConfiguration) WithOrganizations(values ... return b } +// WithOrganizationConfig puts the entries into the OrganizationConfig field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the OrganizationConfig field, +// overwriting an existing map entries in OrganizationConfig field with the same key. +func (b *FabricNetworkConfigSpecApplyConfiguration) WithOrganizationConfig(entries map[string]FabricNetworkConfigOrganizationApplyConfiguration) *FabricNetworkConfigSpecApplyConfiguration { + if b.OrganizationConfig == nil && len(entries) > 0 { + b.OrganizationConfig = make(map[string]FabricNetworkConfigOrganizationApplyConfiguration, len(entries)) + } + for k, v := range entries { + b.OrganizationConfig[k] = v + } + return b +} + // WithNamespaces adds the given value to the Namespaces field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Namespaces field. @@ -60,6 +79,19 @@ func (b *FabricNetworkConfigSpecApplyConfiguration) WithNamespaces(values ...str return b } +// WithCertificateAuthorities adds the given value to the CertificateAuthorities field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the CertificateAuthorities field. +func (b *FabricNetworkConfigSpecApplyConfiguration) WithCertificateAuthorities(values ...*FabricNetworkConfigCAApplyConfiguration) *FabricNetworkConfigSpecApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithCertificateAuthorities") + } + b.CertificateAuthorities = append(b.CertificateAuthorities, *values[i]) + } + return b +} + // WithChannels adds the given value to the Channels field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Channels field. @@ -83,6 +115,32 @@ func (b *FabricNetworkConfigSpecApplyConfiguration) WithIdentities(values ...*Fa return b } +// WithExternalOrderers adds the given value to the ExternalOrderers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the ExternalOrderers field. +func (b *FabricNetworkConfigSpecApplyConfiguration) WithExternalOrderers(values ...*FabricNetworkConfigExternalOrdererApplyConfiguration) *FabricNetworkConfigSpecApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithExternalOrderers") + } + b.ExternalOrderers = append(b.ExternalOrderers, *values[i]) + } + return b +} + +// WithExternalPeers adds the given value to the ExternalPeers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the ExternalPeers field. +func (b *FabricNetworkConfigSpecApplyConfiguration) WithExternalPeers(values ...*FabricNetworkConfigExternalPeerApplyConfiguration) *FabricNetworkConfigSpecApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithExternalPeers") + } + b.ExternalPeers = append(b.ExternalPeers, *values[i]) + } + return b +} + // WithSecretName sets the SecretName field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the SecretName field is set to the value of the last call. diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigstatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigstatus.go index 6c850a33..27431b79 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigstatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfigstatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go index 228dfc36..80710721 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsoleauth.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsoleauth.go index 1628f70f..9c3e2067 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsoleauth.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsoleauth.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolecouchdb.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolecouchdb.go index 7afd0a07..28417cfc 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolecouchdb.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolecouchdb.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolespec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolespec.go index aeede66d..9fddfbaf 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolespec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolespec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolestatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolestatus.go index 0d2e9e54..2e3a505f 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolestatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsolestatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go index e41c78f4..a9875408 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapiauth.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapiauth.go index ad3108fe..73899c38 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapiauth.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapiauth.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapihlfconfig.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapihlfconfig.go index c15e16d6..c6888ca0 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapihlfconfig.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapihlfconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapinetworkconfig.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapinetworkconfig.go index 2fceff3e..06072915 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapinetworkconfig.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapinetworkconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapispec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapispec.go index 287d4967..d0c38125 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapispec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapispec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 @@ -19,6 +20,7 @@ type FabricOperatorAPISpecApplyConfiguration struct { Istio *FabricIstioApplyConfiguration `json:"istio,omitempty"` Ingress *IngressApplyConfiguration `json:"ingress,omitempty"` Replicas *int `json:"replicas,omitempty"` + PodLabels map[string]string `json:"podLabels,omitempty"` Auth *FabricOperatorAPIAuthApplyConfiguration `json:"auth,omitempty"` LogoURL *string `json:"logoUrl,omitempty"` HLFConfig *FabricOperatorAPIHLFConfigApplyConfiguration `json:"hlfConfig,omitempty"` @@ -83,6 +85,20 @@ func (b *FabricOperatorAPISpecApplyConfiguration) WithReplicas(value int) *Fabri return b } +// WithPodLabels puts the entries into the PodLabels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodLabels field, +// overwriting an existing map entries in PodLabels field with the same key. +func (b *FabricOperatorAPISpecApplyConfiguration) WithPodLabels(entries map[string]string) *FabricOperatorAPISpecApplyConfiguration { + if b.PodLabels == nil && len(entries) > 0 { + b.PodLabels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodLabels[k] = v + } + return b +} + // WithAuth sets the Auth field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Auth field is set to the value of the last call. diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapistatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapistatus.go index c6d162f8..916fe598 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapistatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapistatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go index 782ba5e0..2815725f 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruiauth.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruiauth.go index fc7d4226..ee4413a6 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruiauth.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruiauth.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruispec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruispec.go index b91ebedf..1e6bab95 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruispec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruispec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruistatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruistatus.go index 5e4f5b73..0404546d 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruistatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricoperatoruistatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go index 8a6a4961..905aa966 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernodespec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernodespec.go index 0af14a30..36394e0d 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernodespec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernodespec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 @@ -15,6 +16,8 @@ import ( // FabricOrdererNodeSpecApplyConfiguration represents an declarative configuration of the FabricOrdererNodeSpec type for use // with apply. type FabricOrdererNodeSpecApplyConfiguration struct { + PodAnnotations map[string]string `json:"podAnnotations,omitempty"` + PodLabels map[string]string `json:"podLabels,omitempty"` Tolerations []v1.Toleration `json:"tolerations,omitempty"` GRPCProxy *GRPCProxyApplyConfiguration `json:"grpcProxy,omitempty"` Affinity *v1.Affinity `json:"affinity,omitempty"` @@ -35,8 +38,12 @@ type FabricOrdererNodeSpecApplyConfiguration struct { Storage *StorageApplyConfiguration `json:"storage,omitempty"` Service *OrdererNodeServiceApplyConfiguration `json:"service,omitempty"` Secret *SecretApplyConfiguration `json:"secret,omitempty"` + GatewayApi *FabricGatewayApiApplyConfiguration `json:"gatewayApi,omitempty"` Istio *FabricIstioApplyConfiguration `json:"istio,omitempty"` + Traefik *FabricTraefikApplyConfiguration `json:"traefik,omitempty"` + AdminGatewayApi *FabricGatewayApiApplyConfiguration `json:"adminGatewayApi,omitempty"` AdminIstio *FabricIstioApplyConfiguration `json:"adminIstio,omitempty"` + AdminTraefik *FabricTraefikApplyConfiguration `json:"adminTraefik,omitempty"` Env []v1.EnvVar `json:"env,omitempty"` } @@ -46,6 +53,34 @@ func FabricOrdererNodeSpec() *FabricOrdererNodeSpecApplyConfiguration { return &FabricOrdererNodeSpecApplyConfiguration{} } +// WithPodAnnotations puts the entries into the PodAnnotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodAnnotations field, +// overwriting an existing map entries in PodAnnotations field with the same key. +func (b *FabricOrdererNodeSpecApplyConfiguration) WithPodAnnotations(entries map[string]string) *FabricOrdererNodeSpecApplyConfiguration { + if b.PodAnnotations == nil && len(entries) > 0 { + b.PodAnnotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodAnnotations[k] = v + } + return b +} + +// WithPodLabels puts the entries into the PodLabels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodLabels field, +// overwriting an existing map entries in PodLabels field with the same key. +func (b *FabricOrdererNodeSpecApplyConfiguration) WithPodLabels(entries map[string]string) *FabricOrdererNodeSpecApplyConfiguration { + if b.PodLabels == nil && len(entries) > 0 { + b.PodLabels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodLabels[k] = v + } + return b +} + // WithTolerations adds the given value to the Tolerations field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Tolerations field. @@ -212,6 +247,14 @@ func (b *FabricOrdererNodeSpecApplyConfiguration) WithSecret(value *SecretApplyC return b } +// WithGatewayApi sets the GatewayApi field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GatewayApi field is set to the value of the last call. +func (b *FabricOrdererNodeSpecApplyConfiguration) WithGatewayApi(value *FabricGatewayApiApplyConfiguration) *FabricOrdererNodeSpecApplyConfiguration { + b.GatewayApi = value + return b +} + // WithIstio sets the Istio field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Istio field is set to the value of the last call. @@ -220,6 +263,22 @@ func (b *FabricOrdererNodeSpecApplyConfiguration) WithIstio(value *FabricIstioAp return b } +// WithTraefik sets the Traefik field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Traefik field is set to the value of the last call. +func (b *FabricOrdererNodeSpecApplyConfiguration) WithTraefik(value *FabricTraefikApplyConfiguration) *FabricOrdererNodeSpecApplyConfiguration { + b.Traefik = value + return b +} + +// WithAdminGatewayApi sets the AdminGatewayApi field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the AdminGatewayApi field is set to the value of the last call. +func (b *FabricOrdererNodeSpecApplyConfiguration) WithAdminGatewayApi(value *FabricGatewayApiApplyConfiguration) *FabricOrdererNodeSpecApplyConfiguration { + b.AdminGatewayApi = value + return b +} + // WithAdminIstio sets the AdminIstio field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the AdminIstio field is set to the value of the last call. @@ -228,6 +287,14 @@ func (b *FabricOrdererNodeSpecApplyConfiguration) WithAdminIstio(value *FabricIs return b } +// WithAdminTraefik sets the AdminTraefik field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the AdminTraefik field is set to the value of the last call. +func (b *FabricOrdererNodeSpecApplyConfiguration) WithAdminTraefik(value *FabricTraefikApplyConfiguration) *FabricOrdererNodeSpecApplyConfiguration { + b.AdminTraefik = value + return b +} + // WithEnv adds the given value to the Env field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Env field. diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernodestatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernodestatus.go index c83ac415..348964f2 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernodestatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderernodestatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go index 69173506..68c3f290 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservicespec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservicespec.go index a11ffcc4..259ec9b8 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservicespec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservicespec.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservicestatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservicestatus.go index 4e088046..fb090999 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservicestatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricorderingservicestatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go index 34c0c83b..4cafcfe4 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeercouchdb.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeercouchdb.go index 7fa90d5e..dc90dce9 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeercouchdb.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeercouchdb.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeercouchdbexporter.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeercouchdbexporter.go index 9e6fc9c3..98b8ea30 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeercouchdbexporter.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeercouchdbexporter.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerdiscovery.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerdiscovery.go index e0452580..e44a2cb7 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerdiscovery.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerdiscovery.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerexternalcouchdb.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerexternalcouchdb.go index ddb32b33..1a87b5f0 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerexternalcouchdb.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerexternalcouchdb.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerlogging.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerlogging.go index 362dedde..486be094 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerlogging.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerlogging.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerresources.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerresources.go index 3b1a4782..8e8d3af3 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerresources.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerresources.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerspec.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerspec.go index c22a5ce0..05270a69 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerspec.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerspec.go @@ -3,49 +3,57 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 import ( hlfkungfusoftwareesv1alpha1 "github.com/kfsoftware/hlf-operator/api/hlf.kungfusoftware.es/v1alpha1" - corev1 "k8s.io/api/core/v1" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1 "k8s.io/api/core/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // FabricPeerSpecApplyConfiguration represents an declarative configuration of the FabricPeerSpec type for use // with apply. type FabricPeerSpecApplyConfiguration struct { - UpdateCertificateTime *v1.Time `json:"updateCertificateTime,omitempty"` - Affinity *corev1.Affinity `json:"affinity,omitempty"` - ServiceMonitor *ServiceMonitorApplyConfiguration `json:"serviceMonitor,omitempty"` - HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` - NodeSelector *corev1.NodeSelector `json:"nodeSelector,omitempty"` - CouchDBExporter *FabricPeerCouchdbExporterApplyConfiguration `json:"couchDBexporter,omitempty"` - GRPCProxy *GRPCProxyApplyConfiguration `json:"grpcProxy,omitempty"` - Replicas *int `json:"replicas,omitempty"` - DockerSocketPath *string `json:"dockerSocketPath,omitempty"` - Image *string `json:"image,omitempty"` - ExternalBuilders []ExternalBuilderApplyConfiguration `json:"externalBuilders,omitempty"` - Istio *FabricIstioApplyConfiguration `json:"istio,omitempty"` - Gossip *FabricPeerSpecGossipApplyConfiguration `json:"gossip,omitempty"` - ExternalEndpoint *string `json:"externalEndpoint,omitempty"` - Tag *string `json:"tag,omitempty"` - ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` - ExternalChaincodeBuilder *bool `json:"external_chaincode_builder,omitempty"` - CouchDB *FabricPeerCouchDBApplyConfiguration `json:"couchdb,omitempty"` - FSServer *FabricFSServerApplyConfiguration `json:"fsServer,omitempty"` - ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` - MspID *string `json:"mspID,omitempty"` - Secret *SecretApplyConfiguration `json:"secret,omitempty"` - Service *PeerServiceApplyConfiguration `json:"service,omitempty"` - StateDb *hlfkungfusoftwareesv1alpha1.StateDB `json:"stateDb,omitempty"` - Storage *FabricPeerStorageApplyConfiguration `json:"storage,omitempty"` - Discovery *FabricPeerDiscoveryApplyConfiguration `json:"discovery,omitempty"` - Logging *FabricPeerLoggingApplyConfiguration `json:"logging,omitempty"` - Resources *FabricPeerResourcesApplyConfiguration `json:"resources,omitempty"` - Hosts []string `json:"hosts,omitempty"` - Tolerations []corev1.Toleration `json:"tolerations,omitempty"` - Env []corev1.EnvVar `json:"env,omitempty"` + PodAnnotations map[string]string `json:"podAnnotations,omitempty"` + PodLabels map[string]string `json:"podLabels,omitempty"` + DeliveryClientaddressOverrides []AddressOverrideApplyConfiguration `json:"deliveryClientaddressOverrides,omitempty"` + Volumes []v1.Volume `json:"volumes,omitempty"` + PeerVolumeMounts []v1.VolumeMount `json:"peerVolumeMounts,omitempty"` + UpdateCertificateTime *metav1.Time `json:"updateCertificateTime,omitempty"` + Affinity *v1.Affinity `json:"affinity,omitempty"` + ServiceMonitor *ServiceMonitorApplyConfiguration `json:"serviceMonitor,omitempty"` + HostAliases []v1.HostAlias `json:"hostAliases,omitempty"` + NodeSelector *v1.NodeSelector `json:"nodeSelector,omitempty"` + CouchDBExporter *FabricPeerCouchdbExporterApplyConfiguration `json:"couchDBexporter,omitempty"` + GRPCProxy *GRPCProxyApplyConfiguration `json:"grpcProxy,omitempty"` + Replicas *int `json:"replicas,omitempty"` + DockerSocketPath *string `json:"dockerSocketPath,omitempty"` + Image *string `json:"image,omitempty"` + ExternalBuilders []ExternalBuilderApplyConfiguration `json:"externalBuilders,omitempty"` + GatewayApi *FabricGatewayApiApplyConfiguration `json:"gatewayApi,omitempty"` + Traefik *FabricTraefikApplyConfiguration `json:"traefik,omitempty"` + Istio *FabricIstioApplyConfiguration `json:"istio,omitempty"` + Gossip *FabricPeerSpecGossipApplyConfiguration `json:"gossip,omitempty"` + ExternalEndpoint *string `json:"externalEndpoint,omitempty"` + Tag *string `json:"tag,omitempty"` + ImagePullPolicy *v1.PullPolicy `json:"imagePullPolicy,omitempty"` + ExternalChaincodeBuilder *bool `json:"external_chaincode_builder,omitempty"` + CouchDB *FabricPeerCouchDBApplyConfiguration `json:"couchdb,omitempty"` + FSServer *FabricFSServerApplyConfiguration `json:"fsServer,omitempty"` + ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"` + MspID *string `json:"mspID,omitempty"` + Secret *SecretApplyConfiguration `json:"secret,omitempty"` + Service *PeerServiceApplyConfiguration `json:"service,omitempty"` + StateDb *hlfkungfusoftwareesv1alpha1.StateDB `json:"stateDb,omitempty"` + Storage *FabricPeerStorageApplyConfiguration `json:"storage,omitempty"` + Discovery *FabricPeerDiscoveryApplyConfiguration `json:"discovery,omitempty"` + Logging *FabricPeerLoggingApplyConfiguration `json:"logging,omitempty"` + Resources *FabricPeerResourcesApplyConfiguration `json:"resources,omitempty"` + Hosts []string `json:"hosts,omitempty"` + Tolerations []v1.Toleration `json:"tolerations,omitempty"` + Env []v1.EnvVar `json:"env,omitempty"` } // FabricPeerSpecApplyConfiguration constructs an declarative configuration of the FabricPeerSpec type for use with @@ -54,10 +62,71 @@ func FabricPeerSpec() *FabricPeerSpecApplyConfiguration { return &FabricPeerSpecApplyConfiguration{} } +// WithPodAnnotations puts the entries into the PodAnnotations field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodAnnotations field, +// overwriting an existing map entries in PodAnnotations field with the same key. +func (b *FabricPeerSpecApplyConfiguration) WithPodAnnotations(entries map[string]string) *FabricPeerSpecApplyConfiguration { + if b.PodAnnotations == nil && len(entries) > 0 { + b.PodAnnotations = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodAnnotations[k] = v + } + return b +} + +// WithPodLabels puts the entries into the PodLabels field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, the entries provided by each call will be put on the PodLabels field, +// overwriting an existing map entries in PodLabels field with the same key. +func (b *FabricPeerSpecApplyConfiguration) WithPodLabels(entries map[string]string) *FabricPeerSpecApplyConfiguration { + if b.PodLabels == nil && len(entries) > 0 { + b.PodLabels = make(map[string]string, len(entries)) + } + for k, v := range entries { + b.PodLabels[k] = v + } + return b +} + +// WithDeliveryClientaddressOverrides adds the given value to the DeliveryClientaddressOverrides field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the DeliveryClientaddressOverrides field. +func (b *FabricPeerSpecApplyConfiguration) WithDeliveryClientaddressOverrides(values ...*AddressOverrideApplyConfiguration) *FabricPeerSpecApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithDeliveryClientaddressOverrides") + } + b.DeliveryClientaddressOverrides = append(b.DeliveryClientaddressOverrides, *values[i]) + } + return b +} + +// WithVolumes adds the given value to the Volumes field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Volumes field. +func (b *FabricPeerSpecApplyConfiguration) WithVolumes(values ...v1.Volume) *FabricPeerSpecApplyConfiguration { + for i := range values { + b.Volumes = append(b.Volumes, values[i]) + } + return b +} + +// WithPeerVolumeMounts adds the given value to the PeerVolumeMounts field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the PeerVolumeMounts field. +func (b *FabricPeerSpecApplyConfiguration) WithPeerVolumeMounts(values ...v1.VolumeMount) *FabricPeerSpecApplyConfiguration { + for i := range values { + b.PeerVolumeMounts = append(b.PeerVolumeMounts, values[i]) + } + return b +} + // WithUpdateCertificateTime sets the UpdateCertificateTime field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the UpdateCertificateTime field is set to the value of the last call. -func (b *FabricPeerSpecApplyConfiguration) WithUpdateCertificateTime(value v1.Time) *FabricPeerSpecApplyConfiguration { +func (b *FabricPeerSpecApplyConfiguration) WithUpdateCertificateTime(value metav1.Time) *FabricPeerSpecApplyConfiguration { b.UpdateCertificateTime = &value return b } @@ -65,7 +134,7 @@ func (b *FabricPeerSpecApplyConfiguration) WithUpdateCertificateTime(value v1.Ti // WithAffinity sets the Affinity field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Affinity field is set to the value of the last call. -func (b *FabricPeerSpecApplyConfiguration) WithAffinity(value corev1.Affinity) *FabricPeerSpecApplyConfiguration { +func (b *FabricPeerSpecApplyConfiguration) WithAffinity(value v1.Affinity) *FabricPeerSpecApplyConfiguration { b.Affinity = &value return b } @@ -81,7 +150,7 @@ func (b *FabricPeerSpecApplyConfiguration) WithServiceMonitor(value *ServiceMoni // WithHostAliases adds the given value to the HostAliases field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the HostAliases field. -func (b *FabricPeerSpecApplyConfiguration) WithHostAliases(values ...corev1.HostAlias) *FabricPeerSpecApplyConfiguration { +func (b *FabricPeerSpecApplyConfiguration) WithHostAliases(values ...v1.HostAlias) *FabricPeerSpecApplyConfiguration { for i := range values { b.HostAliases = append(b.HostAliases, values[i]) } @@ -91,7 +160,7 @@ func (b *FabricPeerSpecApplyConfiguration) WithHostAliases(values ...corev1.Host // WithNodeSelector sets the NodeSelector field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the NodeSelector field is set to the value of the last call. -func (b *FabricPeerSpecApplyConfiguration) WithNodeSelector(value corev1.NodeSelector) *FabricPeerSpecApplyConfiguration { +func (b *FabricPeerSpecApplyConfiguration) WithNodeSelector(value v1.NodeSelector) *FabricPeerSpecApplyConfiguration { b.NodeSelector = &value return b } @@ -149,6 +218,22 @@ func (b *FabricPeerSpecApplyConfiguration) WithExternalBuilders(values ...*Exter return b } +// WithGatewayApi sets the GatewayApi field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the GatewayApi field is set to the value of the last call. +func (b *FabricPeerSpecApplyConfiguration) WithGatewayApi(value *FabricGatewayApiApplyConfiguration) *FabricPeerSpecApplyConfiguration { + b.GatewayApi = value + return b +} + +// WithTraefik sets the Traefik field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Traefik field is set to the value of the last call. +func (b *FabricPeerSpecApplyConfiguration) WithTraefik(value *FabricTraefikApplyConfiguration) *FabricPeerSpecApplyConfiguration { + b.Traefik = value + return b +} + // WithIstio sets the Istio field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Istio field is set to the value of the last call. @@ -184,7 +269,7 @@ func (b *FabricPeerSpecApplyConfiguration) WithTag(value string) *FabricPeerSpec // WithImagePullPolicy sets the ImagePullPolicy field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the ImagePullPolicy field is set to the value of the last call. -func (b *FabricPeerSpecApplyConfiguration) WithImagePullPolicy(value corev1.PullPolicy) *FabricPeerSpecApplyConfiguration { +func (b *FabricPeerSpecApplyConfiguration) WithImagePullPolicy(value v1.PullPolicy) *FabricPeerSpecApplyConfiguration { b.ImagePullPolicy = &value return b } @@ -216,7 +301,7 @@ func (b *FabricPeerSpecApplyConfiguration) WithFSServer(value *FabricFSServerApp // WithImagePullSecrets adds the given value to the ImagePullSecrets field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the ImagePullSecrets field. -func (b *FabricPeerSpecApplyConfiguration) WithImagePullSecrets(values ...corev1.LocalObjectReference) *FabricPeerSpecApplyConfiguration { +func (b *FabricPeerSpecApplyConfiguration) WithImagePullSecrets(values ...v1.LocalObjectReference) *FabricPeerSpecApplyConfiguration { for i := range values { b.ImagePullSecrets = append(b.ImagePullSecrets, values[i]) } @@ -300,7 +385,7 @@ func (b *FabricPeerSpecApplyConfiguration) WithHosts(values ...string) *FabricPe // WithTolerations adds the given value to the Tolerations field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Tolerations field. -func (b *FabricPeerSpecApplyConfiguration) WithTolerations(values ...corev1.Toleration) *FabricPeerSpecApplyConfiguration { +func (b *FabricPeerSpecApplyConfiguration) WithTolerations(values ...v1.Toleration) *FabricPeerSpecApplyConfiguration { for i := range values { b.Tolerations = append(b.Tolerations, values[i]) } @@ -310,7 +395,7 @@ func (b *FabricPeerSpecApplyConfiguration) WithTolerations(values ...corev1.Tole // WithEnv adds the given value to the Env field in the declarative configuration // and returns the receiver, so that objects can be build by chaining "With" function invocations. // If called multiple times, values provided by each call will be appended to the Env field. -func (b *FabricPeerSpecApplyConfiguration) WithEnv(values ...corev1.EnvVar) *FabricPeerSpecApplyConfiguration { +func (b *FabricPeerSpecApplyConfiguration) WithEnv(values ...v1.EnvVar) *FabricPeerSpecApplyConfiguration { for i := range values { b.Env = append(b.Env, values[i]) } diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerspecgossip.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerspecgossip.go index 1c0ef382..1be6bc04 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerspecgossip.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerspecgossip.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerstatus.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerstatus.go index 09c0c8fb..597b7bbb 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerstatus.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerstatus.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerstorage.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerstorage.go index 7f6e2c64..4dd36703 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerstorage.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabricpeerstorage.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictlscacrypto.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictlscacrypto.go deleted file mode 100644 index 9d210a2e..00000000 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictlscacrypto.go +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright Kungfusoftware.es. All Rights Reserved. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -package v1alpha1 - -// FabricTLSCACryptoApplyConfiguration represents an declarative configuration of the FabricTLSCACrypto type for use -// with apply. -type FabricTLSCACryptoApplyConfiguration struct { - Key *string `json:"key,omitempty"` - Cert *string `json:"cert,omitempty"` - ClientAuth *FabricCAClientAuthApplyConfiguration `json:"clientAuth,omitempty"` -} - -// FabricTLSCACryptoApplyConfiguration constructs an declarative configuration of the FabricTLSCACrypto type for use with -// apply. -func FabricTLSCACrypto() *FabricTLSCACryptoApplyConfiguration { - return &FabricTLSCACryptoApplyConfiguration{} -} - -// WithKey sets the Key field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Key field is set to the value of the last call. -func (b *FabricTLSCACryptoApplyConfiguration) WithKey(value string) *FabricTLSCACryptoApplyConfiguration { - b.Key = &value - return b -} - -// WithCert sets the Cert field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the Cert field is set to the value of the last call. -func (b *FabricTLSCACryptoApplyConfiguration) WithCert(value string) *FabricTLSCACryptoApplyConfiguration { - b.Cert = &value - return b -} - -// WithClientAuth sets the ClientAuth field in the declarative configuration to the given value -// and returns the receiver, so that objects can be built by chaining "With" function invocations. -// If called multiple times, the ClientAuth field is set to the value of the last call. -func (b *FabricTLSCACryptoApplyConfiguration) WithClientAuth(value *FabricCAClientAuthApplyConfiguration) *FabricTLSCACryptoApplyConfiguration { - b.ClientAuth = value - return b -} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictraefik.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictraefik.go new file mode 100644 index 00000000..db864634 --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictraefik.go @@ -0,0 +1,55 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// FabricTraefikApplyConfiguration represents an declarative configuration of the FabricTraefik type for use +// with apply. +type FabricTraefikApplyConfiguration struct { + Entrypoints []string `json:"entryPoints,omitempty"` + Middlewares []FabricTraefikMiddlewareApplyConfiguration `json:"middlewares,omitempty"` + Hosts []string `json:"hosts,omitempty"` +} + +// FabricTraefikApplyConfiguration constructs an declarative configuration of the FabricTraefik type for use with +// apply. +func FabricTraefik() *FabricTraefikApplyConfiguration { + return &FabricTraefikApplyConfiguration{} +} + +// WithEntrypoints adds the given value to the Entrypoints field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Entrypoints field. +func (b *FabricTraefikApplyConfiguration) WithEntrypoints(values ...string) *FabricTraefikApplyConfiguration { + for i := range values { + b.Entrypoints = append(b.Entrypoints, values[i]) + } + return b +} + +// WithMiddlewares adds the given value to the Middlewares field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Middlewares field. +func (b *FabricTraefikApplyConfiguration) WithMiddlewares(values ...*FabricTraefikMiddlewareApplyConfiguration) *FabricTraefikApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithMiddlewares") + } + b.Middlewares = append(b.Middlewares, *values[i]) + } + return b +} + +// WithHosts adds the given value to the Hosts field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Hosts field. +func (b *FabricTraefikApplyConfiguration) WithHosts(values ...string) *FabricTraefikApplyConfiguration { + for i := range values { + b.Hosts = append(b.Hosts, values[i]) + } + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictraefikmiddleware.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictraefikmiddleware.go new file mode 100644 index 00000000..07f60d61 --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/fabrictraefikmiddleware.go @@ -0,0 +1,37 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// FabricTraefikMiddlewareApplyConfiguration represents an declarative configuration of the FabricTraefikMiddleware type for use +// with apply. +type FabricTraefikMiddlewareApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// FabricTraefikMiddlewareApplyConfiguration constructs an declarative configuration of the FabricTraefikMiddleware type for use with +// apply. +func FabricTraefikMiddleware() *FabricTraefikMiddlewareApplyConfiguration { + return &FabricTraefikMiddlewareApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *FabricTraefikMiddlewareApplyConfiguration) WithName(value string) *FabricTraefikMiddlewareApplyConfiguration { + b.Name = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *FabricTraefikMiddlewareApplyConfiguration) WithNamespace(value string) *FabricTraefikMiddlewareApplyConfiguration { + b.Namespace = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/grpcproxy.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/grpcproxy.go index e334d596..a48e38b0 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/grpcproxy.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/grpcproxy.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/hlfidentity.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/hlfidentity.go index e6dd2dcb..61c13b79 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/hlfidentity.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/hlfidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingress.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingress.go index 4557330d..709bbe48 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingress.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingress.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingresshost.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingresshost.go index 8e492ed2..761bb8c2 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingresshost.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingresshost.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingresspath.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingresspath.go index 5ca11219..007d0331 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingresspath.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ingresspath.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderercapabilities.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderercapabilities.go index b021a5ee..143766f4 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderercapabilities.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderercapabilities.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ordererenrollment.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ordererenrollment.go index 8db07908..5a9e8d2a 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ordererenrollment.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ordererenrollment.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernode.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernode.go index 1bafddd4..204cbefb 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernode.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeenrollment.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeenrollment.go index 34886409..3a69e69d 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeenrollment.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeenrollment.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeenrollmenttls.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeenrollmenttls.go index 377b5989..f59fc556 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeenrollmenttls.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeenrollmenttls.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeservice.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeservice.go index da5f0cd2..081cbfc3 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeservice.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderernodeservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ordererservice.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ordererservice.go index 8aa4e498..54a04c99 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ordererservice.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/ordererservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderersystemchannel.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderersystemchannel.go index 8001c7cf..7956b68f 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderersystemchannel.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/orderersystemchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/peerservice.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/peerservice.go index 1461aa36..59af6ed5 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/peerservice.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/peerservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secret.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secret.go index 3d8733ec..a94be9c8 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secret.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secret.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secretref.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secretref.go new file mode 100644 index 00000000..579255e3 --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secretref.go @@ -0,0 +1,28 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// SecretRefApplyConfiguration represents an declarative configuration of the SecretRef type for use +// with apply. +type SecretRefApplyConfiguration struct { + Name *string `json:"name,omitempty"` +} + +// SecretRefApplyConfiguration constructs an declarative configuration of the SecretRef type for use with +// apply. +func SecretRef() *SecretRefApplyConfiguration { + return &SecretRefApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *SecretRefApplyConfiguration) WithName(value string) *SecretRefApplyConfiguration { + b.Name = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secretrefnskey.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secretrefnskey.go new file mode 100644 index 00000000..d5a5eb3c --- /dev/null +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/secretrefnskey.go @@ -0,0 +1,46 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1alpha1 + +// SecretRefNSKeyApplyConfiguration represents an declarative configuration of the SecretRefNSKey type for use +// with apply. +type SecretRefNSKeyApplyConfiguration struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Key *string `json:"key,omitempty"` +} + +// SecretRefNSKeyApplyConfiguration constructs an declarative configuration of the SecretRefNSKey type for use with +// apply. +func SecretRefNSKey() *SecretRefNSKeyApplyConfiguration { + return &SecretRefNSKeyApplyConfiguration{} +} + +// WithName sets the Name field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Name field is set to the value of the last call. +func (b *SecretRefNSKeyApplyConfiguration) WithName(value string) *SecretRefNSKeyApplyConfiguration { + b.Name = &value + return b +} + +// WithNamespace sets the Namespace field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Namespace field is set to the value of the last call. +func (b *SecretRefNSKeyApplyConfiguration) WithNamespace(value string) *SecretRefNSKeyApplyConfiguration { + b.Namespace = &value + return b +} + +// WithKey sets the Key field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Key field is set to the value of the last call. +func (b *SecretRefNSKeyApplyConfiguration) WithKey(value string) *SecretRefNSKeyApplyConfiguration { + b.Key = &value + return b +} diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/servicemonitor.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/servicemonitor.go index f4fe6952..46713f4b 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/servicemonitor.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/servicemonitor.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/storage.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/storage.go index e23def92..651ae467 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/storage.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/storage.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/tls.go b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/tls.go index fe7038b7..9d9770c5 100644 --- a/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/tls.go +++ b/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1/tls.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/applyconfiguration/internal/internal.go b/pkg/client/applyconfiguration/internal/internal.go index 883bd618..55ae7730 100644 --- a/pkg/client/applyconfiguration/internal/internal.go +++ b/pkg/client/applyconfiguration/internal/internal.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package internal diff --git a/pkg/client/applyconfiguration/utils.go b/pkg/client/applyconfiguration/utils.go index 255968f3..64533770 100644 --- a/pkg/client/applyconfiguration/utils.go +++ b/pkg/client/applyconfiguration/utils.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by applyconfiguration-gen. DO NOT EDIT. package applyconfiguration @@ -17,6 +18,8 @@ import ( func ForKind(kind schema.GroupVersionKind) interface{} { switch kind { // Group=hlf.kungfusoftware.es, Version=v1alpha1 + case v1alpha1.SchemeGroupVersion.WithKind("AddressOverride"): + return &hlfkungfusoftwareesv1alpha1.AddressOverrideApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("ApplicationCapabilities"): return &hlfkungfusoftwareesv1alpha1.ApplicationCapabilitiesApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("Catls"): @@ -51,8 +54,6 @@ func ForKind(kind schema.GroupVersionKind) interface{} { return &hlfkungfusoftwareesv1alpha1.FabricCACFGAffilitionsApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricCACFGIdentities"): return &hlfkungfusoftwareesv1alpha1.FabricCACFGIdentitiesApplyConfiguration{} - case v1alpha1.SchemeGroupVersion.WithKind("FabricCAClientAuth"): - return &hlfkungfusoftwareesv1alpha1.FabricCAClientAuthApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricCACRL"): return &hlfkungfusoftwareesv1alpha1.FabricCACRLApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricCACrypto"): @@ -109,6 +110,12 @@ func ForKind(kind schema.GroupVersionKind) interface{} { return &hlfkungfusoftwareesv1alpha1.FabricChaincodeSpecApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricChaincodeStatus"): return &hlfkungfusoftwareesv1alpha1.FabricChaincodeStatusApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricChaincodeTemplate"): + return &hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricChaincodeTemplateSpec"): + return &hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateSpecApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricChaincodeTemplateStatus"): + return &hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateStatusApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricExplorer"): return &hlfkungfusoftwareesv1alpha1.FabricExplorerApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricExplorerSpec"): @@ -131,6 +138,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} { return &hlfkungfusoftwareesv1alpha1.FabricFollowerChannelStatusApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricFSServer"): return &hlfkungfusoftwareesv1alpha1.FabricFSServerApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricGatewayApi"): + return &hlfkungfusoftwareesv1alpha1.FabricGatewayApiApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricIdentity"): return &hlfkungfusoftwareesv1alpha1.FabricIdentityApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricIdentityRegister"): @@ -183,8 +192,18 @@ func ForKind(kind schema.GroupVersionKind) interface{} { return &hlfkungfusoftwareesv1alpha1.FabricMainChannelStatusApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfig"): return &hlfkungfusoftwareesv1alpha1.FabricNetworkConfigApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfigCA"): + return &hlfkungfusoftwareesv1alpha1.FabricNetworkConfigCAApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfigExternalOrderer"): + return &hlfkungfusoftwareesv1alpha1.FabricNetworkConfigExternalOrdererApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfigExternalPeer"): + return &hlfkungfusoftwareesv1alpha1.FabricNetworkConfigExternalPeerApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfigIdentity"): return &hlfkungfusoftwareesv1alpha1.FabricNetworkConfigIdentityApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfigOrganization"): + return &hlfkungfusoftwareesv1alpha1.FabricNetworkConfigOrganizationApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfigOrgPeer"): + return &hlfkungfusoftwareesv1alpha1.FabricNetworkConfigOrgPeerApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfigSpec"): return &hlfkungfusoftwareesv1alpha1.FabricNetworkConfigSpecApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricNetworkConfigStatus"): @@ -253,8 +272,10 @@ func ForKind(kind schema.GroupVersionKind) interface{} { return &hlfkungfusoftwareesv1alpha1.FabricPeerStatusApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("FabricPeerStorage"): return &hlfkungfusoftwareesv1alpha1.FabricPeerStorageApplyConfiguration{} - case v1alpha1.SchemeGroupVersion.WithKind("FabricTLSCACrypto"): - return &hlfkungfusoftwareesv1alpha1.FabricTLSCACryptoApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricTraefik"): + return &hlfkungfusoftwareesv1alpha1.FabricTraefikApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("FabricTraefikMiddleware"): + return &hlfkungfusoftwareesv1alpha1.FabricTraefikMiddlewareApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("GRPCProxy"): return &hlfkungfusoftwareesv1alpha1.GRPCProxyApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("HLFIdentity"): @@ -285,6 +306,10 @@ func ForKind(kind schema.GroupVersionKind) interface{} { return &hlfkungfusoftwareesv1alpha1.PeerServiceApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("Secret"): return &hlfkungfusoftwareesv1alpha1.SecretApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("SecretRef"): + return &hlfkungfusoftwareesv1alpha1.SecretRefApplyConfiguration{} + case v1alpha1.SchemeGroupVersion.WithKind("SecretRefNSKey"): + return &hlfkungfusoftwareesv1alpha1.SecretRefNSKeyApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("ServiceMonitor"): return &hlfkungfusoftwareesv1alpha1.ServiceMonitorApplyConfiguration{} case v1alpha1.SchemeGroupVersion.WithKind("Storage"): diff --git a/pkg/client/clientset/versioned/clientset.go b/pkg/client/clientset/versioned/clientset.go index b1a3839e..4a16a1f9 100644 --- a/pkg/client/clientset/versioned/clientset.go +++ b/pkg/client/clientset/versioned/clientset.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package versioned diff --git a/pkg/client/clientset/versioned/fake/clientset_generated.go b/pkg/client/clientset/versioned/fake/clientset_generated.go index 671453d1..1edb713c 100644 --- a/pkg/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/client/clientset/versioned/fake/clientset_generated.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/fake/doc.go b/pkg/client/clientset/versioned/fake/doc.go index 0b557c37..6c4ef6bf 100644 --- a/pkg/client/clientset/versioned/fake/doc.go +++ b/pkg/client/clientset/versioned/fake/doc.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated fake clientset. package fake diff --git a/pkg/client/clientset/versioned/fake/register.go b/pkg/client/clientset/versioned/fake/register.go index 4c1d3af1..98ad95ec 100644 --- a/pkg/client/clientset/versioned/fake/register.go +++ b/pkg/client/clientset/versioned/fake/register.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake @@ -25,14 +26,14 @@ var localSchemeBuilder = runtime.SchemeBuilder{ // AddToScheme adds all types of this clientset into the given scheme. This allows composition // of clientsets, like in: // -// import ( -// "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kubernetes/scheme" -// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" -// ) +// import ( +// "k8s.io/client-go/kubernetes" +// clientsetscheme "k8s.io/client-go/kubernetes/scheme" +// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" +// ) // -// kclientset, _ := kubernetes.NewForConfig(c) -// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) +// kclientset, _ := kubernetes.NewForConfig(c) +// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) // // After this, RawExtensions in Kubernetes types will serialize kube-aggregator types // correctly. diff --git a/pkg/client/clientset/versioned/scheme/doc.go b/pkg/client/clientset/versioned/scheme/doc.go index 08313f93..a9c4f32c 100644 --- a/pkg/client/clientset/versioned/scheme/doc.go +++ b/pkg/client/clientset/versioned/scheme/doc.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. // This package contains the scheme of the automatically generated clientset. package scheme diff --git a/pkg/client/clientset/versioned/scheme/register.go b/pkg/client/clientset/versioned/scheme/register.go index 37e028ec..559213ec 100644 --- a/pkg/client/clientset/versioned/scheme/register.go +++ b/pkg/client/clientset/versioned/scheme/register.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package scheme @@ -25,14 +26,14 @@ var localSchemeBuilder = runtime.SchemeBuilder{ // AddToScheme adds all types of this clientset into the given scheme. This allows composition // of clientsets, like in: // -// import ( -// "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kubernetes/scheme" -// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" -// ) +// import ( +// "k8s.io/client-go/kubernetes" +// clientsetscheme "k8s.io/client-go/kubernetes/scheme" +// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" +// ) // -// kclientset, _ := kubernetes.NewForConfig(c) -// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) +// kclientset, _ := kubernetes.NewForConfig(c) +// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme) // // After this, RawExtensions in Kubernetes types will serialize kube-aggregator types // correctly. diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/doc.go index 4615b9f8..3b006977 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/doc.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/doc.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricca.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricca.go index bfb55c8b..daeb86c9 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricca.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricca.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go index 3d05236c..15f2245a 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go new file mode 100644 index 00000000..6846b46c --- /dev/null +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go @@ -0,0 +1,245 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by client-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + json "encoding/json" + "fmt" + "time" + + v1alpha1 "github.com/kfsoftware/hlf-operator/api/hlf.kungfusoftware.es/v1alpha1" + hlfkungfusoftwareesv1alpha1 "github.com/kfsoftware/hlf-operator/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1" + scheme "github.com/kfsoftware/hlf-operator/pkg/client/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// FabricChaincodeTemplatesGetter has a method to return a FabricChaincodeTemplateInterface. +// A group's client should implement this interface. +type FabricChaincodeTemplatesGetter interface { + FabricChaincodeTemplates(namespace string) FabricChaincodeTemplateInterface +} + +// FabricChaincodeTemplateInterface has methods to work with FabricChaincodeTemplate resources. +type FabricChaincodeTemplateInterface interface { + Create(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.CreateOptions) (*v1alpha1.FabricChaincodeTemplate, error) + Update(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.UpdateOptions) (*v1alpha1.FabricChaincodeTemplate, error) + UpdateStatus(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.UpdateOptions) (*v1alpha1.FabricChaincodeTemplate, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha1.FabricChaincodeTemplate, error) + List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.FabricChaincodeTemplateList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FabricChaincodeTemplate, err error) + Apply(ctx context.Context, fabricChaincodeTemplate *hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) + ApplyStatus(ctx context.Context, fabricChaincodeTemplate *hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) + FabricChaincodeTemplateExpansion +} + +// fabricChaincodeTemplates implements FabricChaincodeTemplateInterface +type fabricChaincodeTemplates struct { + client rest.Interface + ns string +} + +// newFabricChaincodeTemplates returns a FabricChaincodeTemplates +func newFabricChaincodeTemplates(c *HlfV1alpha1Client, namespace string) *fabricChaincodeTemplates { + return &fabricChaincodeTemplates{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the fabricChaincodeTemplate, and returns the corresponding fabricChaincodeTemplate object, and an error if there is any. +func (c *fabricChaincodeTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + result = &v1alpha1.FabricChaincodeTemplate{} + err = c.client.Get(). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of FabricChaincodeTemplates that match those selectors. +func (c *fabricChaincodeTemplates) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FabricChaincodeTemplateList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1alpha1.FabricChaincodeTemplateList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested fabricChaincodeTemplates. +func (c *fabricChaincodeTemplates) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a fabricChaincodeTemplate and creates it. Returns the server's representation of the fabricChaincodeTemplate, and an error, if there is any. +func (c *fabricChaincodeTemplates) Create(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.CreateOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + result = &v1alpha1.FabricChaincodeTemplate{} + err = c.client.Post(). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(fabricChaincodeTemplate). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a fabricChaincodeTemplate and updates it. Returns the server's representation of the fabricChaincodeTemplate, and an error, if there is any. +func (c *fabricChaincodeTemplates) Update(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.UpdateOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + result = &v1alpha1.FabricChaincodeTemplate{} + err = c.client.Put(). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + Name(fabricChaincodeTemplate.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(fabricChaincodeTemplate). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *fabricChaincodeTemplates) UpdateStatus(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.UpdateOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + result = &v1alpha1.FabricChaincodeTemplate{} + err = c.client.Put(). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + Name(fabricChaincodeTemplate.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(fabricChaincodeTemplate). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the fabricChaincodeTemplate and deletes it. Returns an error if one occurs. +func (c *fabricChaincodeTemplates) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *fabricChaincodeTemplates) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched fabricChaincodeTemplate. +func (c *fabricChaincodeTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FabricChaincodeTemplate, err error) { + result = &v1alpha1.FabricChaincodeTemplate{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} + +// Apply takes the given apply declarative configuration, applies it and returns the applied fabricChaincodeTemplate. +func (c *fabricChaincodeTemplates) Apply(ctx context.Context, fabricChaincodeTemplate *hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + if fabricChaincodeTemplate == nil { + return nil, fmt.Errorf("fabricChaincodeTemplate provided to Apply must not be nil") + } + patchOpts := opts.ToPatchOptions() + data, err := json.Marshal(fabricChaincodeTemplate) + if err != nil { + return nil, err + } + name := fabricChaincodeTemplate.Name + if name == nil { + return nil, fmt.Errorf("fabricChaincodeTemplate.Name must be provided to Apply") + } + result = &v1alpha1.FabricChaincodeTemplate{} + err = c.client.Patch(types.ApplyPatchType). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + Name(*name). + VersionedParams(&patchOpts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} + +// ApplyStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). +func (c *fabricChaincodeTemplates) ApplyStatus(ctx context.Context, fabricChaincodeTemplate *hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + if fabricChaincodeTemplate == nil { + return nil, fmt.Errorf("fabricChaincodeTemplate provided to Apply must not be nil") + } + patchOpts := opts.ToPatchOptions() + data, err := json.Marshal(fabricChaincodeTemplate) + if err != nil { + return nil, err + } + + name := fabricChaincodeTemplate.Name + if name == nil { + return nil, fmt.Errorf("fabricChaincodeTemplate.Name must be provided to Apply") + } + + result = &v1alpha1.FabricChaincodeTemplate{} + err = c.client.Patch(types.ApplyPatchType). + Namespace(c.ns). + Resource("fabricchaincodetemplates"). + Name(*name). + SubResource("status"). + VersionedParams(&patchOpts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go index 2a6be011..f5f5a718 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go index 5ac183df..1faecdb9 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go index cb8b4549..0dbad619 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go index 501d961f..435ae074 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go index 8c7db391..6f085fcf 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go index 9638137d..0cb7c8fa 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go index 4cdd37b3..7b5dd74b 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go index 1e6ca847..1afa1032 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go index 7fa8cad8..9ace2b4b 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go index 04d95a1b..5bfa9a01 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go index 5ad01025..f1ddcbb5 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/doc.go index 60760a09..cf320aac 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/doc.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/doc.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricca.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricca.go index d025b028..88c932e0 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricca.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricca.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricchaincode.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricchaincode.go index 05039dd4..0bda98e7 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricchaincode.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricchaincode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricchaincodetemplate.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricchaincodetemplate.go new file mode 100644 index 00000000..589e6fbe --- /dev/null +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricchaincodetemplate.go @@ -0,0 +1,178 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + json "encoding/json" + "fmt" + + v1alpha1 "github.com/kfsoftware/hlf-operator/api/hlf.kungfusoftware.es/v1alpha1" + hlfkungfusoftwareesv1alpha1 "github.com/kfsoftware/hlf-operator/pkg/client/applyconfiguration/hlf.kungfusoftware.es/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + labels "k8s.io/apimachinery/pkg/labels" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + testing "k8s.io/client-go/testing" +) + +// FakeFabricChaincodeTemplates implements FabricChaincodeTemplateInterface +type FakeFabricChaincodeTemplates struct { + Fake *FakeHlfV1alpha1 + ns string +} + +var fabricchaincodetemplatesResource = v1alpha1.SchemeGroupVersion.WithResource("fabricchaincodetemplates") + +var fabricchaincodetemplatesKind = v1alpha1.SchemeGroupVersion.WithKind("FabricChaincodeTemplate") + +// Get takes name of the fabricChaincodeTemplate, and returns the corresponding fabricChaincodeTemplate object, and an error if there is any. +func (c *FakeFabricChaincodeTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + obj, err := c.Fake. + Invokes(testing.NewGetAction(fabricchaincodetemplatesResource, c.ns, name), &v1alpha1.FabricChaincodeTemplate{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.FabricChaincodeTemplate), err +} + +// List takes label and field selectors, and returns the list of FabricChaincodeTemplates that match those selectors. +func (c *FakeFabricChaincodeTemplates) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FabricChaincodeTemplateList, err error) { + obj, err := c.Fake. + Invokes(testing.NewListAction(fabricchaincodetemplatesResource, fabricchaincodetemplatesKind, c.ns, opts), &v1alpha1.FabricChaincodeTemplateList{}) + + if obj == nil { + return nil, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &v1alpha1.FabricChaincodeTemplateList{ListMeta: obj.(*v1alpha1.FabricChaincodeTemplateList).ListMeta} + for _, item := range obj.(*v1alpha1.FabricChaincodeTemplateList).Items { + if label.Matches(labels.Set(item.Labels)) { + list.Items = append(list.Items, item) + } + } + return list, err +} + +// Watch returns a watch.Interface that watches the requested fabricChaincodeTemplates. +func (c *FakeFabricChaincodeTemplates) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + return c.Fake. + InvokesWatch(testing.NewWatchAction(fabricchaincodetemplatesResource, c.ns, opts)) + +} + +// Create takes the representation of a fabricChaincodeTemplate and creates it. Returns the server's representation of the fabricChaincodeTemplate, and an error, if there is any. +func (c *FakeFabricChaincodeTemplates) Create(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.CreateOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + obj, err := c.Fake. + Invokes(testing.NewCreateAction(fabricchaincodetemplatesResource, c.ns, fabricChaincodeTemplate), &v1alpha1.FabricChaincodeTemplate{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.FabricChaincodeTemplate), err +} + +// Update takes the representation of a fabricChaincodeTemplate and updates it. Returns the server's representation of the fabricChaincodeTemplate, and an error, if there is any. +func (c *FakeFabricChaincodeTemplates) Update(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.UpdateOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateAction(fabricchaincodetemplatesResource, c.ns, fabricChaincodeTemplate), &v1alpha1.FabricChaincodeTemplate{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.FabricChaincodeTemplate), err +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *FakeFabricChaincodeTemplates) UpdateStatus(ctx context.Context, fabricChaincodeTemplate *v1alpha1.FabricChaincodeTemplate, opts v1.UpdateOptions) (*v1alpha1.FabricChaincodeTemplate, error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateSubresourceAction(fabricchaincodetemplatesResource, "status", c.ns, fabricChaincodeTemplate), &v1alpha1.FabricChaincodeTemplate{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.FabricChaincodeTemplate), err +} + +// Delete takes name of the fabricChaincodeTemplate and deletes it. Returns an error if one occurs. +func (c *FakeFabricChaincodeTemplates) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + _, err := c.Fake. + Invokes(testing.NewDeleteActionWithOptions(fabricchaincodetemplatesResource, c.ns, name, opts), &v1alpha1.FabricChaincodeTemplate{}) + + return err +} + +// DeleteCollection deletes a collection of objects. +func (c *FakeFabricChaincodeTemplates) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + action := testing.NewDeleteCollectionAction(fabricchaincodetemplatesResource, c.ns, listOpts) + + _, err := c.Fake.Invokes(action, &v1alpha1.FabricChaincodeTemplateList{}) + return err +} + +// Patch applies the patch and returns the patched fabricChaincodeTemplate. +func (c *FakeFabricChaincodeTemplates) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FabricChaincodeTemplate, err error) { + obj, err := c.Fake. + Invokes(testing.NewPatchSubresourceAction(fabricchaincodetemplatesResource, c.ns, name, pt, data, subresources...), &v1alpha1.FabricChaincodeTemplate{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.FabricChaincodeTemplate), err +} + +// Apply takes the given apply declarative configuration, applies it and returns the applied fabricChaincodeTemplate. +func (c *FakeFabricChaincodeTemplates) Apply(ctx context.Context, fabricChaincodeTemplate *hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + if fabricChaincodeTemplate == nil { + return nil, fmt.Errorf("fabricChaincodeTemplate provided to Apply must not be nil") + } + data, err := json.Marshal(fabricChaincodeTemplate) + if err != nil { + return nil, err + } + name := fabricChaincodeTemplate.Name + if name == nil { + return nil, fmt.Errorf("fabricChaincodeTemplate.Name must be provided to Apply") + } + obj, err := c.Fake. + Invokes(testing.NewPatchSubresourceAction(fabricchaincodetemplatesResource, c.ns, *name, types.ApplyPatchType, data), &v1alpha1.FabricChaincodeTemplate{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.FabricChaincodeTemplate), err +} + +// ApplyStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus(). +func (c *FakeFabricChaincodeTemplates) ApplyStatus(ctx context.Context, fabricChaincodeTemplate *hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplateApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.FabricChaincodeTemplate, err error) { + if fabricChaincodeTemplate == nil { + return nil, fmt.Errorf("fabricChaincodeTemplate provided to Apply must not be nil") + } + data, err := json.Marshal(fabricChaincodeTemplate) + if err != nil { + return nil, err + } + name := fabricChaincodeTemplate.Name + if name == nil { + return nil, fmt.Errorf("fabricChaincodeTemplate.Name must be provided to Apply") + } + obj, err := c.Fake. + Invokes(testing.NewPatchSubresourceAction(fabricchaincodetemplatesResource, c.ns, *name, types.ApplyPatchType, data, "status"), &v1alpha1.FabricChaincodeTemplate{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.FabricChaincodeTemplate), err +} diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricexplorer.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricexplorer.go index e54a77b5..1fd7f5b0 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricexplorer.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricexplorer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricfollowerchannel.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricfollowerchannel.go index 55f8aab8..4b5bfb21 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricfollowerchannel.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricfollowerchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricidentity.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricidentity.go index 7fdfb4f0..b6869c8b 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricidentity.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricmainchannel.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricmainchannel.go index b47a2802..7d5d6be5 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricmainchannel.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricmainchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricnetworkconfig.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricnetworkconfig.go index a0cacb29..01cab027 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricnetworkconfig.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricnetworkconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperationsconsole.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperationsconsole.go index 947b3be2..e086a1cc 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperationsconsole.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperationsconsole.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperatorapi.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperatorapi.go index 815a8ca1..efeb4c93 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperatorapi.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperatorapi.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperatorui.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperatorui.go index b6fa7196..3f0c4dd7 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperatorui.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricoperatorui.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricorderernode.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricorderernode.go index f534424f..db06dd2b 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricorderernode.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricorderernode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricorderingservice.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricorderingservice.go index e5e90309..a3cf11aa 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricorderingservice.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricorderingservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricpeer.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricpeer.go index 5ad79011..7697cc3b 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricpeer.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_fabricpeer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_hlf.kungfusoftware.es_client.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_hlf.kungfusoftware.es_client.go index decb09d5..d3964f27 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_hlf.kungfusoftware.es_client.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/fake/fake_hlf.kungfusoftware.es_client.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package fake @@ -24,6 +25,10 @@ func (c *FakeHlfV1alpha1) FabricChaincodes(namespace string) v1alpha1.FabricChai return &FakeFabricChaincodes{c, namespace} } +func (c *FakeHlfV1alpha1) FabricChaincodeTemplates(namespace string) v1alpha1.FabricChaincodeTemplateInterface { + return &FakeFabricChaincodeTemplates{c, namespace} +} + func (c *FakeHlfV1alpha1) FabricExplorers(namespace string) v1alpha1.FabricExplorerInterface { return &FakeFabricExplorers{c, namespace} } diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/generated_expansion.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/generated_expansion.go index 663e937f..cdcd3d86 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/generated_expansion.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 @@ -10,6 +11,8 @@ type FabricCAExpansion interface{} type FabricChaincodeExpansion interface{} +type FabricChaincodeTemplateExpansion interface{} + type FabricExplorerExpansion interface{} type FabricFollowerChannelExpansion interface{} diff --git a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/hlf.kungfusoftware.es_client.go b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/hlf.kungfusoftware.es_client.go index 7fea47fa..9e8e07a8 100644 --- a/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/hlf.kungfusoftware.es_client.go +++ b/pkg/client/clientset/versioned/typed/hlf.kungfusoftware.es/v1alpha1/hlf.kungfusoftware.es_client.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by client-gen. DO NOT EDIT. package v1alpha1 @@ -18,6 +19,7 @@ type HlfV1alpha1Interface interface { RESTClient() rest.Interface FabricCAsGetter FabricChaincodesGetter + FabricChaincodeTemplatesGetter FabricExplorersGetter FabricFollowerChannelsGetter FabricIdentitiesGetter @@ -44,6 +46,10 @@ func (c *HlfV1alpha1Client) FabricChaincodes(namespace string) FabricChaincodeIn return newFabricChaincodes(c, namespace) } +func (c *HlfV1alpha1Client) FabricChaincodeTemplates(namespace string) FabricChaincodeTemplateInterface { + return newFabricChaincodeTemplates(c, namespace) +} + func (c *HlfV1alpha1Client) FabricExplorers(namespace string) FabricExplorerInterface { return newFabricExplorers(c, namespace) } diff --git a/pkg/client/informers/externalversions/factory.go b/pkg/client/informers/externalversions/factory.go index ab1e01c9..1023f865 100644 --- a/pkg/client/informers/externalversions/factory.go +++ b/pkg/client/informers/externalversions/factory.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package externalversions @@ -182,25 +183,25 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal // // It is typically used like this: // -// ctx, cancel := context.Background() -// defer cancel() -// factory := NewSharedInformerFactory(client, resyncPeriod) -// defer factory.WaitForStop() // Returns immediately if nothing was started. -// genericInformer := factory.ForResource(resource) -// typedInformer := factory.SomeAPIGroup().V1().SomeType() -// factory.Start(ctx.Done()) // Start processing these informers. -// synced := factory.WaitForCacheSync(ctx.Done()) -// for v, ok := range synced { -// if !ok { -// fmt.Fprintf(os.Stderr, "caches failed to sync: %v", v) -// return -// } -// } +// ctx, cancel := context.Background() +// defer cancel() +// factory := NewSharedInformerFactory(client, resyncPeriod) +// defer factory.WaitForStop() // Returns immediately if nothing was started. +// genericInformer := factory.ForResource(resource) +// typedInformer := factory.SomeAPIGroup().V1().SomeType() +// factory.Start(ctx.Done()) // Start processing these informers. +// synced := factory.WaitForCacheSync(ctx.Done()) +// for v, ok := range synced { +// if !ok { +// fmt.Fprintf(os.Stderr, "caches failed to sync: %v", v) +// return +// } +// } // -// // Creating informers can also be created after Start, but then -// // Start must be called again: -// anotherGenericInformer := factory.ForResource(resource) -// factory.Start(ctx.Done()) +// // Creating informers can also be created after Start, but then +// // Start must be called again: +// anotherGenericInformer := factory.ForResource(resource) +// factory.Start(ctx.Done()) type SharedInformerFactory interface { internalinterfaces.SharedInformerFactory diff --git a/pkg/client/informers/externalversions/generic.go b/pkg/client/informers/externalversions/generic.go index c53d4b5d..14cfbf52 100644 --- a/pkg/client/informers/externalversions/generic.go +++ b/pkg/client/informers/externalversions/generic.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package externalversions @@ -45,6 +46,8 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Hlf().V1alpha1().FabricCAs().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("fabricchaincodes"): return &genericInformer{resource: resource.GroupResource(), informer: f.Hlf().V1alpha1().FabricChaincodes().Informer()}, nil + case v1alpha1.SchemeGroupVersion.WithResource("fabricchaincodetemplates"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Hlf().V1alpha1().FabricChaincodeTemplates().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("fabricexplorers"): return &genericInformer{resource: resource.GroupResource(), informer: f.Hlf().V1alpha1().FabricExplorers().Informer()}, nil case v1alpha1.SchemeGroupVersion.WithResource("fabricfollowerchannels"): diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/interface.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/interface.go index 91ad453c..610183c3 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/interface.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/interface.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package hlf diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricca.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricca.go index b9f7c97c..7fd7a75e 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricca.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricca.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go index 8699515a..297a0d67 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go new file mode 100644 index 00000000..cc80315b --- /dev/null +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go @@ -0,0 +1,79 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "context" + time "time" + + hlfkungfusoftwareesv1alpha1 "github.com/kfsoftware/hlf-operator/api/hlf.kungfusoftware.es/v1alpha1" + versioned "github.com/kfsoftware/hlf-operator/pkg/client/clientset/versioned" + internalinterfaces "github.com/kfsoftware/hlf-operator/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/kfsoftware/hlf-operator/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// FabricChaincodeTemplateInformer provides access to a shared informer and lister for +// FabricChaincodeTemplates. +type FabricChaincodeTemplateInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.FabricChaincodeTemplateLister +} + +type fabricChaincodeTemplateInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewFabricChaincodeTemplateInformer constructs a new informer for FabricChaincodeTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFabricChaincodeTemplateInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredFabricChaincodeTemplateInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredFabricChaincodeTemplateInformer constructs a new informer for FabricChaincodeTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredFabricChaincodeTemplateInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.HlfV1alpha1().FabricChaincodeTemplates(namespace).List(context.TODO(), options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.HlfV1alpha1().FabricChaincodeTemplates(namespace).Watch(context.TODO(), options) + }, + }, + &hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplate{}, + resyncPeriod, + indexers, + ) +} + +func (f *fabricChaincodeTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredFabricChaincodeTemplateInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *fabricChaincodeTemplateInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&hlfkungfusoftwareesv1alpha1.FabricChaincodeTemplate{}, f.defaultInformer) +} + +func (f *fabricChaincodeTemplateInformer) Lister() v1alpha1.FabricChaincodeTemplateLister { + return v1alpha1.NewFabricChaincodeTemplateLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go index 537ee397..039d84ba 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go index 597a13f0..6f2d9602 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go index 30f9a617..cdfbce0a 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go index 7e8c279b..237e7f28 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go index a58f281e..b51cc116 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go index 652f01bc..25a522b9 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go index 731b6aae..1ad820fe 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go index a8dc606a..ad67fe6e 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go index e13ccc79..871ab34a 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go index 09681635..3c58d8dc 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go index 08c5c5bf..12cb9bdc 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/interface.go b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/interface.go index 84cb3c08..562bb40d 100644 --- a/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/interface.go +++ b/pkg/client/informers/externalversions/hlf.kungfusoftware.es/v1alpha1/interface.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package v1alpha1 @@ -16,6 +17,8 @@ type Interface interface { FabricCAs() FabricCAInformer // FabricChaincodes returns a FabricChaincodeInformer. FabricChaincodes() FabricChaincodeInformer + // FabricChaincodeTemplates returns a FabricChaincodeTemplateInformer. + FabricChaincodeTemplates() FabricChaincodeTemplateInformer // FabricExplorers returns a FabricExplorerInformer. FabricExplorers() FabricExplorerInformer // FabricFollowerChannels returns a FabricFollowerChannelInformer. @@ -61,6 +64,11 @@ func (v *version) FabricChaincodes() FabricChaincodeInformer { return &fabricChaincodeInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } +// FabricChaincodeTemplates returns a FabricChaincodeTemplateInformer. +func (v *version) FabricChaincodeTemplates() FabricChaincodeTemplateInformer { + return &fabricChaincodeTemplateInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + // FabricExplorers returns a FabricExplorerInformer. func (v *version) FabricExplorers() FabricExplorerInformer { return &fabricExplorerInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} diff --git a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go index de5cc79a..2cc7cc2d 100644 --- a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by informer-gen. DO NOT EDIT. package internalinterfaces diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/expansion_generated.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/expansion_generated.go index a3cc3b80..302d4e43 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/expansion_generated.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/expansion_generated.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 @@ -22,6 +23,14 @@ type FabricChaincodeListerExpansion interface{} // FabricChaincodeNamespaceLister. type FabricChaincodeNamespaceListerExpansion interface{} +// FabricChaincodeTemplateListerExpansion allows custom methods to be added to +// FabricChaincodeTemplateLister. +type FabricChaincodeTemplateListerExpansion interface{} + +// FabricChaincodeTemplateNamespaceListerExpansion allows custom methods to be added to +// FabricChaincodeTemplateNamespaceLister. +type FabricChaincodeTemplateNamespaceListerExpansion interface{} + // FabricExplorerListerExpansion allows custom methods to be added to // FabricExplorerLister. type FabricExplorerListerExpansion interface{} diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricca.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricca.go index 838993b7..45145dd6 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricca.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricca.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go index afb9acb4..a1d761d0 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricchaincode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go new file mode 100644 index 00000000..759930f2 --- /dev/null +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricchaincodetemplate.go @@ -0,0 +1,88 @@ +/* + * Copyright Kungfusoftware.es. All Rights Reserved. + * + * SPDX-License-Identifier: Apache-2.0 + */ +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/kfsoftware/hlf-operator/api/hlf.kungfusoftware.es/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// FabricChaincodeTemplateLister helps list FabricChaincodeTemplates. +// All objects returned here must be treated as read-only. +type FabricChaincodeTemplateLister interface { + // List lists all FabricChaincodeTemplates in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1alpha1.FabricChaincodeTemplate, err error) + // FabricChaincodeTemplates returns an object that can list and get FabricChaincodeTemplates. + FabricChaincodeTemplates(namespace string) FabricChaincodeTemplateNamespaceLister + FabricChaincodeTemplateListerExpansion +} + +// fabricChaincodeTemplateLister implements the FabricChaincodeTemplateLister interface. +type fabricChaincodeTemplateLister struct { + indexer cache.Indexer +} + +// NewFabricChaincodeTemplateLister returns a new FabricChaincodeTemplateLister. +func NewFabricChaincodeTemplateLister(indexer cache.Indexer) FabricChaincodeTemplateLister { + return &fabricChaincodeTemplateLister{indexer: indexer} +} + +// List lists all FabricChaincodeTemplates in the indexer. +func (s *fabricChaincodeTemplateLister) List(selector labels.Selector) (ret []*v1alpha1.FabricChaincodeTemplate, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.FabricChaincodeTemplate)) + }) + return ret, err +} + +// FabricChaincodeTemplates returns an object that can list and get FabricChaincodeTemplates. +func (s *fabricChaincodeTemplateLister) FabricChaincodeTemplates(namespace string) FabricChaincodeTemplateNamespaceLister { + return fabricChaincodeTemplateNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// FabricChaincodeTemplateNamespaceLister helps list and get FabricChaincodeTemplates. +// All objects returned here must be treated as read-only. +type FabricChaincodeTemplateNamespaceLister interface { + // List lists all FabricChaincodeTemplates in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1alpha1.FabricChaincodeTemplate, err error) + // Get retrieves the FabricChaincodeTemplate from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*v1alpha1.FabricChaincodeTemplate, error) + FabricChaincodeTemplateNamespaceListerExpansion +} + +// fabricChaincodeTemplateNamespaceLister implements the FabricChaincodeTemplateNamespaceLister +// interface. +type fabricChaincodeTemplateNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all FabricChaincodeTemplates in the indexer for a given namespace. +func (s fabricChaincodeTemplateNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.FabricChaincodeTemplate, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.FabricChaincodeTemplate)) + }) + return ret, err +} + +// Get retrieves the FabricChaincodeTemplate from the indexer for a given namespace and name. +func (s fabricChaincodeTemplateNamespaceLister) Get(name string) (*v1alpha1.FabricChaincodeTemplate, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("fabricchaincodetemplate"), name) + } + return obj.(*v1alpha1.FabricChaincodeTemplate), nil +} diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go index 0bf52c33..ef13e189 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricexplorer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go index 7b116dca..50005b1d 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricfollowerchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go index 949ec808..f85a0d45 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricidentity.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go index 73610ee8..22c2c7a7 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricmainchannel.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go index adb54291..1310ee18 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricnetworkconfig.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go index 25d15361..43b3d3b3 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperationsconsole.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go index 918529b4..19c0b1f1 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperatorapi.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go index 2956983d..0ba4162e 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricoperatorui.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go index e4f0edcc..0ee77189 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricorderernode.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go index bb3d3fdd..631acc3e 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricorderingservice.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1 diff --git a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go index 936036b4..1766a6c8 100644 --- a/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go +++ b/pkg/client/listers/hlf.kungfusoftware.es/v1alpha1/fabricpeer.go @@ -3,6 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ +// Code generated by lister-gen. DO NOT EDIT. package v1alpha1