Documentation
¶
Index ¶
- func SelectNamespace(namespaces ...string) string
- type LabelSpec
- type ResourceRef
- type ResourceRefNamespaced
- func (rn *ResourceRefNamespaced) GetObject(parentNamespace string) *client.ObjectKey
- func (rn ResourceRefNamespaced) IsEmpty() bool
- func (rn ResourceRefNamespaced) Key() string
- func (rn *ResourceRefNamespaced) ReadPassword(ctx context.Context, kubeClient client.Client, parentNamespace string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectNamespace ¶
SelectNamespace returns first non-empty namespace from the list "", "", "first", "second" => "first"
Types ¶
type LabelSpec ¶
type LabelSpec struct {
// +kubebuilder:validation:MaxLength:=255
Key string `json:"key"`
Value string `json:"value"`
}
LabelSpec contains key-value pairs that tag and categorize the Cluster/DBUser
type ResourceRef ¶
type ResourceRef struct {
// Name is the name of the Kubernetes Resource
Name string `json:"name"`
}
ResourceRef is a reference to a Kubernetes Resource
type ResourceRefNamespaced ¶
type ResourceRefNamespaced struct {
// Name is the name of the Kubernetes Resource
Name string `json:"name"`
// Namespace is the namespace of the Kubernetes Resource
// +optional
Namespace string `json:"namespace"`
}
ResourceRefNamespaced is a reference to a Kubernetes Resource that allows to configure the namespace
func (*ResourceRefNamespaced) GetObject ¶
func (rn *ResourceRefNamespaced) GetObject(parentNamespace string) *client.ObjectKey
func (ResourceRefNamespaced) IsEmpty ¶
func (rn ResourceRefNamespaced) IsEmpty() bool
func (ResourceRefNamespaced) Key ¶
func (rn ResourceRefNamespaced) Key() string
func (*ResourceRefNamespaced) ReadPassword ¶
Click to show internal directories.
Click to hide internal directories.