Documentation ¶
Index ¶
- Constants
- func GenerateIngressHost(r wsv1alpha1.NetworkRule, name, namespace string, urlBase URLBase) string
- func RemoveNetworkOverrideByName(netRules []wsv1alpha1.NetworkRule, r wsv1alpha1.NetworkRule) []wsv1alpha1.NetworkRule
- func UpsertNetRule(netRules []wsv1alpha1.NetworkRule, r wsv1alpha1.NetworkRule) ([]wsv1alpha1.NetworkRule, error)
- type URLBase
- type URLVars
Constants ¶
View Source
const ( // common URLVarPortName = "{{PORT_NAME}}" URLVarPortNumber = "{{PORT_NUMBER}}" URLVarNetRuleGroup = "{{NETRULE_GROUP}}" URLVarInstanceName = "{{INSTANCE}}" URLVarWorkspaceName = "{{WORKSPACE}}" URLVarNamespace = "{{NAMESPACE}}" URLVarUserID = "{{USERID}}" // for network type LoadBalancer service URLVarLoadBalancer = "{{LOAD_BALANCER}}" // for network type NodePort service URLVarNodePortNumber = "{{NODEPORT_NUMBER}}" )
Variables ¶
This section is empty.
Functions ¶
func GenerateIngressHost ¶
func GenerateIngressHost(r wsv1alpha1.NetworkRule, name, namespace string, urlBase URLBase) string
func RemoveNetworkOverrideByName ¶
func RemoveNetworkOverrideByName(netRules []wsv1alpha1.NetworkRule, r wsv1alpha1.NetworkRule) []wsv1alpha1.NetworkRule
RemoveNetworkOverrideByName removes the ingress rule and service port from instance.spec.override.network.ingress.rules and service.ports.
func UpsertNetRule ¶
func UpsertNetRule(netRules []wsv1alpha1.NetworkRule, r wsv1alpha1.NetworkRule) ([]wsv1alpha1.NetworkRule, error)
UpsertNetRule update or insert network rule
Types ¶
type URLBase ¶
type URLBase string
e.g. http://localhost:{{PORT_NUMBER}} e.g. https://{{PORT_NAME}}-{{INSTANCE}}-{{NAMESPACE}}.domain
Click to show internal directories.
Click to hide internal directories.