Documentation
¶
Index ¶
Constants ¶
const DefaultServicePort = 80
DefaultServicePort is the default port used to connect to the UI component service
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigFetcher ¶
type ConfigFetcher interface {
FetchConfig(ctx context.Context, namespace, serviceName string, port int) (string, error)
}
ConfigFetcher defines an interface for fetching UI component configurations
type ConfigMeta ¶
type ConfigMeta struct {
Kind string `json:"kind"`
}
ConfigMeta represents the metadata section of the micro-app-configuration
type ConfigSpec ¶
type ConfigSpec struct { RemoteEntryPath string `json:"remoteEntryPath"` PublicPath string `json:"publicPath"` Version string `json:"version"` }
ConfigSpec represents the spec section of the micro-app-configuration
type K8sServiceProxyFetcher ¶
type K8sServiceProxyFetcher struct { }
K8sServiceProxyFetcher implements ConfigFetcher using Kubernetes service proxy
func (*K8sServiceProxyFetcher) FetchConfig ¶
func (f *K8sServiceProxyFetcher) FetchConfig(ctx context.Context, namespace, serviceName string, port int) (string, error)
FetchConfig retrieves the micro-app configuration from the specified service
type MicroAppConfig ¶
type MicroAppConfig struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata ConfigMeta `json:"metadata"` Spec ConfigSpec `json:"spec"` }
MicroAppConfig represents the structure of the micro-app-configuration file
type ScalityUIComponentReconciler ¶
type ScalityUIComponentReconciler struct { client.Client Scheme *runtime.Scheme ConfigFetcher ConfigFetcher }
ScalityUIComponentReconciler reconciles a ScalityUIComponent object
func NewScalityUIComponentReconciler ¶
func NewScalityUIComponentReconciler(client client.Client, scheme *runtime.Scheme) *ScalityUIComponentReconciler
NewScalityUIComponentReconciler creates a new ScalityUIComponentReconciler
func (*ScalityUIComponentReconciler) SetupWithManager ¶
func (r *ScalityUIComponentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.