Documentation ¶
Index ¶
- Constants
- Variables
- func Create(w *wildflyv1alpha1.WildFlyServer, client client.Client, scheme *runtime.Scheme, ...) error
- func CustomResourceDefinitionExists(gvk schema.GroupVersionKind) bool
- func Delete(w *wildflyv1alpha1.WildFlyServer, client client.Client, ...) error
- func Get(w *wildflyv1alpha1.WildFlyServer, namespacedName types.NamespacedName, ...) error
- func IsCurrentGeneration(w *wildflyv1alpha1.WildFlyServer, objectDefinition runtime.Object) bool
- func JBossHome(bootable bool) string
- func JBossHomeDataDir(bootable bool) string
- func MarkServerGeneration(w *wildflyv1alpha1.WildFlyServer, meta metav1.Object)
- func Update(w *wildflyv1alpha1.WildFlyServer, client client.Client, ...) error
- func UpdateStatus(w *wildflyv1alpha1.WildFlyServer, client client.Client, ...) error
- func UpdateWildFlyServerStatus(w *wildflyv1alpha1.WildFlyServer, client client.Client) error
Constants ¶
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 the directory to mount volumes from Secrets SecretsDir = "/etc/secrets/" // ConfigMapsDir is the 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" )
const (
// MarkerServerGeneration is an annotation to specifies the generation of the server that created underlying resources
MarkerServerGeneration = "wildfly.org/wildfly-server-generation"
)
Variables ¶
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 runtime.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 runtime.Object) error
Delete deletes the resource specified by the objectDefinition.
func Get ¶
func Get(w *wildflyv1alpha1.WildFlyServer, namespacedName types.NamespacedName, client client.Client, objectDefinition runtime.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 ¶
JBossHome is read from the env var JBOSS_HOME or, in case of a Bootable JAR, from JBOSS_BOOTABLE_HOME
func JBossHomeDataDir ¶
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 Update ¶
func Update(w *wildflyv1alpha1.WildFlyServer, client client.Client, objectDefinition runtime.Object) error
Update updates the resource specified by the objectDefinition.
func UpdateStatus ¶
func UpdateStatus(w *wildflyv1alpha1.WildFlyServer, client client.Client, objectDefinition runtime.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.