console

package
v0.0.0-...-a7b70b0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CatalogDeploymentName is the name of the pattern-ui-catalog Deployment
	CatalogDeploymentName = "patterns-operator-pattern-ui-catalog"
	// CatalogContainerName is the name of the container inside the catalog Deployment
	CatalogContainerName = "patterns-operator-pattern-ui-catalog"
	// CatalogConfigMapName is the name of the nginx config ConfigMap
	CatalogConfigMapName = "patterns-operator-pattern-ui-catalog"
	// CatalogServiceName is the name of the catalog Service
	CatalogServiceName = "patterns-operator-pattern-ui-catalog"
	// CatalogCertSecretName is the name of the serving cert Secret
	CatalogCertSecretName = "patterns-operator-pattern-ui-catalog-cert"
	// CatalogDefaultImage is the default catalog image
	CatalogDefaultImage = "quay.io/validatedpatterns/pattern-ui-catalog:stable-v1"
)
View Source
const (
	// PluginName is the name of the plugin and used at several places
	// this has to be the same as in the package.json in the plugin
	PluginName = "patterns-operator-console-plugin"
	// ServiceName is the name of the console plugin Service and must match the name of the Service in /bundle/manifests!
	ServiceName = "patterns-operator-console-plugin"
	// ServicePort is the port of the console plugin Service and must match the port of the Service in /bundle/manifests!
	ServicePort = 9443

	// PatternCatalogServiceName is the name of the pattern-ui-catalog Service
	PatternCatalogServiceName = "patterns-operator-pattern-ui-catalog"
	// PatternCatalogServicePort is the port of the pattern-ui-catalog Service (TLS)
	PatternCatalogServicePort = 9444
	// PatternCatalogProxyAlias is the proxy alias used in console plugin proxy configuration
	PatternCatalogProxyAlias = "pattern-ui-catalog"
)

Variables

This section is empty.

Functions

func CreateOrUpdateCatalog

func CreateOrUpdateCatalog(ctx context.Context, cl client.Client, reader client.Reader) error

CreateOrUpdateCatalog creates or updates the pattern-ui-catalog ConfigMap, Service, and Deployment. If the operator ConfigMap contains a "catalog.image" key, that image is used instead of the built-in default.

func CreateOrUpdatePlugin

func CreateOrUpdatePlugin(ctx context.Context, cl client.Client) error

CreateOrUpdatePlugin creates or updates the resources needed for the remediation console plugin. HEADS UP: consider cleanup of old resources in case of name changes or removals!

func EnablePlugin

func EnablePlugin(ctx context.Context, cl client.Client) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL