Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group.
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type MetricsProperties
- type PodMonitorProperties
- type ProjectOperator
- func (in *ProjectOperator) DeepCopy() *ProjectOperator
- func (in *ProjectOperator) DeepCopyInto(out *ProjectOperator)
- func (in *ProjectOperator) DeepCopyObject() runtime.Object
- func (c *ProjectOperator) GetDeploymentName() string
- func (c *ProjectOperator) GetDeploymentNamespace() string
- func (c *ProjectOperator) GetSpec() componentoperatorruntimetypes.Unstructurable
- func (c *ProjectOperator) GetStatus() *component.Status
- type ProjectOperatorList
- type ProjectOperatorSpec
- type ProjectOperatorStatus
- type PrometheusRuleProperties
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "operator.kyma-project.io", Version: "v1alpha1"} // 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 // Needed by kubernetes/code-generator. SchemeGroupVersion = GroupVersion )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Needed by kubernetes/code-generator.
Types ¶
type MetricsProperties ¶ added in v0.1.45
type MetricsProperties struct {
PodMonitor *PodMonitorProperties `json:"podMonitor,omitempty"`
PrometheusRule *PrometheusRuleProperties `json:"prometheusRule,omitempty"`
}
MetricsProperties defines the properties for the metrics server.
func (*MetricsProperties) DeepCopy ¶ added in v0.1.45
func (in *MetricsProperties) DeepCopy() *MetricsProperties
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsProperties.
func (*MetricsProperties) DeepCopyInto ¶ added in v0.1.45
func (in *MetricsProperties) DeepCopyInto(out *MetricsProperties)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodMonitorProperties ¶ added in v0.1.45
type PodMonitorProperties struct {
Enabled bool `json:"enabled,omitempty"`
}
PodMonitorProperties defines the properties for the pod monitor.
func (*PodMonitorProperties) DeepCopy ¶ added in v0.1.45
func (in *PodMonitorProperties) DeepCopy() *PodMonitorProperties
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodMonitorProperties.
func (*PodMonitorProperties) DeepCopyInto ¶ added in v0.1.45
func (in *PodMonitorProperties) DeepCopyInto(out *PodMonitorProperties)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectOperator ¶
type ProjectOperator struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProjectOperatorSpec `json:"spec,omitempty"`
// +kubebuilder:default={"observedGeneration":-1}
Status ProjectOperatorStatus `json:"status,omitempty"`
}
ProjectOperator is the Schema for the projectoperators API.
func (*ProjectOperator) DeepCopy ¶
func (in *ProjectOperator) DeepCopy() *ProjectOperator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectOperator.
func (*ProjectOperator) DeepCopyInto ¶
func (in *ProjectOperator) DeepCopyInto(out *ProjectOperator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectOperator) DeepCopyObject ¶
func (in *ProjectOperator) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProjectOperator) GetDeploymentName ¶
func (c *ProjectOperator) GetDeploymentName() string
func (*ProjectOperator) GetDeploymentNamespace ¶
func (c *ProjectOperator) GetDeploymentNamespace() string
func (*ProjectOperator) GetSpec ¶
func (c *ProjectOperator) GetSpec() componentoperatorruntimetypes.Unstructurable
func (*ProjectOperator) GetStatus ¶
func (c *ProjectOperator) GetStatus() *component.Status
type ProjectOperatorList ¶
type ProjectOperatorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ProjectOperator `json:"items"`
}
ProjectOperatorList contains a list of ProjectOperator.
func (*ProjectOperatorList) DeepCopy ¶
func (in *ProjectOperatorList) DeepCopy() *ProjectOperatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectOperatorList.
func (*ProjectOperatorList) DeepCopyInto ¶
func (in *ProjectOperatorList) DeepCopyInto(out *ProjectOperatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectOperatorList) DeepCopyObject ¶
func (in *ProjectOperatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProjectOperatorSpec ¶
type ProjectOperatorSpec struct {
component.Spec `json:",inline"`
// +kubebuilder:validation:Minimum=1
// +kubebuilder:default=1
ReplicaCount int `json:"replicaCount,omitempty"`
// +optional
Image component.ImageSpec `json:"image"`
component.KubernetesProperties `json:",inline"`
NamespacePrefix string `json:"namespacePrefix,omitempty"`
AdminClusterRole string `json:"adminClusterRole,omitempty"`
ViewerClusterRole string `json:"viewerClusterRole,omitempty"`
EnableClusterView bool `json:"enableClusterView,omitempty"`
Metrics *MetricsProperties `json:"metrics,omitempty"`
}
ProjectOperatorSpec defines the desired state of ProjectOperator.
func (*ProjectOperatorSpec) DeepCopy ¶
func (in *ProjectOperatorSpec) DeepCopy() *ProjectOperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectOperatorSpec.
func (*ProjectOperatorSpec) DeepCopyInto ¶
func (in *ProjectOperatorSpec) DeepCopyInto(out *ProjectOperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProjectOperatorSpec) ToUnstructured ¶
func (s *ProjectOperatorSpec) ToUnstructured() map[string]any
type ProjectOperatorStatus ¶
ProjectOperatorStatus defines the observed state of ProjectOperator.
func (*ProjectOperatorStatus) DeepCopy ¶
func (in *ProjectOperatorStatus) DeepCopy() *ProjectOperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectOperatorStatus.
func (*ProjectOperatorStatus) DeepCopyInto ¶
func (in *ProjectOperatorStatus) DeepCopyInto(out *ProjectOperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrometheusRuleProperties ¶ added in v0.1.45
type PrometheusRuleProperties struct {
Enabled bool `json:"enabled,omitempty"`
Rules []prometheusv1.Rule `json:"rules,omitempty"`
}
PrometheusRuleProperties defines the properties for the prometheus rule.
func (*PrometheusRuleProperties) DeepCopy ¶ added in v0.1.45
func (in *PrometheusRuleProperties) DeepCopy() *PrometheusRuleProperties
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRuleProperties.
func (*PrometheusRuleProperties) DeepCopyInto ¶ added in v0.1.45
func (in *PrometheusRuleProperties) DeepCopyInto(out *PrometheusRuleProperties)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.