v1beta1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the request.infra.doodle.com v1beta1 API group +kubebuilder:object:generate=true +groupName=growthbook.infra.doodle.com

Index

Constants

View Source
const (
	ReadyCondition     = "Ready"
	SynchronizedReason = "Synchronized"
	ProgressingReason  = "Progressing"
	FailedReason       = "Failed"
	Finalizer          = "finalizers.doodle.com"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "growthbook.infra.doodle.com", Version: "v1beta1"}

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

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Name    string        `json:"name,omitempty"`
	Enabled bool          `json:"enabled,omitempty"`
	Rules   []FeatureRule `json:"rules,omitempty"`
}

Environment defines a grothbook environment

func (*Environment) DeepCopy

func (in *Environment) DeepCopy() *Environment

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

func (*Environment) DeepCopyInto

func (in *Environment) DeepCopyInto(out *Environment)

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

type ExperimentRefVariation added in v0.4.1

type ExperimentRefVariation struct {
	VariationId string `json:"variationId,omitempty"`
	Value       string `json:"value,omitempty"`
}

func (*ExperimentRefVariation) DeepCopy added in v0.4.1

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

func (*ExperimentRefVariation) DeepCopyInto added in v0.4.1

func (in *ExperimentRefVariation) DeepCopyInto(out *ExperimentRefVariation)

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

type ExperimentValue added in v0.4.0

type ExperimentValue struct {
	Value  string  `json:"value,omitempty"`
	Weight int64   `json:"weight,omitempty"`
	Name   *string `json:"name,omitempty"`
}

func (*ExperimentValue) DeepCopy added in v0.4.0

func (in *ExperimentValue) DeepCopy() *ExperimentValue

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

func (*ExperimentValue) DeepCopyInto added in v0.4.0

func (in *ExperimentValue) DeepCopyInto(out *ExperimentValue)

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

type FeaturePrerequisite added in v0.4.0

type FeaturePrerequisite struct {
	ID        string `json:"id,omitempty"`
	Condition string `json:"condition,omitempty"`
}

func (*FeaturePrerequisite) DeepCopy added in v0.4.0

func (in *FeaturePrerequisite) DeepCopy() *FeaturePrerequisite

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

func (*FeaturePrerequisite) DeepCopyInto added in v0.4.0

func (in *FeaturePrerequisite) DeepCopyInto(out *FeaturePrerequisite)

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

type FeatureRule added in v0.4.0

type FeatureRule struct {
	Type                   FeatureRuleType          `json:"type,omitempty"`
	Description            string                   `json:"description,omitempty"`
	Condition              string                   `json:"condition,omitempty"`
	Enabled                bool                     `json:"enabled,omitempty"`
	ScheduleRules          []ScheduleRule           `json:"scheduleRules,omitempty"`
	SavedGroups            []SavedGroupTargeting    `json:"savedGroups,omitempty"`
	Prerequisites          []FeaturePrerequisite    `json:"prerequisites,omitempty"`
	Value                  string                   `json:"value,omitempty"`
	Coverage               string                   `json:"coverage,omitempty"`
	HashAttribute          string                   `json:"hashAttribute,omitempty"`
	TrackingKey            string                   `json:"trackingKey,omitempty"`
	FallbackAttribute      *string                  `json:"fallbackAttribute,omitempty"`
	DisableStickyBucketing *bool                    `json:"disableStickyBucketing,omitempty"`
	BucketVersion          *int64                   `json:"bucketVersion,omitempty"`
	MinBucketVersion       *int64                   `json:"minBucketVersion,omitempty"`
	Namespace              *NamespaceValue          `json:"namespace,omitempty"`
	Values                 []ExperimentValue        `json:"values,omitempty"`
	ExperimentID           string                   `json:"experimentId,omitempty"`
	Variations             []ExperimentRefVariation `json:"variations,omitempty"`
}

func (*FeatureRule) DeepCopy added in v0.4.0

func (in *FeatureRule) DeepCopy() *FeatureRule

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

func (*FeatureRule) DeepCopyInto added in v0.4.0

func (in *FeatureRule) DeepCopyInto(out *FeatureRule)

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

type FeatureRuleType added in v0.4.0

type FeatureRuleType string

+kubebuilder:validation:Enum=force;rollout;experiment;experiment-ref

var (
	FeatureRuleTypeForce         FeatureRuleType = "force"
	FeatureRuleTypeRollout       FeatureRuleType = "rollout"
	FeatureRuleTypeExperiment    FeatureRuleType = "experiment"
	FeatureRuleTypeExperimentRef FeatureRuleType = "experiment-ref"
)

type FeatureValueType

type FeatureValueType string

+kubebuilder:validation:Enum=boolean;string;number;json

var (
	FeatureValueTypeBoolean FeatureValueType = "boolean"
	FeatureValueTypeString  FeatureValueType = "string"
	FeatureValueTypeNumber  FeatureValueType = "number"
	FeatureValueTypeJSON    FeatureValueType = "json"
)

type GrowthbookClient

type GrowthbookClient struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec GrowthbookClientSpec `json:"spec,omitempty"`
}

GrowthbookClient is the Schema for the GrowthbookClients API

func (*GrowthbookClient) DeepCopy

func (in *GrowthbookClient) DeepCopy() *GrowthbookClient

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

func (*GrowthbookClient) DeepCopyInto

func (in *GrowthbookClient) DeepCopyInto(out *GrowthbookClient)

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

func (*GrowthbookClient) DeepCopyObject

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

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

func (*GrowthbookClient) GetID

func (c *GrowthbookClient) GetID() string

GetID returns the client ID which is the resource name if not overwritten by spec.ID

func (*GrowthbookClient) GetName

func (c *GrowthbookClient) GetName() string

GetName returns the client name which is the resource name if not overwritten by spec.Name

type GrowthbookClientList

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

GrowthbookClientList contains a list of GrowthbookClient

func (*GrowthbookClientList) DeepCopy

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

func (*GrowthbookClientList) DeepCopyInto

func (in *GrowthbookClientList) DeepCopyInto(out *GrowthbookClientList)

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

func (*GrowthbookClientList) DeepCopyObject

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

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

type GrowthbookClientSpec

type GrowthbookClientSpec struct {
	Languages []string `json:"languages,omitempty"`
	Name      string   `json:"name,omitempty"`
	// +kubebuilder:default:=dev
	Environment              string                `json:"environment,omitempty"`
	EncryptPayload           bool                  `json:"encryptPayload,omitempty"`
	Project                  string                `json:"project,omitempty"`
	IncludeVisualExperiments bool                  `json:"includeVisualExperiments,omitempty"`
	IncludeDraftExperiments  bool                  `json:"includeDraftExperiments,omitempty"`
	IncludeExperimentNames   bool                  `json:"includeExperimentNames,omitempty"`
	ID                       string                `json:"id,omitempty"`
	TokenSecret              *TokenSecretReference `json:"tokenSecret"`
}

GrowthbookClientSpec defines the desired state of GrowthbookClient

func (*GrowthbookClientSpec) DeepCopy

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

func (*GrowthbookClientSpec) DeepCopyInto

func (in *GrowthbookClientSpec) DeepCopyInto(out *GrowthbookClientSpec)

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

type GrowthbookFeature

type GrowthbookFeature struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec GrowthbookFeatureSpec `json:"spec,omitempty"`
}

GrowthbookFeature is the Schema for the GrowthbookFeatures API

func (*GrowthbookFeature) DeepCopy

func (in *GrowthbookFeature) DeepCopy() *GrowthbookFeature

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

func (*GrowthbookFeature) DeepCopyInto

func (in *GrowthbookFeature) DeepCopyInto(out *GrowthbookFeature)

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

func (*GrowthbookFeature) DeepCopyObject

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

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

func (*GrowthbookFeature) GetID

func (f *GrowthbookFeature) GetID() string

GetID returns the feature ID which is the resource name if not overwritten by spec.ID

type GrowthbookFeatureList

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

GrowthbookFeatureList contains a list of GrowthbookFeature

func (*GrowthbookFeatureList) DeepCopy

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

func (*GrowthbookFeatureList) DeepCopyInto

func (in *GrowthbookFeatureList) DeepCopyInto(out *GrowthbookFeatureList)

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

func (*GrowthbookFeatureList) DeepCopyObject

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

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

type GrowthbookFeatureSpec

type GrowthbookFeatureSpec struct {
	ID           string           `json:"id,omitempty"`
	Description  string           `json:"description,omitempty"`
	Tags         []string         `json:"tags,omitempty"`
	DefaultValue string           `json:"defaultValue,omitempty"`
	ValueType    FeatureValueType `json:"valueType,omitempty"`
	// +kubebuilder:default:={{name: dev, enabled: true}}
	Environments []Environment `json:"environments,omitempty"`
}

GrowthbookFeatureSpec defines the desired state of GrowthbookFeature

func (*GrowthbookFeatureSpec) DeepCopy

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

func (*GrowthbookFeatureSpec) DeepCopyInto

func (in *GrowthbookFeatureSpec) DeepCopyInto(out *GrowthbookFeatureSpec)

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

type GrowthbookInstance

type GrowthbookInstance struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GrowthbookInstanceSpec   `json:"spec,omitempty"`
	Status GrowthbookInstanceStatus `json:"status,omitempty"`
}

GrowthbookInstance is the Schema for the GrowthbookInstances API

func GrowthbookInstanceNotReady

func GrowthbookInstanceNotReady(clone GrowthbookInstance, reason, message string) GrowthbookInstance

GrowthbookInstanceNotReady

func GrowthbookInstanceReady

func GrowthbookInstanceReady(clone GrowthbookInstance, reason, message string) GrowthbookInstance

GrowthbookInstanceReady

func (*GrowthbookInstance) DeepCopy

func (in *GrowthbookInstance) DeepCopy() *GrowthbookInstance

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

func (*GrowthbookInstance) DeepCopyInto

func (in *GrowthbookInstance) DeepCopyInto(out *GrowthbookInstance)

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

func (*GrowthbookInstance) DeepCopyObject

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

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

func (*GrowthbookInstance) GetStatusConditions

func (in *GrowthbookInstance) GetStatusConditions() *[]metav1.Condition

GetStatusConditions returns a pointer to the Status.Conditions slice

type GrowthbookInstanceList

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

GrowthbookInstanceList contains a list of GrowthbookInstance

func (*GrowthbookInstanceList) DeepCopy

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

func (*GrowthbookInstanceList) DeepCopyInto

func (in *GrowthbookInstanceList) DeepCopyInto(out *GrowthbookInstanceList)

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

func (*GrowthbookInstanceList) DeepCopyObject

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

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

type GrowthbookInstanceMongoDB

type GrowthbookInstanceMongoDB struct {
	// Address is a MongoDB comptaible URI `mongodb://xxx`
	URI string `json:"uri,omitempty"`

	// Secret is a secret refernece with the MongoDB credentials
	Secret *SecretReference `json:"rootSecret,omitempty"`
}

GrowthbookInstanceMongoDB defines how to connect to the growthbook MongoDB

func (*GrowthbookInstanceMongoDB) DeepCopy

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

func (*GrowthbookInstanceMongoDB) DeepCopyInto

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

type GrowthbookInstanceSpec

type GrowthbookInstanceSpec struct {
	// MongoDB settings
	MongoDB GrowthbookInstanceMongoDB `json:"mongodb,omitempty"`

	// Interval reconciliation
	Interval *metav1.Duration `json:"interval,omitempty"`

	// Prune
	// +kubebuilder:validation:Required
	Prune bool `json:"prune"`

	// Timeout while reconciling the instance
	// +kubebuilder:default:="5m"
	Timeout *metav1.Duration `json:"timeout,omitempty"`

	// Suspend reconciliation
	Suspend bool `json:"suspend,omitempty"`

	// ResourceSelector defines a selector to select Growthbook resources associated with this instance
	ResourceSelector *metav1.LabelSelector `json:"resourceSelector,omitempty"`
}

GrowthbookInstanceSpec defines the desired state of GrowthbookInstance

func (*GrowthbookInstanceSpec) DeepCopy

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

func (*GrowthbookInstanceSpec) DeepCopyInto

func (in *GrowthbookInstanceSpec) DeepCopyInto(out *GrowthbookInstanceSpec)

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

type GrowthbookInstanceStatus

type GrowthbookInstanceStatus struct {
	// Conditions holds the conditions for the KeycloakRealm.
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the last generation reconciled by the controller
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// LastReconcileDuration is the total time the reconcile of the realm took
	LastReconcileDuration metav1.Duration `json:"lastReconcileDuration,omitempty"`

	// SubResourceCatalog holds references to all sub resources including GrowthbookFeature and GrowthbookClient associated with this instance
	SubResourceCatalog []ResourceReference `json:"subResourceCatalog,omitempty"`
}

GrowthbookInstanceStatus defines the observed state of GrowthbookInstance

func (*GrowthbookInstanceStatus) DeepCopy

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

func (*GrowthbookInstanceStatus) DeepCopyInto

func (in *GrowthbookInstanceStatus) DeepCopyInto(out *GrowthbookInstanceStatus)

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

type GrowthbookOrganization

type GrowthbookOrganization struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec GrowthbookOrganizationSpec `json:"spec,omitempty"`
}

GrowthbookOrganization is the Schema for the GrowthbookOrganizations API

func (*GrowthbookOrganization) DeepCopy

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

func (*GrowthbookOrganization) DeepCopyInto

func (in *GrowthbookOrganization) DeepCopyInto(out *GrowthbookOrganization)

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

func (*GrowthbookOrganization) DeepCopyObject

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

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

func (*GrowthbookOrganization) GetID

func (o *GrowthbookOrganization) GetID() string

GetID returns the organization ID which is the resource name if not overwritten by spec.ID

func (*GrowthbookOrganization) GetName

func (o *GrowthbookOrganization) GetName() string

GetName returns the organization name which is the resource name if not overwritten by spec.Name

type GrowthbookOrganizationList

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

GrowthbookOrganizationList contains a list of GrowthbookOrganization

func (*GrowthbookOrganizationList) DeepCopy

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

func (*GrowthbookOrganizationList) DeepCopyInto

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

func (*GrowthbookOrganizationList) DeepCopyObject

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

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

type GrowthbookOrganizationSpec

type GrowthbookOrganizationSpec struct {
	Name       string `json:"name,omitempty"`
	ID         string `json:"id,omitempty"`
	OwnerEmail string `json:"ownerEmail,omitempty"`

	// Users defines a selector and a role which should be assigned to an organization
	Users []*GrowthbookOrganizationUser `json:"users,omitempty"`

	// ResourceSelector defines a selector to select Growthbook resources associated with this organization
	ResourceSelector *metav1.LabelSelector `json:"resourceSelector,omitempty"`
}

GrowthbookOrganizationSpec defines the desired state of GrowthbookOrganization

func (*GrowthbookOrganizationSpec) DeepCopy

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

func (*GrowthbookOrganizationSpec) DeepCopyInto

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

type GrowthbookOrganizationUser

type GrowthbookOrganizationUser struct {
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
	Role     string                `json:"role,omitempty"`
}

GrowthbookOrganizationUser defines which users are assigned to what organization with what role

func (*GrowthbookOrganizationUser) DeepCopy

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

func (*GrowthbookOrganizationUser) DeepCopyInto

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

type GrowthbookUser

type GrowthbookUser struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec GrowthbookUserSpec `json:"spec,omitempty"`
}

GrowthbookUser is the Schema for the GrowthbookUsers API

func (*GrowthbookUser) DeepCopy

func (in *GrowthbookUser) DeepCopy() *GrowthbookUser

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

func (*GrowthbookUser) DeepCopyInto

func (in *GrowthbookUser) DeepCopyInto(out *GrowthbookUser)

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

func (*GrowthbookUser) DeepCopyObject

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

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

func (*GrowthbookUser) GetID

func (u *GrowthbookUser) GetID() string

GetID returns the organization ID which is the resource name if not overwritten by spec.ID

func (*GrowthbookUser) GetName

func (u *GrowthbookUser) GetName() string

GetName returns the organization name which is the resource name if not overwritten by spec.Name

type GrowthbookUserList

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

GrowthbookUserList contains a list of GrowthbookUser

func (*GrowthbookUserList) DeepCopy

func (in *GrowthbookUserList) DeepCopy() *GrowthbookUserList

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

func (*GrowthbookUserList) DeepCopyInto

func (in *GrowthbookUserList) DeepCopyInto(out *GrowthbookUserList)

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

func (*GrowthbookUserList) DeepCopyObject

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

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

type GrowthbookUserSpec

type GrowthbookUserSpec struct {
	Name  string `json:"name,omitempty"`
	ID    string `json:"id,omitempty"`
	Email string `json:"email,omitempty"`

	// Secret is a secret reference to a secret containing the users password
	Secret *SecretReference `json:"secret"`
}

GrowthbookUserSpec defines the desired state of GrowthbookUser

func (*GrowthbookUserSpec) DeepCopy

func (in *GrowthbookUserSpec) DeepCopy() *GrowthbookUserSpec

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

func (*GrowthbookUserSpec) DeepCopyInto

func (in *GrowthbookUserSpec) DeepCopyInto(out *GrowthbookUserSpec)

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

type NamespaceValue added in v0.4.0

type NamespaceValue struct {
	Enabled bool    `json:"enabled,omitempty"`
	Name    string  `json:"name,omitempty"`
	Range   []int64 `json:"range,omitempty"`
}

func (*NamespaceValue) DeepCopy added in v0.4.0

func (in *NamespaceValue) DeepCopy() *NamespaceValue

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

func (*NamespaceValue) DeepCopyInto added in v0.4.0

func (in *NamespaceValue) DeepCopyInto(out *NamespaceValue)

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

type ResourceReference

type ResourceReference struct {
	Kind       string `json:"kind,omitempty"`
	Name       string `json:"name,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
}

ResourceReference metadata to lookup another resource

func (*ResourceReference) DeepCopy

func (in *ResourceReference) DeepCopy() *ResourceReference

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

func (*ResourceReference) DeepCopyInto

func (in *ResourceReference) DeepCopyInto(out *ResourceReference)

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

type SavedGroupTargeting added in v0.4.0

type SavedGroupTargeting struct {
	Match SavedGroupTargetingMatch `json:"match,omitempty"`
	IDs   []string                 `json:"ids,omitempty"`
}

func (*SavedGroupTargeting) DeepCopy added in v0.4.0

func (in *SavedGroupTargeting) DeepCopy() *SavedGroupTargeting

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

func (*SavedGroupTargeting) DeepCopyInto added in v0.4.0

func (in *SavedGroupTargeting) DeepCopyInto(out *SavedGroupTargeting)

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

type SavedGroupTargetingMatch added in v0.4.0

type SavedGroupTargetingMatch string

+kubebuilder:validation:Enum=all;none;any

var (
	SavedGroupTargetingMatchAll  SavedGroupTargetingMatch = "all"
	SavedGroupTargetingMatchNone SavedGroupTargetingMatch = "none"
	SavedGroupTargetingMatchAny  SavedGroupTargetingMatch = "any"
)

type ScheduleRule added in v0.4.0

type ScheduleRule struct {
	Timestamp string `json:"timestamp,omitempty"`
	Enabled   bool   `json:"enabled,omitempty"`
}

func (*ScheduleRule) DeepCopy added in v0.4.0

func (in *ScheduleRule) DeepCopy() *ScheduleRule

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

func (*ScheduleRule) DeepCopyInto added in v0.4.0

func (in *ScheduleRule) DeepCopyInto(out *ScheduleRule)

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

type SecretReference

type SecretReference struct {
	// Name referrs to the name of the secret, must be located whithin the same namespace
	Name string `json:"name"`

	// +optional
	// +kubebuilder:default:=username
	UserField string `json:"userField,omitempty"`

	// +optional
	// +kubebuilder:default:=password
	PasswordField string `json:"passwordField,omitempty"`
}

SecretReference is a named reference to a secret which contains user credentials

func (*SecretReference) DeepCopy

func (in *SecretReference) DeepCopy() *SecretReference

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

func (*SecretReference) DeepCopyInto

func (in *SecretReference) DeepCopyInto(out *SecretReference)

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

type TokenSecretReference

type TokenSecretReference struct {
	// Name referrs to the name of the secret, must be located whithin the same namespace
	Name string `json:"name"`

	// +kubebuilder:default:=token
	TokenField string `json:"tokenField,omitempty"`
}

SecretReference is a named reference to a secret which contains user credentials

func (*TokenSecretReference) DeepCopy

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

func (*TokenSecretReference) DeepCopyInto

func (in *TokenSecretReference) DeepCopyInto(out *TokenSecretReference)

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