Documentation ¶
Overview ¶
Package v1alpha1 contains the v1alpha1 group meta resources of the nine provider. +kubebuilder:object:generate=false +groupName=meta.nine.ch +versionName=v1alpha1
Index ¶
Constants ¶
const ( // LocationNineCZ41 is the name for our CZ41 location LocationNineCZ41 LocationName = NinePrefix + "cz41" // LocationNineCZ42 is the name for our CZ42 location LocationNineCZ42 LocationName = NinePrefix + "cz42" // LocationNineES34 is the name for our ES34 location LocationNineES34 LocationName = NinePrefix + "es34" // NinePrefix contains a prefix which all nine owned // resources begin their name with NinePrefix = "nine-" // NineOwnedLabelKey specifies the key for the label which // identifies nine resources. NineOwnedLabelKey = "nine.ch/owned-by" // NineOwnedLabelValue specifies the value for the label which // identifies nine resources. NineOwnedLabelValue = "nine" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildResourceError ¶
type ChildResourceError struct { // Resource references the child resource that errored. Resource Reference `json:"resource"` // Type specifies the type of the resource. Type metav1.GroupVersionKind `json:"type"` // Message that describes why the resource failed. Message string `json:"message"` }
ChildResourceError is an error that occurred on a child resource of a managed resource.
type ChildResourceStatus ¶
type ChildResourceStatus struct { // ChildResourceErrors of a managed resource. // +optional ChildResourceErrors []ChildResourceError `json:"childResourceErrors,omitempty"` }
ChildResourceStatus reflects observed errors from child resources of a managed resource. +kubebuilder:object:generate=true
func (*ChildResourceStatus) DeepCopy ¶
func (in *ChildResourceStatus) DeepCopy() *ChildResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChildResourceStatus.
func (*ChildResourceStatus) DeepCopyInto ¶
func (in *ChildResourceStatus) DeepCopyInto(out *ChildResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Image ¶
type Image struct { // Registry specifies the registry from where the image should // be pulled Registry string `json:"registry,omitempty"` // Repository specifies the repository from where the image should // be pulled Repository string `json:"repository,omitempty"` // Tag specifies the image tag to use // +optional Tag string `json:"tag,omitempty"` // Digest specifies the image digest to use // +optional Digest string `json:"digest,omitempty"` // PullPolicy specifies the image pull policy to use // +optional // +kubebuilder:default:="Always" PullPolicy string `json:"pullPolicy,omitempty"` // PullSecret specifies a image pull secret name // +optional PullSecret string `json:"pullSecret,omitempty"` }
Image specifies general container image options which describe from where and in which version a container image should be used
type LocalReference ¶
type LocalReference struct { // Name of the target. Name string `json:"name"` }
LocalReference references another object in the same namespace.
func (LocalReference) InNamespace ¶
func (l LocalReference) InNamespace(ns nsGetter) Reference
InNamespace returns a Reference based on the LocalReference with the namespace set to the given ns.
func (LocalReference) NamespacedName ¶
func (l LocalReference) NamespacedName(ns nsGetter) types.NamespacedName
NamespacedName returns the namespaced name of this local refenece with the namespace set to the given ns.
type LocalReferenceSelector ¶
type LocalReferenceSelector struct { LocalReference `json:",inline"` // Key describes the key within the secret. Key string `json:"key"` }
type LocalTypedReference ¶
type LocalTypedReference struct { // Reference to the resource LocalReference `json:",inline"` // Type info about the resource. metav1.GroupKind `json:",inline"` }
type LocationName ¶
type LocationName string
LocationName specifies the physical location of resources. Not all locations implement the same functionality. +kubebuilder:validation:Enum:=nine-cz41;nine-cz42;nine-es34
type Reference ¶
type Reference struct { // Name of the target. Name string `json:"name"` // Namespace of the target. Namespace string `json:"namespace"` }
Reference references another object in a specific namespace.
func (Reference) NamespacedName ¶
func (r Reference) NamespacedName() types.NamespacedName
NamespacedName returns the namespaced name for this reference.
func (Reference) ObjectMeta ¶
func (r Reference) ObjectMeta() metav1.ObjectMeta
ObjectMeta returns an ObjectMeta of the referenced object. Does not populate anything else than Name and Namespace.
type ReferenceError ¶
type ReferenceErrors ¶
type ReferenceErrors []ReferenceError
type ReferenceStatus ¶
type ReferenceStatus struct {
ReferenceErrors ReferenceErrors `json:"referenceErrors,omitempty"`
}
+kubebuilder:object:generate=true
func (*ReferenceStatus) DeepCopy ¶
func (in *ReferenceStatus) DeepCopy() *ReferenceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferenceStatus.
func (*ReferenceStatus) DeepCopyInto ¶
func (in *ReferenceStatus) DeepCopyInto(out *ReferenceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScrapeConfig ¶
type ScrapeConfig struct { // Name uniquely identifies an ExporterScrapeConfig. Name string `json:"name"` // Enabled specifies if metrics of a corresponding // exporter should be scraped by certain Prometheus // instances // +optional // +kubebuilder:default:=true Enabled *bool `json:"enabled"` // AdditionalMetrics specifies which additional // metrics should be scraped from this exporter // +optional AdditionalMetrics []string `json:"additionalMetrics"` // AllMetrics specifies that all metrics of this // specific component should be scraped // +optional // +kubebuilder:default:=false AllMetrics bool `json:"allMetrics,omitempty"` // ScrapedBy defines which prometheus instances will // target this scrape config. ScrapedBy []LocalReference `json:"scrapedBy,omitempty"` }
ScrapeConfig configures a metrics scrape config. +kubebuilder:object:generate:=true
func (*ScrapeConfig) DeepCopy ¶
func (in *ScrapeConfig) DeepCopy() *ScrapeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScrapeConfig.
func (*ScrapeConfig) DeepCopyInto ¶
func (in *ScrapeConfig) DeepCopyInto(out *ScrapeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.