vzconfig

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 15 Imported by: 0

Documentation

Overview

Copyright (c) 2021, 2023, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

Index

Constants

This section is empty.

Variables

View Source
var GetControllerRuntimeClient = validators.GetClient

Functions

func BuildDNSDomain

func BuildDNSDomain(client client.Client, vz *vzapi.Verrazzano) (string, error)

BuildDNSDomain Constructs the full DNS subdomain for the deployment

func CheckExternalIPsArgs added in v1.3.0

func CheckExternalIPsArgs(installArgs []vzapi.InstallArgs, overrides []vzapi.Overrides, argsKeyName, jsonPath, compName, namespace string) error

CheckExternalIPsArgs method goes through the key-value pair to detect the presence of the specific key for the corresponding component that holds the external IP address It also checks whether IP addresses are valid and provided in a List format

func CheckExternalIPsOverridesArgs added in v1.4.0

func CheckExternalIPsOverridesArgs(overrides []v1beta1.Overrides, jsonPath, compName string, namespace string) error

CheckExternalIPsOverridesArgs method goes through the key-value pair to detect the presence of the specific key for the corresponding component that holds the external IP address It also checks whether IP addresses are valid and provided in a List format

func CheckExternalIPsOverridesArgsWithPaths added in v1.4.0

func CheckExternalIPsOverridesArgsWithPaths(overrides []v1beta1.Overrides, jsonBasePath, serviceTypePath, serviceTypeValue, externalIPPath, compName, namespace string) error

CheckExternalIPsOverridesArgsWithPaths method goes through the key-value pair to detect the presence of the specific keys for the corresponding component that holds the Service type and external IP address It checks whether the service is of a specific type. It also checks whether IP addresses are valid and provided in a List format

func FindVolumeTemplate

func FindVolumeTemplate(templateName string, object runtime.Object) (*v1.PersistentVolumeClaimSpec, bool)

FindVolumeTemplate Find a named VolumeClaimTemplate in the list for v1beta1.

func GetDNSSuffix

func GetDNSSuffix(client client.Client, vz *vzapi.Verrazzano) (string, error)

GetDNSSuffix Returns the DNS suffix for the Verrazzano installation - port of install script function get_dns_suffix from config.sh

func GetEnvName

func GetEnvName(vz *vzapi.Verrazzano) string

GetEnvName Returns the configured environment name, or "default" if not specified in the configuration

func GetExternalIP added in v1.4.0

func GetExternalIP(client client.Client, serviceType vzapi.IngressType, name, namespace string) (string, error)

GetExternalIP Returns the ingress IP of the service given the service type, name, and namespace

func GetIngressClassName added in v1.4.0

func GetIngressClassName(vz *vzapi.Verrazzano) string

GetIngressClassName gets the ingress class name or default of "nginx" if not specified

func GetIngressIP

func GetIngressIP(client client.Client, vz *vzapi.Verrazzano) (string, error)

GetIngressIP Returns the ingress IP of the LoadBalancer - port of install scripts function get_verrazzano_ingress_ip in config.sh

func GetIngressServiceType added in v1.4.0

func GetIngressServiceType(cr *vzapi.Verrazzano) (vzapi.IngressType, error)

Identify the service type, LB vs NodePort

func GetWildcardDomain

func GetWildcardDomain(DNS interface{}) string

GetWildcardDomain Get the wildcard domain from the Verrazzano config

func ValidateRoleBindingSubject

func ValidateRoleBindingSubject(subject v1.Subject, name string) error

ValidateRoleBindingSubject - Validates the requested subject content, used to validate the Verrazzano CR security customizations - refactored from the install_config code

Types

This section is empty.

Jump to

Keyboard shortcuts

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