v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=cloud.grafana.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cloud.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Stack

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

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) SetupWebhookWithManager

func (r *Stack) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Stack) ValidateCreate

func (r *Stack) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Stack) ValidateDelete

func (r *Stack) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Stack) ValidateUpdate

func (r *Stack) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type StackList

type StackList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Stack CRD objects
	Items []Stack `json:"items,omitempty"`
}

StackList is 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.

type StackSpec

type StackSpec struct {
	State *StackSpecResource `json:"state,omitempty" tf:"-"`

	Resource StackSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

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 StackSpecResource

type StackSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Name of the Alertmanager instance configured for this stack.
	// +optional
	AlertmanagerName *string `json:"alertmanagerName,omitempty" tf:"alertmanager_name"`
	// Status of the Alertmanager instance configured for this stack.
	// +optional
	AlertmanagerStatus *string `json:"alertmanagerStatus,omitempty" tf:"alertmanager_status"`
	// Base URL of the Alertmanager instance configured for this stack.
	// +optional
	AlertmanagerURL *string `json:"alertmanagerURL,omitempty" tf:"alertmanager_url"`
	// User ID of the Alertmanager instance configured for this stack.
	// +optional
	AlertmanagerUserID *int64 `json:"alertmanagerUserID,omitempty" tf:"alertmanager_user_id"`
	// Description of stack.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// Name of stack. Conventionally matches the url of the instance (e.g. “<stack_slug>.grafana.net”).
	Name *string `json:"name" tf:"name"`
	// Organization id to assign to this stack.
	// +optional
	OrgID *int64 `json:"orgID,omitempty" tf:"org_id"`
	// Organization name to assign to this stack.
	// +optional
	OrgName *string `json:"orgName,omitempty" tf:"org_name"`
	// Organization slug to assign to this stack.
	// +optional
	OrgSlug *string `json:"orgSlug,omitempty" tf:"org_slug"`
	// Prometheus name for this instance.
	// +optional
	PrometheusName *string `json:"prometheusName,omitempty" tf:"prometheus_name"`
	// Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
	// +optional
	PrometheusRemoteEndpoint *string `json:"prometheusRemoteEndpoint,omitempty" tf:"prometheus_remote_endpoint"`
	// Use this URL to send prometheus metrics to Grafana cloud
	// +optional
	PrometheusRemoteWriteEndpoint *string `json:"prometheusRemoteWriteEndpoint,omitempty" tf:"prometheus_remote_write_endpoint"`
	// Prometheus status for this instance.
	// +optional
	PrometheusStatus *string `json:"prometheusStatus,omitempty" tf:"prometheus_status"`
	// Prometheus url for this instance.
	// +optional
	PrometheusURL *string `json:"prometheusURL,omitempty" tf:"prometheus_url"`
	// Promehteus user ID. Used for e.g. remote_write.
	// +optional
	PrometheusUserID *int64 `json:"prometheusUserID,omitempty" tf:"prometheus_user_id"`
	// Region slug to assign to this stack.
	// Changing region will destroy the existing stack and create a new one in the desired region
	// +optional
	RegionSlug *string `json:"regionSlug,omitempty" tf:"region_slug"`
	//
	// 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".
	Slug *string `json:"slug" tf:"slug"`
	// Status of the stack.
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// Custom URL for the Grafana instance. Must have a CNAME setup to point to `.grafana.net` before creating the stack
	// +optional
	Url *string `json:"url,omitempty" tf:"url"`
}

func (*StackSpecResource) DeepCopy

func (in *StackSpecResource) DeepCopy() *StackSpecResource

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

func (*StackSpecResource) DeepCopyInto

func (in *StackSpecResource) DeepCopyInto(out *StackSpecResource)

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

type StackStatus

type StackStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

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