Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the core v1alpha2 API group +kubebuilder:object:generate=true +groupName=core.openfeature.dev
Index ¶
- Variables
- type FeatureFlagConfiguration
- type FeatureFlagConfigurationList
- type FeatureFlagConfigurationSpec
- type FeatureFlagConfigurationStatus
- type FeatureFlagServiceProvider
- type FeatureFlagSpec
- type FeatureFlagSyncProvider
- type FlagDSpec
- type FlagSourceConfiguration
- type FlagSourceConfigurationList
- type FlagSourceConfigurationSpec
- type FlagSourceConfigurationStatus
- type FlagSpec
- type HttpSyncConfiguration
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.openfeature.dev", Version: "v1alpha2"} // 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 FeatureFlagConfiguration ¶
type FeatureFlagConfiguration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FeatureFlagConfigurationSpec `json:"spec,omitempty"` Status FeatureFlagConfigurationStatus `json:"status,omitempty"` }
FeatureFlagConfiguration is the Schema for the featureflagconfigurations API
func (*FeatureFlagConfiguration) DeepCopy ¶
func (in *FeatureFlagConfiguration) DeepCopy() *FeatureFlagConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureFlagConfiguration.
func (*FeatureFlagConfiguration) DeepCopyInto ¶
func (in *FeatureFlagConfiguration) DeepCopyInto(out *FeatureFlagConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FeatureFlagConfiguration) DeepCopyObject ¶
func (in *FeatureFlagConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FeatureFlagConfigurationList ¶
type FeatureFlagConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []FeatureFlagConfiguration `json:"items"` }
FeatureFlagConfigurationList contains a list of FeatureFlagConfiguration
func (*FeatureFlagConfigurationList) DeepCopy ¶
func (in *FeatureFlagConfigurationList) DeepCopy() *FeatureFlagConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureFlagConfigurationList.
func (*FeatureFlagConfigurationList) DeepCopyInto ¶
func (in *FeatureFlagConfigurationList) DeepCopyInto(out *FeatureFlagConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FeatureFlagConfigurationList) DeepCopyObject ¶
func (in *FeatureFlagConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FeatureFlagConfigurationSpec ¶
type FeatureFlagConfigurationSpec struct { // ServiceProvider [DEPRECATED]: superseded by FlagSourceConfiguration // +optional // +nullable ServiceProvider *FeatureFlagServiceProvider `json:"serviceProvider"` // SyncProvider [DEPRECATED]: superseded by FlagSourceConfiguration // +optional // +nullable SyncProvider *FeatureFlagSyncProvider `json:"syncProvider"` // FlagDSpec [DEPRECATED]: superseded by FlagSourceConfiguration // +optional // +nullable FlagDSpec *FlagDSpec `json:"flagDSpec"` // FeatureFlagSpec is the structured representation of the feature flag specification FeatureFlagSpec FeatureFlagSpec `json:"featureFlagSpec,omitempty"` // Resources defines flagd sidecar resources. Default to operator sidecar-cpu-* and sidecar-ram-* flags. // +optional Resources corev1.ResourceRequirements `json:"resources"` }
FeatureFlagConfigurationSpec defines the desired state of FeatureFlagConfiguration
func (*FeatureFlagConfigurationSpec) DeepCopy ¶
func (in *FeatureFlagConfigurationSpec) DeepCopy() *FeatureFlagConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureFlagConfigurationSpec.
func (*FeatureFlagConfigurationSpec) DeepCopyInto ¶
func (in *FeatureFlagConfigurationSpec) DeepCopyInto(out *FeatureFlagConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FeatureFlagConfigurationStatus ¶
type FeatureFlagConfigurationStatus struct { }
FeatureFlagConfigurationStatus defines the observed state of FeatureFlagConfiguration
func (*FeatureFlagConfigurationStatus) DeepCopy ¶
func (in *FeatureFlagConfigurationStatus) DeepCopy() *FeatureFlagConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureFlagConfigurationStatus.
func (*FeatureFlagConfigurationStatus) DeepCopyInto ¶
func (in *FeatureFlagConfigurationStatus) DeepCopyInto(out *FeatureFlagConfigurationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FeatureFlagServiceProvider ¶
type FeatureFlagServiceProvider struct { // +kubebuilder:validation:Enum=flagd Name string `json:"name"` // +optional // +nullable Credentials *corev1.ObjectReference `json:"credentials"` }
func (*FeatureFlagServiceProvider) DeepCopy ¶
func (in *FeatureFlagServiceProvider) DeepCopy() *FeatureFlagServiceProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureFlagServiceProvider.
func (*FeatureFlagServiceProvider) DeepCopyInto ¶
func (in *FeatureFlagServiceProvider) DeepCopyInto(out *FeatureFlagServiceProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FeatureFlagSpec ¶
type FeatureFlagSpec struct { Flags map[string]FlagSpec `json:"flags"` // +optional // +kubebuilder:validation:Schemaless // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Type=object Evaluators json.RawMessage `json:"$evaluators,omitempty"` }
func (*FeatureFlagSpec) DeepCopy ¶
func (in *FeatureFlagSpec) DeepCopy() *FeatureFlagSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureFlagSpec.
func (*FeatureFlagSpec) DeepCopyInto ¶
func (in *FeatureFlagSpec) DeepCopyInto(out *FeatureFlagSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FeatureFlagSyncProvider ¶
type FeatureFlagSyncProvider struct { Name string `json:"name"` // +optional // +nullable HttpSyncConfiguration *HttpSyncConfiguration `json:"httpSyncConfiguration"` }
func (*FeatureFlagSyncProvider) DeepCopy ¶
func (in *FeatureFlagSyncProvider) DeepCopy() *FeatureFlagSyncProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureFlagSyncProvider.
func (*FeatureFlagSyncProvider) DeepCopyInto ¶
func (in *FeatureFlagSyncProvider) DeepCopyInto(out *FeatureFlagSyncProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FeatureFlagSyncProvider) IsKubernetes ¶
func (ffsp FeatureFlagSyncProvider) IsKubernetes() bool
type FlagDSpec ¶
func (*FlagDSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlagDSpec.
func (*FlagDSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FlagSourceConfiguration ¶
type FlagSourceConfiguration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FlagSourceConfigurationSpec `json:"spec,omitempty"` Status FlagSourceConfigurationStatus `json:"status,omitempty"` }
FlagSourceConfiguration is the Schema for the FlagSourceConfigurations API
func (*FlagSourceConfiguration) DeepCopy ¶
func (in *FlagSourceConfiguration) DeepCopy() *FlagSourceConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlagSourceConfiguration.
func (*FlagSourceConfiguration) DeepCopyInto ¶
func (in *FlagSourceConfiguration) DeepCopyInto(out *FlagSourceConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FlagSourceConfiguration) DeepCopyObject ¶
func (in *FlagSourceConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FlagSourceConfigurationList ¶
type FlagSourceConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []FlagSourceConfiguration `json:"items"` }
FlagSourceConfigurationList contains a list of FlagSourceConfiguration
func (*FlagSourceConfigurationList) DeepCopy ¶
func (in *FlagSourceConfigurationList) DeepCopy() *FlagSourceConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlagSourceConfigurationList.
func (*FlagSourceConfigurationList) DeepCopyInto ¶
func (in *FlagSourceConfigurationList) DeepCopyInto(out *FlagSourceConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FlagSourceConfigurationList) DeepCopyObject ¶
func (in *FlagSourceConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FlagSourceConfigurationSpec ¶
type FlagSourceConfigurationSpec struct { // MetricsPort defines the port to serve metrics on, defaults to 8013 // +optional MetricsPort int32 `json:"metricsPort"` // Port defines the port to listen on, defaults to 8014 // +optional Port int32 `json:"port"` // SocketPath defines the unix socket path to listen on // +optional SocketPath string `json:"socketPath"` // SyncProviderArgs are string arguments passed to all sync providers, defined as key values separated by = // +optional SyncProviderArgs []string `json:"syncProviderArgs"` // Evaluator sets an evaluator, defaults to 'json' // +optional Evaluator string `json:"evaluator"` // Image allows for the sidecar image to be overridden, defaults to 'ghcr.io/open-feature/flagd' // +optional Image string `json:"image"` // Tag to be appended to the sidecar image, defaults to 'main' // +optional Tag string `json:"tag"` // DefaultSyncProvider defines the default sync provider // +optional DefaultSyncProvider string `json:"defaultSyncProvider"` // LogFormat allows for the sidecar log format to be overridden, defaults to 'json' // +optional LogFormat string `json:"logFormat"` // ProbesEnabled defines whether to enable liveness and readiness probes of flagd sidecar. Default true (enabled). // +optional ProbesEnabled *bool `json:"probesEnabled"` // OtelCollectorUri defines whether to enable --otel-collector-uri flag of flagd sidecar. Default false (disabled). // +optional OtelCollectorUri string `json:"otelCollectorUri"` }
FlagSourceConfigurationSpec defines the desired state of FlagSourceConfiguration
func (*FlagSourceConfigurationSpec) DeepCopy ¶
func (in *FlagSourceConfigurationSpec) DeepCopy() *FlagSourceConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlagSourceConfigurationSpec.
func (*FlagSourceConfigurationSpec) DeepCopyInto ¶
func (in *FlagSourceConfigurationSpec) DeepCopyInto(out *FlagSourceConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FlagSourceConfigurationStatus ¶
type FlagSourceConfigurationStatus struct { }
FlagSourceConfigurationStatus defines the observed state of FlagSourceConfiguration
func (*FlagSourceConfigurationStatus) DeepCopy ¶
func (in *FlagSourceConfigurationStatus) DeepCopy() *FlagSourceConfigurationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlagSourceConfigurationStatus.
func (*FlagSourceConfigurationStatus) DeepCopyInto ¶
func (in *FlagSourceConfigurationStatus) DeepCopyInto(out *FlagSourceConfigurationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FlagSpec ¶
type FlagSpec struct { // +kubebuilder:validation:Enum=ENABLED;DISABLED State string `json:"state"` // +kubebuilder:validation:Schemaless // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Type=object Variants json.RawMessage `json:"variants"` DefaultVariant string `json:"defaultVariant"` // +optional // +kubebuilder:validation:Schemaless // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Type=object // Targeting is the json targeting rule Targeting json.RawMessage `json:"targeting,omitempty"` }
func (*FlagSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlagSpec.
func (*FlagSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HttpSyncConfiguration ¶
type HttpSyncConfiguration struct { // Target is the target url for flagd to poll Target string `json:"target"` // +optional BearerToken string `json:"bearerToken,omitempty"` }
HttpSyncConfiguration defines the desired configuration for a http sync
func (*HttpSyncConfiguration) DeepCopy ¶
func (in *HttpSyncConfiguration) DeepCopy() *HttpSyncConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HttpSyncConfiguration.
func (*HttpSyncConfiguration) DeepCopyInto ¶
func (in *HttpSyncConfiguration) DeepCopyInto(out *HttpSyncConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.