Versions in this module Expand all Collapse all v1 v1.5.1 Jul 3, 2019 v1.5.0 May 16, 2019 Changes in this version + const DefaultServerSecretName + const JWTKeyAnnotation + const JWTKeyKey + const WildcardSecretName + func GenerateCertAndKeyFileContent(secret *api_v1.Secret) []byte + func GenerateEndpointsKey(serviceNamespace string, serviceName string, port uint16) string + func GenerateNginxMainConfig(staticCfgParams *StaticConfigParams, config *ConfigParams) *version1.MainConfig + func GetMapKeyAsBool(m map[string]string, key string, context apiObject) (bool, bool, error) + func GetMapKeyAsInt(m map[string]string, key string, context apiObject) (int, bool, error) + func GetMapKeyAsInt64(m map[string]string, key string, context apiObject) (int64, bool, error) + func GetMapKeyAsStringSlice(m map[string]string, key string, context apiObject, delimiter string) ([]string, bool, error) + func GetMapKeyAsUint64(m map[string]string, key string, context apiObject, nonZero bool) (uint64, bool, error) + func ParseLBMethod(method string) (string, error) + func ParseLBMethodForPlus(method string) (string, error) + type ConfigParams struct + ClientMaxBodySize string + FailTimeout string + HSTS bool + HSTSBehindProxy bool + HSTSIncludeSubdomains bool + HSTSMaxAge int64 + HTTP2 bool + HealthCheckEnabled bool + HealthCheckMandatory bool + HealthCheckMandatoryQueue int64 + IngressTemplate *string + JWTKey string + JWTLoginURL string + JWTRealm string + JWTToken string + Keepalive int64 + LBMethod string + LocationSnippets []string + MainAccessLogOff bool + MainErrorLogLevel string + MainHTTPSnippets []string + MainKeepaliveRequests int64 + MainKeepaliveTimeout string + MainLogFormat string + MainMainSnippets []string + MainServerNamesHashBucketSize string + MainServerNamesHashMaxSize string + MainServerSSLCiphers string + MainServerSSLDHParam string + MainServerSSLDHParamFileContent *string + MainServerSSLPreferServerCiphers bool + MainServerSSLProtocols string + MainStreamLogFormat string + MainStreamSnippets []string + MainTemplate *string + MainWorkerCPUAffinity string + MainWorkerConnections string + MainWorkerProcesses string + MainWorkerRlimitNofile string + MainWorkerShutdownTimeout string + MaxFails int + Ports []int + ProxyBufferSize string + ProxyBuffering bool + ProxyBuffers string + ProxyConnectTimeout string + ProxyHideHeaders []string + ProxyMaxTempFileSize string + ProxyPassHeaders []string + ProxyProtocol bool + ProxyReadTimeout string + RealIPHeader string + RealIPRecursive bool + RedirectToHTTPS bool + ResolverAddresses []string + ResolverIPV6 bool + ResolverTimeout string + ResolverValid string + SSLPorts []int + SSLRedirect bool + ServerSnippets []string + ServerTokens string + SetRealIPFrom []string + SlowStart string + VariablesHashBucketSize uint64 + VariablesHashMaxSize uint64 + func NewDefaultConfigParams() *ConfigParams + func ParseConfigMap(cfgm *v1.ConfigMap, nginxPlus bool) *ConfigParams + type Configurator struct + func NewConfigurator(nginxManager nginx.Manager, staticCfgParams *StaticConfigParams, ...) *Configurator + func (cnf *Configurator) AddOrUpdateDHParam(content string) (string, error) + func (cnf *Configurator) AddOrUpdateIngress(ingEx *IngressEx) error + func (cnf *Configurator) AddOrUpdateJWKSecret(secret *api_v1.Secret) + func (cnf *Configurator) AddOrUpdateMergeableIngress(mergeableIngs *MergeableIngresses) error + func (cnf *Configurator) AddOrUpdateSpecialTLSSecrets(secret *api_v1.Secret, secretNames []string) error + func (cnf *Configurator) AddOrUpdateTLSSecret(secret *api_v1.Secret, ingExes []IngressEx, ...) error + func (cnf *Configurator) AddOrUpdateVirtualServer(virtualServerEx *VirtualServerEx) error + func (cnf *Configurator) DeleteIngress(key string) error + func (cnf *Configurator) DeleteSecret(key string, ingExes []IngressEx, mergeableIngresses []MergeableIngresses, ...) error + func (cnf *Configurator) DeleteVirtualServer(key string) error + func (cnf *Configurator) GetIngressCounts() map[string]int + func (cnf *Configurator) HasIngress(ing *extensions.Ingress) bool + func (cnf *Configurator) HasMinion(master *extensions.Ingress, minion *extensions.Ingress) bool + func (cnf *Configurator) IsResolverConfigured() bool + func (cnf *Configurator) UpdateConfig(cfgParams *ConfigParams, ingExes []*IngressEx, ...) error + func (cnf *Configurator) UpdateEndpoints(ingExes []*IngressEx) error + func (cnf *Configurator) UpdateEndpointsForVirtualServers(virtualServerExes []*VirtualServerEx) error + func (cnf *Configurator) UpdateEndpointsMergeableIngress(mergeableIngresses []*MergeableIngresses) error + type IngressEx struct + Endpoints map[string][]string + ExternalNameSvcs map[string]bool + HealthChecks map[string]*api_v1.Probe + Ingress *extensions.Ingress + JWTKey JWTKey + TLSSecrets map[string]*api_v1.Secret + func (ingEx *IngressEx) String() string + type JWTKey struct + Name string + Secret *api_v1.Secret + type MergeableIngresses struct + Master *IngressEx + Minions []*IngressEx + type StaticConfigParams struct + HealthStatus bool + NginxStatus bool + NginxStatusAllowCIDRs []string + NginxStatusPort int + StubStatusOverUnixSocketForOSS bool + type VirtualServerEx struct + Endpoints map[string][]string + TLSSecret *api_v1.Secret + VirtualServer *conf_v1alpha1.VirtualServer + VirtualServerRoutes []*conf_v1alpha1.VirtualServerRoute + func (vsx *VirtualServerEx) String() string