v1alpha1

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=cloud.grafana.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "cloud.grafana.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	APIKey_Kind             = "APIKey"
	APIKey_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: APIKey_Kind}.String()
	APIKey_KindAPIVersion   = APIKey_Kind + "." + CRDGroupVersion.String()
	APIKey_GroupVersionKind = CRDGroupVersion.WithKind(APIKey_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	Stack_Kind             = "Stack"
	Stack_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Stack_Kind}.String()
	Stack_KindAPIVersion   = Stack_Kind + "." + CRDGroupVersion.String()
	Stack_GroupVersionKind = CRDGroupVersion.WithKind(Stack_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type APIKey

type APIKey struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              APIKeySpec   `json:"spec"`
	Status            APIKeyStatus `json:"status,omitempty"`
}

APIKey is the Schema for the APIKeys API. <no value> +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*APIKey) DeepCopy

func (in *APIKey) DeepCopy() *APIKey

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

func (*APIKey) DeepCopyInto

func (in *APIKey) DeepCopyInto(out *APIKey)

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

func (*APIKey) DeepCopyObject

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

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

func (*APIKey) GetCondition

func (mg *APIKey) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this APIKey.

func (*APIKey) GetConnectionDetailsMapping

func (tr *APIKey) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this APIKey

func (*APIKey) GetDeletionPolicy

func (mg *APIKey) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this APIKey.

func (*APIKey) GetID

func (tr *APIKey) GetID() string

GetID returns ID of underlying Terraform resource of this APIKey

func (*APIKey) GetObservation

func (tr *APIKey) GetObservation() (map[string]any, error)

GetObservation of this APIKey

func (*APIKey) GetParameters

func (tr *APIKey) GetParameters() (map[string]any, error)

GetParameters of this APIKey

func (*APIKey) GetProviderConfigReference

func (mg *APIKey) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this APIKey.

func (*APIKey) GetProviderReference

func (mg *APIKey) GetProviderReference() *xpv1.Reference

GetProviderReference of this APIKey. Deprecated: Use GetProviderConfigReference.

func (*APIKey) GetPublishConnectionDetailsTo

func (mg *APIKey) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this APIKey.

func (*APIKey) GetTerraformResourceType

func (mg *APIKey) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this APIKey

func (*APIKey) GetTerraformSchemaVersion

func (tr *APIKey) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*APIKey) GetWriteConnectionSecretToReference

func (mg *APIKey) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this APIKey.

func (*APIKey) LateInitialize

func (tr *APIKey) LateInitialize(attrs []byte) (bool, error)

LateInitialize this APIKey using its observed tfState. returns True if there are any spec changes for the resource.

func (*APIKey) SetConditions

func (mg *APIKey) SetConditions(c ...xpv1.Condition)

SetConditions of this APIKey.

func (*APIKey) SetDeletionPolicy

func (mg *APIKey) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this APIKey.

func (*APIKey) SetObservation

func (tr *APIKey) SetObservation(obs map[string]any) error

SetObservation for this APIKey

func (*APIKey) SetParameters

func (tr *APIKey) SetParameters(params map[string]any) error

SetParameters for this APIKey

func (*APIKey) SetProviderConfigReference

func (mg *APIKey) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this APIKey.

func (*APIKey) SetProviderReference

func (mg *APIKey) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this APIKey. Deprecated: Use SetProviderConfigReference.

func (*APIKey) SetPublishConnectionDetailsTo

func (mg *APIKey) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this APIKey.

func (*APIKey) SetWriteConnectionSecretToReference

func (mg *APIKey) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this APIKey.

type APIKeyList

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

APIKeyList contains a list of APIKeys

func (*APIKeyList) DeepCopy

func (in *APIKeyList) DeepCopy() *APIKeyList

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

func (*APIKeyList) DeepCopyInto

func (in *APIKeyList) DeepCopyInto(out *APIKeyList)

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

func (*APIKeyList) DeepCopyObject

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

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

func (*APIKeyList) GetItems

func (l *APIKeyList) GetItems() []resource.Managed

GetItems of this APIKeyList.

type APIKeyObservation

type APIKeyObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*APIKeyObservation) DeepCopy

func (in *APIKeyObservation) DeepCopy() *APIKeyObservation

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

func (*APIKeyObservation) DeepCopyInto

func (in *APIKeyObservation) DeepCopyInto(out *APIKeyObservation)

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

type APIKeyParameters

type APIKeyParameters struct {

	// The slug of the organization to create the API key in. This is the same slug as the organization name in the URL.
	// +kubebuilder:validation:Required
	CloudOrgSlug *string `json:"cloudOrgSlug" tf:"cloud_org_slug,omitempty"`

	// Name of the API key.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// Role of the API key. Should be one of [Viewer Editor Admin MetricsPublisher PluginPublisher]. See https://grafana.com/docs/grafana-cloud/api/#create-api-key for details.
	// +kubebuilder:validation:Required
	Role *string `json:"role" tf:"role,omitempty"`
}

func (*APIKeyParameters) DeepCopy

func (in *APIKeyParameters) DeepCopy() *APIKeyParameters

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

func (*APIKeyParameters) DeepCopyInto

func (in *APIKeyParameters) DeepCopyInto(out *APIKeyParameters)

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

type APIKeySpec

type APIKeySpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     APIKeyParameters `json:"forProvider"`
}

APIKeySpec defines the desired state of APIKey

func (*APIKeySpec) DeepCopy

func (in *APIKeySpec) DeepCopy() *APIKeySpec

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

func (*APIKeySpec) DeepCopyInto

func (in *APIKeySpec) DeepCopyInto(out *APIKeySpec)

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

type APIKeyStatus

type APIKeyStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        APIKeyObservation `json:"atProvider,omitempty"`
}

APIKeyStatus defines the observed state of APIKey.

func (*APIKeyStatus) DeepCopy

func (in *APIKeyStatus) DeepCopy() *APIKeyStatus

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

func (*APIKeyStatus) DeepCopyInto

func (in *APIKeyStatus) DeepCopyInto(out *APIKeyStatus)

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

type Stack

type Stack struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              StackSpec   `json:"spec"`
	Status            StackStatus `json:"status,omitempty"`
}

Stack is the Schema for the Stacks API. <no value> +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,grafana}

func (*Stack) DeepCopy

func (in *Stack) DeepCopy() *Stack

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

func (*Stack) DeepCopyInto

func (in *Stack) DeepCopyInto(out *Stack)

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

func (*Stack) DeepCopyObject

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

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

func (*Stack) GetCondition

func (mg *Stack) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Stack.

func (*Stack) GetConnectionDetailsMapping

func (tr *Stack) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Stack

func (*Stack) GetDeletionPolicy

func (mg *Stack) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Stack.

func (*Stack) GetID

func (tr *Stack) GetID() string

GetID returns ID of underlying Terraform resource of this Stack

func (*Stack) GetObservation

func (tr *Stack) GetObservation() (map[string]any, error)

GetObservation of this Stack

func (*Stack) GetParameters

func (tr *Stack) GetParameters() (map[string]any, error)

GetParameters of this Stack

func (*Stack) GetProviderConfigReference

func (mg *Stack) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Stack.

func (*Stack) GetProviderReference

func (mg *Stack) GetProviderReference() *xpv1.Reference

GetProviderReference of this Stack. Deprecated: Use GetProviderConfigReference.

func (*Stack) GetPublishConnectionDetailsTo

func (mg *Stack) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Stack.

func (*Stack) GetTerraformResourceType

func (mg *Stack) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Stack

func (*Stack) GetTerraformSchemaVersion

func (tr *Stack) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Stack) GetWriteConnectionSecretToReference

func (mg *Stack) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Stack.

func (*Stack) LateInitialize

func (tr *Stack) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Stack using its observed tfState. returns True if there are any spec changes for the resource.

func (*Stack) SetConditions

func (mg *Stack) SetConditions(c ...xpv1.Condition)

SetConditions of this Stack.

func (*Stack) SetDeletionPolicy

func (mg *Stack) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Stack.

func (*Stack) SetObservation

func (tr *Stack) SetObservation(obs map[string]any) error

SetObservation for this Stack

func (*Stack) SetParameters

func (tr *Stack) SetParameters(params map[string]any) error

SetParameters for this Stack

func (*Stack) SetProviderConfigReference

func (mg *Stack) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Stack.

func (*Stack) SetProviderReference

func (mg *Stack) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Stack. Deprecated: Use SetProviderConfigReference.

func (*Stack) SetPublishConnectionDetailsTo

func (mg *Stack) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Stack.

func (*Stack) SetWriteConnectionSecretToReference

func (mg *Stack) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Stack.

type StackList

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

StackList contains a list of Stacks

func (*StackList) DeepCopy

func (in *StackList) DeepCopy() *StackList

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

func (*StackList) DeepCopyInto

func (in *StackList) DeepCopyInto(out *StackList)

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

func (*StackList) DeepCopyObject

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

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

func (*StackList) GetItems

func (l *StackList) GetItems() []resource.Managed

GetItems of this StackList.

type StackObservation

type StackObservation struct {

	// Name of the Alertmanager instance configured for this stack.
	AlertmanagerName *string `json:"alertmanagerName,omitempty" tf:"alertmanager_name,omitempty"`

	// Status of the Alertmanager instance configured for this stack.
	AlertmanagerStatus *string `json:"alertmanagerStatus,omitempty" tf:"alertmanager_status,omitempty"`

	// Base URL of the Alertmanager instance configured for this stack.
	AlertmanagerURL *string `json:"alertmanagerUrl,omitempty" tf:"alertmanager_url,omitempty"`

	// User ID of the Alertmanager instance configured for this stack.
	AlertmanagerUserID *float64 `json:"alertmanagerUserId,omitempty" tf:"alertmanager_user_id,omitempty"`

	GraphiteName *string `json:"graphiteName,omitempty" tf:"graphite_name,omitempty"`

	GraphiteStatus *string `json:"graphiteStatus,omitempty" tf:"graphite_status,omitempty"`

	GraphiteURL *string `json:"graphiteUrl,omitempty" tf:"graphite_url,omitempty"`

	GraphiteUserID *float64 `json:"graphiteUserId,omitempty" tf:"graphite_user_id,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	LogsName *string `json:"logsName,omitempty" tf:"logs_name,omitempty"`

	LogsStatus *string `json:"logsStatus,omitempty" tf:"logs_status,omitempty"`

	LogsURL *string `json:"logsUrl,omitempty" tf:"logs_url,omitempty"`

	LogsUserID *float64 `json:"logsUserId,omitempty" tf:"logs_user_id,omitempty"`

	// Organization id to assign to this stack.
	OrgID *float64 `json:"orgId,omitempty" tf:"org_id,omitempty"`

	// Organization name to assign to this stack.
	OrgName *string `json:"orgName,omitempty" tf:"org_name,omitempty"`

	// Organization slug to assign to this stack.
	OrgSlug *string `json:"orgSlug,omitempty" tf:"org_slug,omitempty"`

	// Prometheus name for this instance.
	PrometheusName *string `json:"prometheusName,omitempty" tf:"prometheus_name,omitempty"`

	// Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
	PrometheusRemoteEndpoint *string `json:"prometheusRemoteEndpoint,omitempty" tf:"prometheus_remote_endpoint,omitempty"`

	// Use this URL to send prometheus metrics to Grafana cloud
	PrometheusRemoteWriteEndpoint *string `json:"prometheusRemoteWriteEndpoint,omitempty" tf:"prometheus_remote_write_endpoint,omitempty"`

	// Prometheus status for this instance.
	PrometheusStatus *string `json:"prometheusStatus,omitempty" tf:"prometheus_status,omitempty"`

	// Prometheus url for this instance.
	PrometheusURL *string `json:"prometheusUrl,omitempty" tf:"prometheus_url,omitempty"`

	// Prometheus user ID. Used for e.g. remote_write.
	PrometheusUserID *float64 `json:"prometheusUserId,omitempty" tf:"prometheus_user_id,omitempty"`

	// Status of the stack.
	Status *string `json:"status,omitempty" tf:"status,omitempty"`

	TracesName *string `json:"tracesName,omitempty" tf:"traces_name,omitempty"`

	TracesStatus *string `json:"tracesStatus,omitempty" tf:"traces_status,omitempty"`

	TracesURL *string `json:"tracesUrl,omitempty" tf:"traces_url,omitempty"`

	TracesUserID *float64 `json:"tracesUserId,omitempty" tf:"traces_user_id,omitempty"`
}

func (*StackObservation) DeepCopy

func (in *StackObservation) DeepCopy() *StackObservation

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

func (*StackObservation) DeepCopyInto

func (in *StackObservation) DeepCopyInto(out *StackObservation)

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

type StackParameters

type StackParameters struct {

	// Description of stack.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Name of stack. Conventionally matches the url of the instance (e.g. “<stack_slug>.grafana.net”).
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// Region slug to assign to this stack. Changing region will destroy the existing stack and create a new one in the desired region. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/reference/cloud-api/#list-regions.
	// +kubebuilder:validation:Optional
	RegionSlug *string `json:"regionSlug,omitempty" tf:"region_slug,omitempty"`

	// Subdomain that the Grafana instance will be available at (i.e. setting slug to “<stack_slug>” will make the instance
	// available at “https://<stack_slug>.grafana.net".
	// +kubebuilder:validation:Required
	Slug *string `json:"slug" tf:"slug,omitempty"`

	// Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
	// +kubebuilder:validation:Optional
	URL *string `json:"url,omitempty" tf:"url,omitempty"`

	// Whether to wait for readiness of the stack after creating it. The check is a HEAD request to the stack URL (Grafana instance). Defaults to `true`.
	// +kubebuilder:validation:Optional
	WaitForReadiness *bool `json:"waitForReadiness,omitempty" tf:"wait_for_readiness,omitempty"`

	// How long to wait for readiness (if enabled). Defaults to `5m0s`.
	// +kubebuilder:validation:Optional
	WaitForReadinessTimeout *string `json:"waitForReadinessTimeout,omitempty" tf:"wait_for_readiness_timeout,omitempty"`
}

func (*StackParameters) DeepCopy

func (in *StackParameters) DeepCopy() *StackParameters

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

func (*StackParameters) DeepCopyInto

func (in *StackParameters) DeepCopyInto(out *StackParameters)

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

type StackSpec

type StackSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     StackParameters `json:"forProvider"`
}

StackSpec defines the desired state of Stack

func (*StackSpec) DeepCopy

func (in *StackSpec) DeepCopy() *StackSpec

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

func (*StackSpec) DeepCopyInto

func (in *StackSpec) DeepCopyInto(out *StackSpec)

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

type StackStatus

type StackStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        StackObservation `json:"atProvider,omitempty"`
}

StackStatus defines the observed state of Stack.

func (*StackStatus) DeepCopy

func (in *StackStatus) DeepCopy() *StackStatus

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

func (*StackStatus) DeepCopyInto

func (in *StackStatus) DeepCopyInto(out *StackStatus)

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