v1

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the operator v1 API group +kubebuilder:object:generate=true +groupName=operator.ibm.com

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.

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.

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "operator.ibm.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type IBMLicensingDefinition

type IBMLicensingDefinition struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   IBMLicensingDefinitionSpec   `json:"spec,omitempty"`
	Status IBMLicensingDefinitionStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object IBMLicensingDefinition is the schema for IBM License Service. +operator-sdk:csv:customresourcedefinitions:displayName="IBM Licensing Definition" +kubebuilder:resource:path=ibmlicensingdefinitions,scope=Namespaced +kubebuilder:subresource:status

func (*IBMLicensingDefinition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingDefinition.

func (*IBMLicensingDefinition) DeepCopyInto

func (in *IBMLicensingDefinition) DeepCopyInto(out *IBMLicensingDefinition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IBMLicensingDefinition) DeepCopyObject

func (in *IBMLicensingDefinition) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IBMLicensingDefinitionCondition

type IBMLicensingDefinitionCondition struct {
	Metadata IBMLicensingDefinitionConditionMetadata `json:"metadata,omitempty"`
}

func (*IBMLicensingDefinitionCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingDefinitionCondition.

func (*IBMLicensingDefinitionCondition) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IBMLicensingDefinitionConditionMetadata

type IBMLicensingDefinitionConditionMetadata struct {
	// List of annotations used for matching pod
	Annotations map[string]string `json:"annotations,omitempty"`
	// List of labels used for matching pod
	Labels map[string]string `json:"labels,omitempty"`
}

func (*IBMLicensingDefinitionConditionMetadata) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingDefinitionConditionMetadata.

func (*IBMLicensingDefinitionConditionMetadata) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IBMLicensingDefinitionList

type IBMLicensingDefinitionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []IBMLicensingDefinition `json:"items"`
}

IBMLicensingDefinitionList contains a list of IBMLicensingDefinition

func (*IBMLicensingDefinitionList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingDefinitionList.

func (*IBMLicensingDefinitionList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IBMLicensingDefinitionList) DeepCopyObject

func (in *IBMLicensingDefinitionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IBMLicensingDefinitionSpec

type IBMLicensingDefinitionSpec struct {
	// Action of Custom Resource
	// +kubebuilder:validation:Enum=modifyOriginal;cloneModify
	Action string `json:"action"`

	// Condition used to match pods
	Condition IBMLicensingDefinitionCondition `json:"condition"`

	// Scope of Custom Resource
	// +kubebuilder:validation:Enum=cluster
	Scope string `json:"scope"`

	// List of annotations that matched pod would be extended
	Set map[string]string `json:"set"`
}

IBMLicensingDefinitionSpec defines the desired state of IBMLicensingDefinition

func (*IBMLicensingDefinitionSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingDefinitionSpec.

func (*IBMLicensingDefinitionSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IBMLicensingDefinitionStatus

type IBMLicensingDefinitionStatus struct {
}

IBMLicensingDefinitionStatus defines the observed state of IBMLicensingDefinition

func (*IBMLicensingDefinitionStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingDefinitionStatus.

func (*IBMLicensingDefinitionStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IBMLicensingQuerySource added in v1.15.0

type IBMLicensingQuerySource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   IBMLicensingQuerySourceSpec   `json:"spec,omitempty"`
	Status IBMLicensingQuerySourceStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object IBMLicensingQuerySource is the schema for IBM License Service. +operator-sdk:csv:customresourcedefinitions:displayName="IBM Licensing Query Source" +kubebuilder:resource:path=ibmlicensingquerysources,scope=Namespaced +kubebuilder:subresource:status

func (*IBMLicensingQuerySource) DeepCopy added in v1.15.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingQuerySource.

func (*IBMLicensingQuerySource) DeepCopyInto added in v1.15.0

func (in *IBMLicensingQuerySource) DeepCopyInto(out *IBMLicensingQuerySource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IBMLicensingQuerySource) DeepCopyObject added in v1.15.0

func (in *IBMLicensingQuerySource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IBMLicensingQuerySourceList added in v1.15.0

type IBMLicensingQuerySourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []IBMLicensingQuerySource `json:"items"`
}

IBMLicensingQuerySourceList contains a list of IBMLicensingQuerySource

func (*IBMLicensingQuerySourceList) DeepCopy added in v1.15.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingQuerySourceList.

func (*IBMLicensingQuerySourceList) DeepCopyInto added in v1.15.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IBMLicensingQuerySourceList) DeepCopyObject added in v1.15.0

func (in *IBMLicensingQuerySourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type IBMLicensingQuerySourceSpec added in v1.15.0

type IBMLicensingQuerySourceSpec struct {
	// Policy on how should newly queried data be aggregated to previous data (defaults to MAX)
	// +kubebuilder:validation:Enum=MAX;ADD
	AggregationPolicy string `json:"aggregationPolicy,omitempty"`

	// What query should be send to prometheuses to get the licensing usage
	Query string `json:"query"`

	// Product and cloudpak annotations mapping the query to licensing usage
	Annotations map[string]string `json:"annotations"`
}

IBMLicensingQuerySourceSpec defines the desired state of IBMLicensingQuerySource

func (*IBMLicensingQuerySourceSpec) DeepCopy added in v1.15.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingQuerySourceSpec.

func (*IBMLicensingQuerySourceSpec) DeepCopyInto added in v1.15.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IBMLicensingQuerySourceStatus added in v1.15.0

type IBMLicensingQuerySourceStatus struct {
}

IBMLicensingQuerySourceStatus defines the observed state of IBMLicensingQuerySource

func (*IBMLicensingQuerySourceStatus) DeepCopy added in v1.15.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IBMLicensingQuerySourceStatus.

func (*IBMLicensingQuerySourceStatus) DeepCopyInto added in v1.15.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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