Documentation ¶
Index ¶
- Constants
- func CredentialsAsEnv(vdbName string, vdbNamespace string, client k8sclient.Reader) []corev1.EnvVar
- func Exists(vdbName string, vdbNamespace string, client k8sclient.Reader, ...) bool
- func IsInfinispanCRDAvailable(cli teiidclient.Client) bool
- func IsInfinispanOperatorAvailable(cli teiidclient.Client, namespace string) (bool, error)
- func NewInfinispanResource(namespace string, name string, secretName string, relicas int32) infinispan.Infinispan
- type InfinispanDetails
Constants ¶
View Source
const (
// InfinispanOperatorName is the Infinispan Operator default name
InfinispanOperatorName = "infinispan-operator"
)
Variables ¶
This section is empty.
Functions ¶
func CredentialsAsEnv ¶
CredentialsAsEnv --
func Exists ¶
func Exists(vdbName string, vdbNamespace string, client k8sclient.Reader, ispnClient *ispnClient.InfinispanV1Client) bool
Exists -- check to so if the Infinispan CacheStore exists
func IsInfinispanCRDAvailable ¶
func IsInfinispanCRDAvailable(cli teiidclient.Client) bool
IsInfinispanCRDAvailable checks whether Infinispan CRD is available or not
func IsInfinispanOperatorAvailable ¶
func IsInfinispanOperatorAvailable(cli teiidclient.Client, namespace string) (bool, error)
IsInfinispanOperatorAvailable verify if Infinispan Operator is running in the given namespace and the CRD is available
func NewInfinispanResource ¶
func NewInfinispanResource(namespace string, name string, secretName string, relicas int32) infinispan.Infinispan
NewInfinispanResource --
Types ¶
type InfinispanDetails ¶
type InfinispanDetails struct { Name string `yaml:"name,omitempty"` NameSpace string `yaml:"namespace,omitempty"` User string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` URL string `yaml:"url,omitempty"` CreateIfNotFound bool `yaml:"create,omitempty"` Replicas int32 `yaml:"replicas,omitempty"` }
InfinispanDetails --
func Credentials ¶
func Credentials(vdbName string, vdbNamespace string, client k8sclient.Reader) (*InfinispanDetails, error)
Credentials --
Click to show internal directories.
Click to hide internal directories.