github.com/argoproj-labs/argocd-operator@v0.10.0/common/defaults.go (about)

     1  // Copyright 2020 ArgoCD Operator Developers
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  // 	http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package common
    16  
    17  const (
    18  	// ArgoCDApplicationControllerComponent is the name of the application controller control plane component
    19  	ArgoCDApplicationControllerComponent = "argocd-application-controller"
    20  
    21  	// ArgoCDApplicationControllerDefaultShardReplicas is the default number of replicas that the ArgoCD Application Controller Should Use
    22  	ArgocdApplicationControllerDefaultReplicas = 1
    23  
    24  	// ArgoCDDefaultLogLevel is the default log level to be used by all ArgoCD components.
    25  	ArgoCDDefaultLogLevel = "info"
    26  
    27  	// ArgoCDDefaultLogFormat is the default log format to be used by all ArgoCD components.
    28  	ArgoCDDefaultLogFormat = "text"
    29  
    30  	// ArgoCDServerComponent is the name of the Dex server control plane component
    31  	ArgoCDServerComponent = "argocd-server"
    32  
    33  	// ArgoCDRedisComponent is the name of the Redis control plane component
    34  	ArgoCDRedisComponent = "argocd-redis"
    35  
    36  	// ArgoCDRedisHAComponent is the name of the Redis HA control plane component
    37  	ArgoCDRedisHAComponent = "argocd-redis-ha"
    38  
    39  	// ArgoCDDexServerComponent is the name of the Dex server control plane component
    40  	ArgoCDDexServerComponent = "argocd-dex-server"
    41  
    42  	// ArgoCDNotificationsControllerComponent is the name of the Notifications controller control plane component
    43  	ArgoCDNotificationsControllerComponent = "argocd-notifications-controller"
    44  
    45  	// ArgoCDApplicationSetControllerComponent is the name of the ApplictionSet controller control plane component
    46  	ArgoCDApplicationSetControllerComponent = "argocd-applicationset-controller"
    47  
    48  	// ArgoCDOperatorGrafanaComponent is the name of the Grafana control plane component
    49  	ArgoCDOperatorGrafanaComponent = "argocd-grafana"
    50  
    51  	// ArgoCDDefaultAdminPasswordLength is the length of the generated default admin password.
    52  	ArgoCDDefaultAdminPasswordLength = 32
    53  
    54  	// ArgoCDDefaultAdminPasswordNumDigits is the number of digits to use for the generated default admin password.
    55  	ArgoCDDefaultAdminPasswordNumDigits = 5
    56  
    57  	// ArgoCDDefaultAdminPasswordNumSymbols is the number of symbols to use for the generated default admin password.
    58  	ArgoCDDefaultAdminPasswordNumSymbols = 0
    59  
    60  	// ArgoCDDefaultApplicationInstanceLabelKey is the default app name as a tracking label.
    61  	ArgoCDDefaultApplicationInstanceLabelKey = "app.kubernetes.io/instance"
    62  
    63  	// ArgoCDDefaultArgoImage is the ArgoCD container image to use when not specified.
    64  	ArgoCDDefaultArgoImage = "quay.io/argoproj/argocd"
    65  
    66  	// ArgoCDDefaultArgoVersion is the Argo CD container image digest to use when version not specified.
    67  	ArgoCDDefaultArgoVersion = "sha256:5f1de1b4d959868c1e006e08d46361c8f019d9730e74bc1feeab8c7b413f1187" // v2.10.1
    68  
    69  	// ArgoCDDefaultBackupKeyLength is the length of the generated default backup key.
    70  	ArgoCDDefaultBackupKeyLength = 32
    71  
    72  	// ArgoCDDefaultBackupKeyNumDigits is the number of digits to use for the generated default backup key.
    73  	ArgoCDDefaultBackupKeyNumDigits = 5
    74  
    75  	// ArgoCDDefaultBackupKeyNumSymbols is the number of symbols to use for the generated default backup key.
    76  	ArgoCDDefaultBackupKeyNumSymbols = 5
    77  
    78  	// ArgoCDDefaultConfigManagementPlugins is the default configuration value for the config management plugins.
    79  	ArgoCDDefaultConfigManagementPlugins = ""
    80  
    81  	// ArgoCDDefaultControllerResourceLimitCPU is the default CPU limit when not specified for the Argo CD application
    82  	// controller contianer.
    83  	ArgoCDDefaultControllerResourceLimitCPU = "1000m"
    84  
    85  	// ArgoCDDefaultControllerResourceLimitMemory is the default memory limit when not specified for the Argo CD
    86  	// application controller contianer.
    87  	ArgoCDDefaultControllerResourceLimitMemory = "64Mi"
    88  
    89  	// ArgoCDDefaultControllerResourceRequestCPU is the default CPU requested when not specified for the Argo CD
    90  	// application controller contianer.
    91  	ArgoCDDefaultControllerResourceRequestCPU = "250m"
    92  
    93  	// ArgoCDDefaultControllerResourceRequestMemory is the default memory requested when not specified for the Argo CD
    94  	// application controller contianer.
    95  	ArgoCDDefaultControllerResourceRequestMemory = "32Mi"
    96  
    97  	// ArgoCDDefaultDexConfig is the default dex configuration.
    98  	ArgoCDDefaultDexConfig = ""
    99  
   100  	// ArgoCDDefaultDexImage is the Dex container image to use when not specified.
   101  	ArgoCDDefaultDexImage = "ghcr.io/dexidp/dex"
   102  
   103  	// ArgoCDDefaultDexOAuthRedirectPath is the default path to use for the OAuth Redirect URI.
   104  	ArgoCDDefaultDexOAuthRedirectPath = "/api/dex/callback"
   105  
   106  	// ArgoCDDefaultDexGRPCPort is the default GRPC listen port for Dex.
   107  	ArgoCDDefaultDexGRPCPort = 5557
   108  
   109  	// ArgoCDDefaultDexHTTPPort is the default HTTP listen port for Dex.
   110  	ArgoCDDefaultDexHTTPPort = 5556
   111  
   112  	// ArgoCDDefaultDexMetricsPort is the default Metrics listen port for Dex.
   113  	ArgoCDDefaultDexMetricsPort = 5558
   114  
   115  	// ArgoCDDefaultDexServiceAccountName is the default Service Account name for the Dex server.
   116  	ArgoCDDefaultDexServiceAccountName = "argocd-dex-server"
   117  
   118  	// ArgoCDDefaultDexVersion is the Dex container image tag to use when not specified.
   119  	ArgoCDDefaultDexVersion = "sha256:d5f887574312f606c61e7e188cfb11ddb33ff3bf4bd9f06e6b1458efca75f604" // v2.30.3
   120  
   121  	// ArgoCDDefaultExportJobImage is the export job container image to use when not specified.
   122  	ArgoCDDefaultExportJobImage = "quay.io/argoprojlabs/argocd-operator-util"
   123  
   124  	// ArgoCDDefaultExportJobVersion is the export job container image tag to use when not specified.
   125  	ArgoCDDefaultExportJobVersion = "sha256:6f80965a2bef1c80875be0995b18d9be5a6ad4af841cbc170ed3c60101a7deb2" // 0.5.0
   126  
   127  	// ArgoCDDefaultExportLocalCapicity is the default capacity to use for local export.
   128  	ArgoCDDefaultExportLocalCapicity = "2Gi"
   129  
   130  	// ArgoCDDefaultGATrackingID is the default Google Analytics tracking ID.
   131  	ArgoCDDefaultGATrackingID = ""
   132  
   133  	// ArgoCDDefaultGAAnonymizeUsers is the default value for anonymizing google analytics users.
   134  	ArgoCDDefaultGAAnonymizeUsers = false
   135  
   136  	// ArgoCDDefaultHelpChatURL is the default help chat URL.
   137  	ArgoCDDefaultHelpChatURL = ""
   138  
   139  	// ArgoCDDefaultHelpChatText is the default help chat text.
   140  	ArgoCDDefaultHelpChatText = ""
   141  
   142  	// ArgoCDDefaultIngressPath is the path to use for the Ingress when not specified.
   143  	ArgoCDDefaultIngressPath = "/"
   144  
   145  	// ArgoCDDefaultKustomizeBuildOptions is the default kustomize build options.
   146  	ArgoCDDefaultKustomizeBuildOptions = ""
   147  
   148  	// ArgoCDKeycloakImage is the default Keycloak Image used for the non-openshift platforms when not specified.
   149  	ArgoCDKeycloakImage = "quay.io/keycloak/keycloak"
   150  
   151  	// ArgoCDDefaultLabelSelector is the default Label Selector which will reconcile all ArgoCD instances.
   152  	ArgoCDDefaultLabelSelector = ""
   153  
   154  	// ArgoCDKeycloakVersion is the default Keycloak version used for the non-openshift platform when not specified.
   155  	// Version: 15.0.2
   156  	ArgoCDKeycloakVersion = "sha256:64fb81886fde61dee55091e6033481fa5ccdac62ae30a4fd29b54eb5e97df6a9"
   157  
   158  	// ArgoCDKeycloakImageForOpenShift is the default Keycloak Image used for the OpenShift platform when not specified.
   159  	ArgoCDKeycloakImageForOpenShift = "registry.redhat.io/rh-sso-7/sso76-openshift-rhel8"
   160  
   161  	// ArgoCDKeycloakVersionForOpenShift is the default Keycloak version used for the OpenShift platform when not specified.
   162  	// Version: 7.6-32
   163  	ArgoCDKeycloakVersionForOpenShift = "sha256:ec9f60018694dcc5d431ba47d5536b761b71cb3f66684978fe6bb74c157679ac"
   164  
   165  	// ArgoCDDefaultOIDCConfig is the default OIDC configuration.
   166  	ArgoCDDefaultOIDCConfig = ""
   167  
   168  	// ArgoCDDefaultPrometheusReplicas is the default Prometheus replica count.
   169  	ArgoCDDefaultPrometheusReplicas = int32(1)
   170  
   171  	// ArgoCDDefaultRBACPolicy is the default RBAC policy CSV data.
   172  	ArgoCDDefaultRBACPolicy = ""
   173  
   174  	// ArgoCDDefaultRBACDefaultPolicy is the default Argo CD RBAC policy.
   175  	ArgoCDDefaultRBACDefaultPolicy = "role:readonly"
   176  
   177  	// ArgoCDDefaultRBACScopes is the default Argo CD RBAC scopes.
   178  	ArgoCDDefaultRBACScopes = "[groups]"
   179  
   180  	// ArgoCDDefaultRedisConfigPath is the default Redis configuration directory when not specified.
   181  	ArgoCDDefaultRedisConfigPath = "/var/lib/redis"
   182  
   183  	// ArgoCDDefaultRedisHAReplicas is the defaul number of replicas for Redis when rinning in HA mode.
   184  	ArgoCDDefaultRedisHAReplicas = int32(3)
   185  
   186  	// ArgoCDDefaultRedisHAProxyImage is the default Redis HAProxy image to use when not specified.
   187  	ArgoCDDefaultRedisHAProxyImage = "haproxy"
   188  
   189  	// ArgoCDDefaultRedisHAProxyVersion is the default Redis HAProxy image tag to use when not specified.
   190  	ArgoCDDefaultRedisHAProxyVersion = "sha256:7392fbbbb53e9e063ca94891da6656e6062f9d021c0e514888a91535b9f73231" // 2.0.25-alpine
   191  
   192  	// ArgoCDDefaultRedisImage is the Redis container image to use when not specified.
   193  	ArgoCDDefaultRedisImage = "redis"
   194  
   195  	// ArgoCDDefaultRedisPort is the default listen port for Redis.
   196  	ArgoCDDefaultRedisPort = 6379
   197  
   198  	// ArgoCDDefaultRedisSentinelPort is the default listen port for Redis sentinel.
   199  	ArgoCDDefaultRedisSentinelPort = 26379
   200  
   201  	//ArgoCDDefaultRedisSuffix is the default suffix to use for Redis resources.
   202  	ArgoCDDefaultRedisSuffix = "redis"
   203  
   204  	// ArgoCDDefaultRedisVersion is the Redis container image tag to use when not specified.
   205  	ArgoCDDefaultRedisVersion = "sha256:8061ca607db2a0c80010aeb5fc9bed0253448bc68711eaa14253a392f6c48280" // 6.2.4-alpine
   206  
   207  	// ArgoCDDefaultRedisVersionHA is the Redis container image tag to use when not specified in HA mode.
   208  	ArgoCDDefaultRedisVersionHA = "sha256:8061ca607db2a0c80010aeb5fc9bed0253448bc68711eaa14253a392f6c48280" // 6.2.4-alpine
   209  
   210  	// ArgoCDDefaultRepoMetricsPort is the default listen port for the Argo CD repo server metrics.
   211  	ArgoCDDefaultRepoMetricsPort = 8084
   212  
   213  	// ArgoCDDefaultRepoServerPort is the default listen port for the Argo CD repo server.
   214  	ArgoCDDefaultRepoServerPort = 8081
   215  
   216  	// ArgoCDDefaultRepositories is the default repositories.
   217  	ArgoCDDefaultRepositories = ""
   218  
   219  	// ArgoCDDefaultRepositoryCredentials is the default repository credentials
   220  	ArgoCDDefaultRepositoryCredentials = ""
   221  
   222  	// ArgoCDDefaultResourceExclusions is the default resource exclusions.
   223  	ArgoCDDefaultResourceExclusions = ""
   224  
   225  	// ArgoCDDefaultResourceInclusions is the default resource inclusions.
   226  	ArgoCDDefaultResourceInclusions = ""
   227  
   228  	// ArgoCDDefaultRSAKeySize is the default RSA key size when not specified.
   229  	ArgoCDDefaultRSAKeySize = 2048
   230  
   231  	// ArgoCDDefaultServerOperationProcessors is the number of ArgoCD Server Operation Processors to use when not specified.
   232  	ArgoCDDefaultServerOperationProcessors = int32(10)
   233  
   234  	// ArgoCDDefaultServerStatusProcessors is the number of ArgoCD Server Status Processors to use when not specified.
   235  	ArgoCDDefaultServerStatusProcessors = int32(20)
   236  
   237  	// ArgoCDDefaultControllerParellelismLimit is the default parallelism limit for application controller
   238  	ArgoCDDefaultControllerParallelismLimit = int32(10)
   239  
   240  	// ArgoCDDefaultServerResourceLimitCPU is the default CPU limit when not specified for the Argo CD server contianer.
   241  	ArgoCDDefaultServerResourceLimitCPU = "1000m"
   242  
   243  	// ArgoCDDefaultServerResourceLimitMemory is the default memory limit when not specified for the Argo CD server contianer.
   244  	ArgoCDDefaultServerResourceLimitMemory = "128Mi"
   245  
   246  	// ArgoCDDefaultServerResourceRequestCPU is the default CPU requested when not specified for the Argo CD server contianer.
   247  	ArgoCDDefaultServerResourceRequestCPU = "250m"
   248  
   249  	// ArgoCDDefaultServerResourceRequestMemory is the default memory requested when not specified for the Argo CD server contianer.
   250  	ArgoCDDefaultServerResourceRequestMemory = "64Mi"
   251  
   252  	// ArgoCDDefaultServerSessionKeyLength is the length of the generated default server signature key.
   253  	ArgoCDDefaultServerSessionKeyLength = 20
   254  
   255  	// ArgoCDDefaultServerSessionKeyNumDigits is the number of digits to use for the generated default server signature key.
   256  	ArgoCDDefaultServerSessionKeyNumDigits = 5
   257  
   258  	// ArgoCDDefaultServerSessionKeyNumSymbols is the number of symbols to use for the generated default server signature key.
   259  	ArgoCDDefaultServerSessionKeyNumSymbols = 0
   260  
   261  	// ArgoCDDefaultSSHKnownHosts is the default SSH Known hosts data.
   262  	ArgoCDDefaultSSHKnownHosts = `[ssh.github.com]:443 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
   263  [ssh.github.com]:443 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
   264  [ssh.github.com]:443 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR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bmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
   269  github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
   270  github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=
   271  gitlab.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSMqzJeV9rUzU4kWitGjeR4PWSa29SPqJ1fVkhtj3Hw9xjLVXVYrU9QlYWrOLXBpQ6KWjbjTDTdDkoohFzgbEY=
   272  gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf
   273  gitlab.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsj2bNKTBSpIY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mCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H
   276  `
   277  	// OperatorMetricsPort is the port that is used to expose default controller-runtime metrics for the operator pod.
   278  	OperatorMetricsPort = 8080
   279  
   280  	// NotificationsControllerMetricsPort is the port that is used to expose notifications controller metrics.
   281  	NotificationsControllerMetricsPort = 9001
   282  )
   283  
   284  // DefaultLabels returns the default set of labels for controllers.
   285  func DefaultLabels(name string) map[string]string {
   286  	return map[string]string{
   287  		ArgoCDKeyName:      name,
   288  		ArgoCDKeyPartOf:    ArgoCDAppName,
   289  		ArgoCDKeyManagedBy: name,
   290  	}
   291  }
   292  
   293  // DefaultAnnotations returns the default set of annotations for child resources of ArgoCD
   294  func DefaultAnnotations(name string, namespace string) map[string]string {
   295  	return map[string]string{
   296  		AnnotationName:      name,
   297  		AnnotationNamespace: namespace,
   298  	}
   299  }
   300  
   301  // DefaultNodeSelector returns the defult nodeSelector for ArgoCD workloads
   302  func DefaultNodeSelector() map[string]string {
   303  	return map[string]string{
   304  		"kubernetes.io/os": "linux",
   305  	}
   306  }