forked from minio/operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsts.go
65 lines (57 loc) · 3 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// This file is part of MinIO Operator
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package api
// list of all console environment constants
const (
OperatorSAToken = "OPERATOR_SA_TOKEN"
Marketplace = "OPERATOR_MARKETPLACE"
globalAppName = "MinIO Operator"
// Constants for prometheus annotations
prometheusPath = "prometheus.io/path"
prometheusScrape = "prometheus.io/scrape"
// Image versions
KESImageVersion = "minio/kes:2024-03-01T18-06-46Z"
// Constants for common configuration
MinioImage = "OPERATOR_MINIO_IMAGE"
OperatorUIHostname = "OPERATOR_HOSTNAME"
OperatorUIPort = "OPERATOR_PORT"
OperatorUITLSPort = "OPERATOR_TLS_PORT"
// K8sAPIServer address of the K8s API
K8sAPIServer = "OPERATOR_K8S_API_SERVER"
// K8SAPIServerTLSRootCA location of the root CA
K8SAPIServerTLSRootCA = "OPERATOR_K8S_API_SERVER_TLS_ROOT_CA"
// Constants for Secure middleware
SecureAllowedHosts = "OPERATOR_SECURE_ALLOWED_HOSTS"
SecureAllowedHostsAreRegex = "OPERATOR_SECURE_ALLOWED_HOSTS_ARE_REGEX"
SecureFrameDeny = "OPERATOR_SECURE_FRAME_DENY"
SecureContentTypeNoSniff = "OPERATOR_SECURE_CONTENT_TYPE_NO_SNIFF"
SecureBrowserXSSFilter = "OPERATOR_SECURE_BROWSER_XSS_FILTER"
SecureContentSecurityPolicy = "OPERATOR_SECURE_CONTENT_SECURITY_POLICY"
SecureContentSecurityPolicyReportOnly = "OPERATOR_SECURE_CONTENT_SECURITY_POLICY_REPORT_ONLY"
SecureHostsProxyHeaders = "OPERATOR_SECURE_HOSTS_PROXY_HEADERS"
SecureSTSSeconds = "OPERATOR_SECURE_STS_SECONDS"
SecureSTSIncludeSubdomains = "OPERATOR_SECURE_STS_INCLUDE_SUB_DOMAINS"
SecureSTSPreload = "OPERATOR_SECURE_STS_PRELOAD"
SecureTLSRedirect = "OPERATOR_SECURE_TLS_REDIRECT"
SecureTLSHost = "OPERATOR_SECURE_TLS_HOST"
SecureTLSTemporaryRedirect = "OPERATOR_SECURE_TLS_TEMPORARY_REDIRECT"
SecureForceSTSHeader = "OPERATOR_SECURE_FORCE_STS_HEADER"
SecurePublicKey = "OPERATOR_SECURE_PUBLIC_KEY"
SecureReferrerPolicy = "OPERATOR_SECURE_REFERRER_POLICY"
SecureFeaturePolicy = "OPERATOR_SECURE_FEATURE_POLICY"
SecureExpectCTHeader = "OPERATOR_SECURE_EXPECT_CT_HEADER"
SlashSeparator = "/"
)