|
@@ -15,6 +15,7 @@ const (
|
|
|
AWSAccessKeyIDEnvVar = "AWS_ACCESS_KEY_ID"
|
|
AWSAccessKeyIDEnvVar = "AWS_ACCESS_KEY_ID"
|
|
|
AWSAccessKeySecretEnvVar = "AWS_SECRET_ACCESS_KEY"
|
|
AWSAccessKeySecretEnvVar = "AWS_SECRET_ACCESS_KEY"
|
|
|
AWSClusterIDEnvVar = "AWS_CLUSTER_ID"
|
|
AWSClusterIDEnvVar = "AWS_CLUSTER_ID"
|
|
|
|
|
+ AWSPricingURL = "AWS_PRICING_URL"
|
|
|
|
|
|
|
|
KubecostNamespaceEnvVar = "KUBECOST_NAMESPACE"
|
|
KubecostNamespaceEnvVar = "KUBECOST_NAMESPACE"
|
|
|
PodNameEnvVar = "POD_NAME"
|
|
PodNameEnvVar = "POD_NAME"
|
|
@@ -206,6 +207,11 @@ func GetAWSClusterID() string {
|
|
|
return Get(AWSClusterIDEnvVar, "")
|
|
return Get(AWSClusterIDEnvVar, "")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// GetAWSPricingURL returns an optional alternative URL to fetch AWS pricing data from; for use in airgapped environments
|
|
|
|
|
+func GetAWSPricingURL() string {
|
|
|
|
|
+ return Get(AWSPricingURL, "")
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// GetKubecostNamespace returns the environment variable value for KubecostNamespaceEnvVar which
|
|
// GetKubecostNamespace returns the environment variable value for KubecostNamespaceEnvVar which
|
|
|
// represents the namespace the cost model exists in.
|
|
// represents the namespace the cost model exists in.
|
|
|
func GetKubecostNamespace() string {
|
|
func GetKubecostNamespace() string {
|