github.com/verrazzano/verrazzano-monitoring-operator@v0.0.30/pkg/config/constants.go (about)

     1  // Copyright (C) 2020, 2022, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  package config
     5  
     6  // OperatorConfig type for operator configuration
     7  type OperatorConfig struct {
     8  	EnvName                        string   `yaml:"envName"`
     9  	DefaultIngressTargetDNSName    string   `yaml:"defaultIngressTargetDNSName,omitempty"`
    10  	DefaultSimpleComponentReplicas *int     `yaml:"defaultSimpleCompReplicas"`
    11  	MetricsPort                    *int     `yaml:"metricsPort"`
    12  	NatGatewayIPs                  []string `yaml:"natGatewayIPs"`
    13  	Pvcs                           Pvcs     `yaml:"pvcs"`
    14  }
    15  
    16  // Pvcs type for storage
    17  type Pvcs struct {
    18  	StorageClass   string `yaml:"storageClass"`
    19  	ZoneMatchLabel string `yaml:"zoneMatchLabel"`
    20  }
    21  
    22  // DefaultOperatorConfigmapName config map name for operator
    23  const DefaultOperatorConfigmapName = "verrazzano-monitoring-operator-config"
    24  
    25  const configKeyValue = "config"
    26  const defaultSimpleComponentReplicas = 1
    27  const defaultMetricsPort = 8090