Documentation ¶
Index ¶
- Constants
- func GetSecret(ctx context.Context, client client.Client, name types.NamespacedName, ...) (value string, err error)
- func Host(toggle bool) string
- func IgnoreConflicts(err *error)
- func IsWebhookEnabled() bool
- func PathConfig(homeDir string) string
- func PathData(homeDir string) string
- func PathSecrets(homeDir string) string
- func SecurityContext() *corev1.PodSecurityContext
- func UpdateLabels(cr CustomResource, client, network string)
- type CustomResource
Constants ¶
View Source
const ( EnvDataPath = "KOTAL_DATA_PATH" EnvConfigPath = "KOTAL_CONFIG_PATH" EnvSecretsPath = "KOTAL_SECRETS_PATH" EnvUseExistingCluster = "USE_EXISTING_CLUSTER" )
View Source
const ( // BlockchainDataSubDir is the blockchain data sub directory BlockchainDataSubDir = "kotal-data" // SecretsSubDir is the secrets (private keys, password ... etc) sub directory SecretsSubDir = ".kotal-secrets" // ConfigSubDir is the configuration sub directory ConfigSubDir = "kotal-config" )
View Source
const (
// BusyboxImage is the busybox images used by init containers
BusyboxImage = "busybox:1.34.1"
)
Variables ¶
This section is empty.
Functions ¶
func GetSecret ¶
func GetSecret(ctx context.Context, client client.Client, name types.NamespacedName, key string) (value string, err error)
GetSecret returns k8s secret stored at key
func Host ¶ added in v0.2.0
Host returns localhost if toggle is not enabled otherwise returns the wildcard address
func IgnoreConflicts ¶ added in v0.2.0
func IgnoreConflicts(err *error)
IgnoreConflicts ignore conflict errors
func IsWebhookEnabled ¶
func IsWebhookEnabled() bool
IsWebhookEnabled checks if webhooks are enabled
func SecurityContext ¶
func SecurityContext() *corev1.PodSecurityContext
SecurityContext is the pod security policy used by all containers
func UpdateLabels ¶
func UpdateLabels(cr CustomResource, client, network string)
UpdateLabels adds missing labels to the resource
Types ¶
type CustomResource ¶
Click to show internal directories.
Click to hide internal directories.