Documentation
¶
Index ¶
Constants ¶
const ( // StatusSuccess is returned in Status.Status when controller successfully creates/deletes/updates CRD. StatusSuccess = "Success" // StatusFailure is returned in Status.Status when controller fails to create/delete/update CRD. StatusFailure = "Failure" )
Variables ¶
var ( // SchemeGroupVersion is the identifier for the API which includes // the name of the group and the version of the API SchemeGroupVersion = schema.GroupVersion{ Group: pantheontech.GroupName, Version: "v1", } // SchemeBuilder is the schema builder for the CRD API SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type CNFConfiguration ¶
type CNFConfiguration struct { // TypeMeta is the metadata for the resource, like kind and apiversion meta_v1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object meta_v1.ObjectMeta `json:"metadata,omitempty"` // Spec is the specification for the CNF configuration. Spec CNFConfigurationSpec `json:"spec"` // Status informs about the status of the resource. Status meta_v1.Status `json:"status,omitempty"` }
CNFConfiguration defines (arbitrary) configuration to be applied for Pantheon CNFs. +genclient +genclient:noStatus +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*CNFConfiguration) DeepCopy ¶
func (in *CNFConfiguration) DeepCopy() *CNFConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNFConfiguration.
func (*CNFConfiguration) DeepCopyInto ¶
func (in *CNFConfiguration) DeepCopyInto(out *CNFConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CNFConfiguration) DeepCopyObject ¶
func (in *CNFConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CNFConfigurationList ¶
type CNFConfigurationList struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ListMeta `json:"metadata"` Items []CNFConfiguration `json:"items"` }
CNFConfigurationList is a list of CNFConfiguration resources +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*CNFConfigurationList) DeepCopy ¶
func (in *CNFConfigurationList) DeepCopy() *CNFConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNFConfigurationList.
func (*CNFConfigurationList) DeepCopyInto ¶
func (in *CNFConfigurationList) DeepCopyInto(out *CNFConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CNFConfigurationList) DeepCopyObject ¶
func (in *CNFConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CNFConfigurationSpec ¶
type CNFConfigurationSpec struct { // Microservice label determines where the configuration item should be applied. // Use label as defined in the environment variable MICROSERVICE_LABEL of the destination CNF. // This microservice label will be used for all items in the list below which do not have microservice defined. Microservice string `json:"microservice"` // Items is a list of configuration items. ConfigItems []contiv_crd.ConfigurationItem `json:"configItems"` }
CNFConfigurationSpec is the spec for CNF configuration resource. It is largely based on CustomConfiguration resource from Contiv/VPP.
func (*CNFConfigurationSpec) DeepCopy ¶
func (in *CNFConfigurationSpec) DeepCopy() *CNFConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CNFConfigurationSpec.
func (*CNFConfigurationSpec) DeepCopyInto ¶
func (in *CNFConfigurationSpec) DeepCopyInto(out *CNFConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.