Documentation
¶
Index ¶
- Constants
- func NewK8sClient(logger *zap.Logger) (kubernetes.Interface, error)
- func NewK8sDynamicClient(logger *zap.Logger) (dynamic.Interface, error)
- type ConfigMapController
- func (cmc *ConfigMapController) CreateConfigMap(ctx context.Context, namespace string, cm *v1.ConfigMap) error
- func (cmc *ConfigMapController) GetConfigmapByNameAndNamespace(name, namespace string) (*v1.ConfigMap, error)
- func (cmc *ConfigMapController) Run() error
- func (cmc *ConfigMapController) Stop()
- func (cmc *ConfigMapController) UpdateConfigMap(ctx context.Context, namespace string, cm *v1.ConfigMap) error
- type ConfigMapStore
- type HomeDirGetterFunc
- type HubConfigMapController
- func (cmc *HubConfigMapController) GetAllHubsAutomationConfigMapData() (map[string]map[string]string, error)
- func (cmc *HubConfigMapController) GetAllHubsEnvConfigMapData() (map[string]map[string]string, error)
- func (cmc *HubConfigMapController) GetAllHubsToDataMap() (map[string]map[string]string, error)deprecated
- func (cmc *HubConfigMapController) GetAllHubsVariablesSchemaConfigMapData() (map[string]map[string]string, error)
- func (cmc *HubConfigMapController) GetAutomationConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
- func (cmc *HubConfigMapController) GetConfigMapByHubName(hubName string) (*v1.ConfigMap, error)deprecated
- func (cmc *HubConfigMapController) GetEnvConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
- func (cmc *HubConfigMapController) GetVariablesSchemaConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
- func (cmc *HubConfigMapController) Run() error
- func (cmc *HubConfigMapController) Stop()
- type HubConfigMapStore
- type SecretController
- func (sc *SecretController) CreateSecret(ctx context.Context, namespace string, secret *v1.Secret) error
- func (sc *SecretController) GetSecretByNameAndNamespace(name, namespace string) (*v1.Secret, error)
- func (sc *SecretController) Run() error
- func (sc *SecretController) Stop()
- func (sc *SecretController) UpdateSecret(ctx context.Context, namespace string, secret *v1.Secret) error
- type SecretStore
Constants ¶
const ( ConfigMapTypeLabel = "mydecisive.ai/configmap-type" OctantConnectionsConfigMapType = "octant-connections" )
const ( ByHubAndType = "IndexByHubAndType" ByType = "IndexByType" EnvConfigMapType = "hub-variables" AutomationConfigMapType = "hub-automation" VariablesSchemaMapType = "hub-variables-schema" LabelMdaiHubName = "mydecisive.ai/hub-name" // Deprecated: migrate to VariablesSchemaMapType. ManualEnvConfigMapType = "hub-manual-variables" )
const ( SecretTypeLabel = "mydecisive.ai/secret-type" OctantIntegrationDatadogType = "octant-integration-datadog" OctantIntegrationArgoType = "octant-integration-argo" )
Variables ¶
This section is empty.
Functions ¶
func NewK8sClient ¶
func NewK8sClient(logger *zap.Logger) (kubernetes.Interface, error)
Types ¶
type ConfigMapController ¶
type ConfigMapController struct {
// contains filtered or unexported fields
}
func NewConfigMapController ¶
func NewConfigMapController(configMapTypes []string, namespace string, clientset kubernetes.Interface, logger *zap.Logger) (*ConfigMapController, error)
func (*ConfigMapController) CreateConfigMap ¶ added in v0.4.3
func (cmc *ConfigMapController) CreateConfigMap(ctx context.Context, namespace string, cm *v1.ConfigMap) error
CreateConfigMap creates the provided configmap in the provided namespace.
func (*ConfigMapController) GetConfigmapByNameAndNamespace ¶ added in v0.4.0
func (cmc *ConfigMapController) GetConfigmapByNameAndNamespace(name, namespace string) (*v1.ConfigMap, error)
GetConfigmapByNameAndNamespace returns the requested configmap, if it exists.
func (*ConfigMapController) Run ¶
func (cmc *ConfigMapController) Run() error
func (*ConfigMapController) Stop ¶
func (cmc *ConfigMapController) Stop()
func (*ConfigMapController) UpdateConfigMap ¶ added in v0.4.3
func (cmc *ConfigMapController) UpdateConfigMap(ctx context.Context, namespace string, cm *v1.ConfigMap) error
UpdateConfigMap updates an existing configmap with the provided configmap in the provided namespace.
type ConfigMapStore ¶
type HomeDirGetterFunc ¶
type HubConfigMapController ¶ added in v0.4.0
type HubConfigMapController struct {
InformerFactory informers.SharedInformerFactory
CmInformer coreinformers.ConfigMapInformer
Logger *zap.Logger
// contains filtered or unexported fields
}
func NewHubConfigMapController ¶ added in v0.4.0
func NewHubConfigMapController(configMapTypes []string, namespace string, clientset kubernetes.Interface, logger *zap.Logger) (*HubConfigMapController, error)
func (*HubConfigMapController) GetAllHubsAutomationConfigMapData ¶ added in v0.4.0
func (cmc *HubConfigMapController) GetAllHubsAutomationConfigMapData() (map[string]map[string]string, error)
GetAllHubsAutomationConfigMapData returns automation config map data for all hubs.
func (*HubConfigMapController) GetAllHubsEnvConfigMapData ¶ added in v0.4.0
func (cmc *HubConfigMapController) GetAllHubsEnvConfigMapData() (map[string]map[string]string, error)
GetAllHubsEnvConfigMapData returns variables config map data for all hubs.
func (*HubConfigMapController) GetAllHubsToDataMap
deprecated
added in
v0.4.0
func (cmc *HubConfigMapController) GetAllHubsToDataMap() (map[string]map[string]string, error)
Deprecated: use a type-specific GetAllHubs*ConfigMapData helper for deterministic lookups. This method flattens multiple watched ConfigMap types into one value per hub and can be ambiguous. Still used in gateway
func (*HubConfigMapController) GetAllHubsVariablesSchemaConfigMapData ¶ added in v0.4.0
func (cmc *HubConfigMapController) GetAllHubsVariablesSchemaConfigMapData() (map[string]map[string]string, error)
GetAllHubsVariablesSchemaConfigMapData returns variables schema config map data for all hubs.
func (*HubConfigMapController) GetAutomationConfigMapDataByHubName ¶ added in v0.4.0
func (cmc *HubConfigMapController) GetAutomationConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
GetAutomationConfigMapDataByHubName returns automation config map data for the given hub.
func (*HubConfigMapController) GetConfigMapByHubName
deprecated
added in
v0.4.0
func (cmc *HubConfigMapController) GetConfigMapByHubName(hubName string) (*v1.ConfigMap, error)
Deprecated: use a type-specific Get*ConfigMapDataByHubName helper when the informer may watch multiple ConfigMap types per hub. GetConfigMapByHubName returns the only ConfigMap found for the given hub name. Still used in event hub
func (*HubConfigMapController) GetEnvConfigMapDataByHubName ¶ added in v0.4.0
func (cmc *HubConfigMapController) GetEnvConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
GetEnvConfigMapDataByHubName returns variables config map data for the given hub.
func (*HubConfigMapController) GetVariablesSchemaConfigMapDataByHubName ¶ added in v0.4.0
func (cmc *HubConfigMapController) GetVariablesSchemaConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
GetVariablesSchemaConfigMapDataByHubName returns variables schema config map data for the given hub.
func (*HubConfigMapController) Run ¶ added in v0.4.0
func (cmc *HubConfigMapController) Run() error
func (*HubConfigMapController) Stop ¶ added in v0.4.0
func (cmc *HubConfigMapController) Stop()
type HubConfigMapStore ¶ added in v0.4.0
type HubConfigMapStore interface {
Run() error
Stop()
// Deprecated: use a type-specific GetAllHubs*ConfigMapData helper for deterministic lookups.
GetAllHubsToDataMap() (map[string]map[string]string, error)
// Deprecated: use GetEnvConfigMapDataByHubName, GetAutomationConfigMapDataByHubName, or GetVariablesSchemaConfigMapDataByHubName
GetConfigMapByHubName(hubName string) (*v1.ConfigMap, error)
GetEnvConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
GetAutomationConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
GetVariablesSchemaConfigMapDataByHubName(hubName string) (map[string]string, bool, error)
GetAllHubsEnvConfigMapData() (map[string]map[string]string, error)
GetAllHubsAutomationConfigMapData() (map[string]map[string]string, error)
GetAllHubsVariablesSchemaConfigMapData() (map[string]map[string]string, error)
}
type SecretController ¶ added in v0.4.0
type SecretController struct {
// contains filtered or unexported fields
}
func NewSecretController ¶ added in v0.4.0
func NewSecretController(secretTypes []string, namespace string, clientset kubernetes.Interface, logger *zap.Logger) (*SecretController, error)
func (*SecretController) CreateSecret ¶ added in v0.4.3
func (sc *SecretController) CreateSecret(ctx context.Context, namespace string, secret *v1.Secret) error
CreateSecret creates the provided secret in the provided namespace.
func (*SecretController) GetSecretByNameAndNamespace ¶ added in v0.4.0
func (sc *SecretController) GetSecretByNameAndNamespace(name, namespace string) (*v1.Secret, error)
GetSecretByNameAndNamespace returns the requested secret, if it exists.
func (*SecretController) Run ¶ added in v0.4.0
func (sc *SecretController) Run() error
func (*SecretController) Stop ¶ added in v0.4.0
func (sc *SecretController) Stop()
func (*SecretController) UpdateSecret ¶ added in v0.4.3
func (sc *SecretController) UpdateSecret(ctx context.Context, namespace string, secret *v1.Secret) error
UpdateSecret updates an existing secret with the provided secret in the provided namespace.