resources

package
v0.0.0-...-9796e91 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// HTTPApplicationPort is the HTTP port for the application domain
	HTTPApplicationPort int32 = 8080
	// HTTPManagementPort is the HTTP port for the management domain
	HTTPManagementPort int32 = 9990
	// MarkerServiceActive marks a pod as actively served by its service
	MarkerServiceActive = "active"
	// MarkerOperatedByLoadbalancer is a label used to remove a pod from receiving load from loadbalancer during transaction recovery
	MarkerOperatedByLoadbalancer = "wildfly.org/operated-by-loadbalancer"
	// MarkerOperatedByHeadless is a label used to remove a pod from receiving load from headless service when it's cleaned to shutdown
	MarkerOperatedByHeadless = "wildfly.org/operated-by-headless"
	// MarkerImageType is an annotation that tell us if the pod is a bootable-jar image or an generic one
	MarkerImageType = "wildfly.org/server-type"
	// ImageTypeGeneric is one of the possible values for MarkerImageType annotation
	ImageTypeGeneric = "generic"
	// ImageTypeGeneric is one of the possible values for MarkerImageType annotation denoting a bootable JAR type image
	ImageTypeBootable = "bootable-jar"
	// SecretsDir is the directory to mount volumes from Secrets
	SecretsDir = "/etc/secrets/"
	// ConfigMapsDir is the directory to mount volumes from ConfigMaps
	ConfigMapsDir = "/etc/configmaps/"
	// StatefuleSetTemplateLabelsEnvVarName is the name of the envvar containg label/value map for pods created from the statefulset's template
	StatefuleSetTemplateLabelsEnvVarName string = "STATEFULSET_TEMPLATE_LABELS"
)
View Source
const (
	// MarkerServerGeneration is an annotation to specifies the generation of the server that created underlying resources
	MarkerServerGeneration = "wildfly.org/wildfly-server-generation"
)

Variables

View Source
var (
	// StandaloneServerDataDirRelativePath is the path to the server standalone data directory
	StandaloneServerDataDirRelativePath = "standalone/data"
)

Functions

func Create

func Create(w *wildflyv1alpha1.WildFlyServer, client client.Client, scheme *runtime.Scheme, objectDefinition client.Object) error

Create creates a new resource from the objectDefinition and set w as its ControllerReference

func CustomResourceDefinitionExists

func CustomResourceDefinitionExists(gvk schema.GroupVersionKind) bool

CustomResourceDefinitionExists returns true if the CRD exists in the cluster

func Delete

func Delete(w *wildflyv1alpha1.WildFlyServer, client client.Client, objectDefinition client.Object) error

Delete deletes the resource specified by the objectDefinition.

func Get

func Get(w *wildflyv1alpha1.WildFlyServer, namespacedName types.NamespacedName, client client.Client, objectDefinition client.Object) error

Get returns the object from the objectDefinition

func IsCurrentGeneration

func IsCurrentGeneration(w *wildflyv1alpha1.WildFlyServer, objectDefinition runtime.Object) bool

IsCurrentGeneration returns true if the object has been created by the current generation of the WildFlyServer

func JBossHome

func JBossHome(bootable bool) string

JBossHome is read from the env var JBOSS_HOME or, in case of a Bootable JAR, from JBOSS_BOOTABLE_HOME

func JBossHomeDataDir

func JBossHomeDataDir(bootable bool) string

JBossHome is read from the env var JBOSS_HOME or, in case of a Bootable JAR, from JBOSS_BOOTABLE_DATA_DIR

func MarkServerGeneration

func MarkServerGeneration(w *wildflyv1alpha1.WildFlyServer, meta metav1.Object)

MarkServerGeneration adds a annotation to the object meta to specifies which generation of WildFlyServer created it.

func Patch

func Patch(w *wildflyv1alpha1.WildFlyServer, client client.Client, objectDefinition client.Object, patch client.Patch) error

func Update

func Update(w *wildflyv1alpha1.WildFlyServer, client client.Client, objectDefinition client.Object) error

Update updates the resource specified by the objectDefinition.

func UpdateStatus

func UpdateStatus(w *wildflyv1alpha1.WildFlyServer, client client.Client, objectDefinition client.Object) error

UpdateStatus updates status of the resource specified by the objectDefinition.

func UpdateWildFlyServerStatus

func UpdateWildFlyServerStatus(w *wildflyv1alpha1.WildFlyServer, client client.Client) error

UpdateWildFlyServerStatus updates status of the WildFlyServer resource.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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