Kaynağa Gözat

Renamed Kubecost Github reference to OpenCost

Thomas Evans 3 yıl önce
ebeveyn
işleme
c7706a4fb2
100 değiştirilmiş dosya ile 298 ekleme ve 295 silme
  1. 1 1
      .github/PULL_REQUEST_TEMPLATE.md
  2. 3 3
      CONTRIBUTING.md
  3. 2 2
      Dockerfile
  4. 2 2
      README.md
  5. 2 2
      cmd/costmodel/main.go
  6. 1 1
      deploying-as-a-pod.md
  7. 1 1
      go.mod
  8. 9 9
      pkg/cloud/awsprovider.go
  9. 7 7
      pkg/cloud/azureprovider.go
  10. 3 3
      pkg/cloud/csvprovider.go
  11. 3 3
      pkg/cloud/customprovider.go
  12. 9 9
      pkg/cloud/gcpprovider.go
  13. 7 7
      pkg/cloud/provider.go
  14. 4 4
      pkg/cloud/providerconfig.go
  15. 2 2
      pkg/clustercache/clustercache.go
  16. 4 4
      pkg/clustercache/clusterexporter.go
  17. 3 3
      pkg/clustercache/clusterimporter.go
  18. 1 1
      pkg/clustercache/watchcontroller.go
  19. 12 12
      pkg/cmd/agent/agent.go
  20. 3 3
      pkg/cmd/commands.go
  21. 5 5
      pkg/cmd/costmodel/costmodel.go
  22. 3 3
      pkg/config/configfile.go
  23. 2 2
      pkg/config/configmanager.go
  24. 11 11
      pkg/costmodel/aggregation.go
  25. 1 1
      pkg/costmodel/aggregation_test.go
  26. 6 6
      pkg/costmodel/allocation.go
  27. 6 6
      pkg/costmodel/cluster.go
  28. 4 4
      pkg/costmodel/cluster_helpers.go
  29. 4 4
      pkg/costmodel/cluster_helpers_test.go
  30. 7 7
      pkg/costmodel/clusterinfo.go
  31. 6 5
      pkg/costmodel/clusters/clustermap.go
  32. 2 2
      pkg/costmodel/containerkeys.go
  33. 8 8
      pkg/costmodel/costmodel.go
  34. 1 1
      pkg/costmodel/intervals.go
  35. 1 1
      pkg/costmodel/intervals_test.go
  36. 2 2
      pkg/costmodel/key.go
  37. 11 11
      pkg/costmodel/metrics.go
  38. 5 5
      pkg/costmodel/networkcosts.go
  39. 6 6
      pkg/costmodel/promparsers.go
  40. 18 18
      pkg/costmodel/router.go
  41. 2 2
      pkg/costmodel/settings.go
  42. 5 5
      pkg/costmodel/sql.go
  43. 2 2
      pkg/env/costmodelenv.go
  44. 1 1
      pkg/env/env.go
  45. 3 3
      pkg/kubecost/allocation.go
  46. 2 2
      pkg/kubecost/allocation_test.go
  47. 1 1
      pkg/kubecost/allocationfilter.go
  48. 2 2
      pkg/kubecost/allocationprops.go
  49. 2 2
      pkg/kubecost/asset.go
  50. 1 1
      pkg/kubecost/asset_test.go
  51. 1 1
      pkg/kubecost/asset_unmarshal.go
  52. 1 1
      pkg/kubecost/asset_unmarshal_test.go
  53. 1 1
      pkg/kubecost/bingen.go
  54. 2 2
      pkg/kubecost/config.go
  55. 1 1
      pkg/kubecost/config_test.go
  56. 2 1
      pkg/kubecost/etlrange.go
  57. 1 1
      pkg/kubecost/json.go
  58. 2 1
      pkg/kubecost/kubecost_codecs.go
  59. 1 1
      pkg/kubecost/summaryallocation.go
  60. 1 1
      pkg/kubecost/summaryallocation_test.go
  61. 1 1
      pkg/kubecost/totals.go
  62. 3 3
      pkg/kubecost/window.go
  63. 1 1
      pkg/kubecost/window_test.go
  64. 2 2
      pkg/metrics/deploymentmetrics.go
  65. 1 1
      pkg/metrics/jobmetrics.go
  66. 2 2
      pkg/metrics/kubemetrics.go
  67. 2 2
      pkg/metrics/metricsconfig.go
  68. 2 2
      pkg/metrics/namespacemetrics.go
  69. 3 3
      pkg/metrics/nodemetrics.go
  70. 2 2
      pkg/metrics/podlabelmetrics.go
  71. 3 3
      pkg/metrics/podmetrics.go
  72. 1 1
      pkg/metrics/pvcmetrics.go
  73. 1 1
      pkg/metrics/pvmetrics.go
  74. 2 2
      pkg/metrics/servicemetrics.go
  75. 2 2
      pkg/metrics/statefulsetmetrics.go
  76. 2 2
      pkg/prom/diagnostics.go
  77. 1 1
      pkg/prom/error.go
  78. 1 1
      pkg/prom/metrics.go
  79. 5 5
      pkg/prom/prom.go
  80. 6 6
      pkg/prom/query.go
  81. 2 2
      pkg/prom/ratelimitedclient_test.go
  82. 2 2
      pkg/prom/result.go
  83. 1 1
      pkg/prom/validate.go
  84. 3 3
      pkg/services/clusters/clustermanager.go
  85. 2 2
      pkg/services/clusters/clustersendpoints.go
  86. 2 2
      pkg/services/clusterservice.go
  87. 1 1
      pkg/services/services.go
  88. 1 1
      pkg/storage/azurestorage.go
  89. 1 1
      pkg/storage/filestorage.go
  90. 1 1
      pkg/storage/gcsstorage.go
  91. 1 1
      pkg/storage/s3storage.go
  92. 1 1
      pkg/storage/storagetypes.go
  93. 1 1
      pkg/storage/storagetypes_test.go
  94. 2 2
      pkg/thanos/thanos.go
  95. 5 5
      pkg/util/allocationfilterutil/queryfilters.go
  96. 3 3
      pkg/util/allocationfilterutil/queryfilters_test.go
  97. 1 1
      pkg/util/allocationfilterutil/v2/lexer.go
  98. 1 1
      pkg/util/allocationfilterutil/v2/parser.go
  99. 1 1
      pkg/util/allocationfilterutil/v2/parser_test.go
  100. 1 1
      pkg/util/atomic/example_intervalrunner_test.go

+ 1 - 1
.github/PULL_REQUEST_TEMPLATE.md

@@ -16,5 +16,5 @@
 ## Does this PR require changes to documentation?
 ## Does this PR require changes to documentation?
 * 
 * 
 
 
-## Have you labeled this PR and its corresponding Issue as "next release" if it should be part of the next Kubecost release? If not, why not?
+## Have you labeled this PR and its corresponding Issue as "next release" if it should be part of the next Opencost release? If not, why not?
 * 
 * 

+ 3 - 3
CONTRIBUTING.md

@@ -2,7 +2,7 @@
 
 
 Thanks for your help improving the OpenCost project! There are many ways to contribute to the project, including the following:
 Thanks for your help improving the OpenCost project! There are many ways to contribute to the project, including the following:
 
 
-* contributing or providing feedback on the [OpenCost Spec](https://github.com/kubecost/opencost/tree/develop/spec)
+* contributing or providing feedback on the [OpenCost Spec](https://github.com/opencost/opencost/tree/develop/spec)
 * contributing documentation 
 * contributing documentation 
 * joining the discussion on Slack or in [OpenCost community discussions](https://drive.google.com/drive/folders/1hXlcyFPePB7t3z6lyVzdxmdfrbzeT1Jz)
 * joining the discussion on Slack or in [OpenCost community discussions](https://drive.google.com/drive/folders/1hXlcyFPePB7t3z6lyVzdxmdfrbzeT1Jz)
 * committing software via the workflow below
 * committing software via the workflow below
@@ -25,8 +25,8 @@ This repository's contribution workflow follows a typical open-source model:
 Follow these steps to build from source and deploy:
 Follow these steps to build from source and deploy:
 
 
 1. `docker build --rm -f "Dockerfile" -t <repo>/kubecost-cost-model:<tag> .`
 1. `docker build --rm -f "Dockerfile" -t <repo>/kubecost-cost-model:<tag> .`
-2. Edit the [pulled image](https://github.com/kubecost/opencost/blob/master/kubernetes/deployment.yaml#L25) in the deployment.yaml to <repo>/kubecost-cost-model:<tag>
-3. Set [this environment variable](https://github.com/kubecost/opencost/blob/master/kubernetes/deployment.yaml#L33) to the address of your prometheus server
+2. Edit the [pulled image](https://github.com/opencost/opencost/blob/master/kubernetes/deployment.yaml#L25) in the deployment.yaml to <repo>/kubecost-cost-model:<tag>
+3. Set [this environment variable](https://github.com/opencost/opencost/blob/master/kubernetes/deployment.yaml#L33) to the address of your prometheus server
 4. `kubectl create namespace cost-model`
 4. `kubectl create namespace cost-model`
 5. `kubectl apply -f kubernetes/ --namespace cost-model`
 5. `kubectl apply -f kubernetes/ --namespace cost-model`
 6. `kubectl port-forward --namespace cost-model service/cost-model 9003`
 6. `kubectl port-forward --namespace cost-model service/cost-model 9003`

+ 2 - 2
Dockerfile

@@ -26,8 +26,8 @@ RUN set -e ;\
     GOOS=linux \
     GOOS=linux \
     go build -a -installsuffix cgo \
     go build -a -installsuffix cgo \
     -ldflags \
     -ldflags \
-    "-X github.com/kubecost/opencost/pkg/version.Version=${version} \
-     -X github.com/kubecost/opencost/pkg/version.GitCommit=${commit}" \
+    "-X github.com/opencost/opencost/pkg/version.Version=${version} \
+    -X github.com/opencost/opencost/pkg/version.GitCommit=${commit}" \
     -o /go/bin/app
     -o /go/bin/app
 
 
 FROM alpine:latest
 FROM alpine:latest

+ 2 - 2
README.md

@@ -4,7 +4,7 @@
 
 
 OpenCost models give teams visibility into current and historical Kubernetes spend and resource allocation. These models provide cost transparency in Kubernetes environments that support multiple applications, teams, departments, etc.
 OpenCost models give teams visibility into current and historical Kubernetes spend and resource allocation. These models provide cost transparency in Kubernetes environments that support multiple applications, teams, departments, etc.
 
 
-OpenCost was originally developed and [open sourced](https://github.com/kubecost/opencost/issues/1224) by [Kubecost](https://kubecost.com). This project combines a [specification](/spec/) as well as a Golang implementation of these detailed requirements.
+OpenCost was originally developed and [open sourced](https://github.com/opencost/opencost/issues/1224) by [Kubecost](https://kubecost.com). This project combines a [specification](/spec/) as well as a Golang implementation of these detailed requirements.
 
 
 ![OpenCost allocation UI](/allocation-drilldown.gif)
 ![OpenCost allocation UI](/allocation-drilldown.gif)
 
 
@@ -66,7 +66,7 @@ Resources are allocated based on the time-weighted maximum of resource Requests
 
 
 ### _How do I set my AWS Spot estimates for cost allocation?_
 ### _How do I set my AWS Spot estimates for cost allocation?_
 
 
-Modify [spotCPU](https://github.com/kubecost/opencost/blob/master/configs/default.json#L5) and [spotRAM](https://github.com/kubecost/opencost/blob/master/configs/default.json#L7) in default.json to the level of recent market prices. Allocation will use these prices, but it does not take into account what you are actually charged by AWS. Alternatively, you can provide an AWS key to allow access to the Spot data feed. This will provide accurate Spot price reconciliation.
+Modify [spotCPU](https://github.com/opencost/opencost/blob/master/configs/default.json#L5) and [spotRAM](https://github.com/opencost/opencost/blob/master/configs/default.json#L7) in default.json to the level of recent market prices. Allocation will use these prices, but it does not take into account what you are actually charged by AWS. Alternatively, you can provide an AWS key to allow access to the Spot data feed. This will provide accurate Spot price reconciliation.
 
 
 ### _Do I need a GCP billing API key?_
 ### _Do I need a GCP billing API key?_
 
 

+ 2 - 2
cmd/costmodel/main.go

@@ -1,13 +1,13 @@
 package main
 package main
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/cmd"
+	"github.com/opencost/opencost/pkg/cmd"
 	"github.com/rs/zerolog/log"
 	"github.com/rs/zerolog/log"
 )
 )
 
 
 func main() {
 func main() {
 	// runs the appropriate application mode using the default cost-model command
 	// runs the appropriate application mode using the default cost-model command
-	// see: github.com/kubecost/opencost/pkg/cmd package for details
+	// see: github.com/opencost/opencost/pkg/cmd package for details
 	if err := cmd.Execute(nil); err != nil {
 	if err := cmd.Execute(nil); err != nil {
 		log.Fatal().Err(err)
 		log.Fatal().Err(err)
 	}
 	}

+ 1 - 1
deploying-as-a-pod.md

@@ -4,7 +4,7 @@ See this page for all [Kubecost install options](http://docs.kubecost.com/instal
 
 
 If you would like to deploy the cost model (w/o dashboards) directly a pod on your cluster, complete the steps listed below.
 If you would like to deploy the cost model (w/o dashboards) directly a pod on your cluster, complete the steps listed below.
 
 
-1. Set [this environment variable](https://github.com/kubecost/opencost/blob/c211fbc1244a9da9667c7180a9e4c7f988d7978a/kubernetes/deployment.yaml#L33) to the address of your prometheus server
+1. Set [this environment variable](https://github.com/opencost/opencost/blob/c211fbc1244a9da9667c7180a9e4c7f988d7978a/kubernetes/deployment.yaml#L33) to the address of your prometheus server
 2. `kubectl create namespace cost-model`
 2. `kubectl create namespace cost-model`
 3. `kubectl apply -f kubernetes/ --namespace cost-model`
 3. `kubectl apply -f kubernetes/ --namespace cost-model`
 4. `kubectl port-forward --namespace cost-model service/cost-model 9003`
 4. `kubectl port-forward --namespace cost-model service/cost-model 9003`

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module github.com/kubecost/opencost
+module github.com/opencost/opencost
 
 
 replace github.com/golang/lint => golang.org/x/lint v0.0.0-20180702182130-06c8688daad7
 replace github.com/golang/lint => golang.org/x/lint v0.0.0-20180702182130-06c8688daad7
 
 

+ 9 - 9
pkg/cloud/awsprovider.go

@@ -15,15 +15,15 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/kubecost"
-
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/errors"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/fileutil"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/kubecost"
+
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/errors"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/fileutil"
+	"github.com/opencost/opencost/pkg/util/json"
 
 
 	awsSDK "github.com/aws/aws-sdk-go-v2/aws"
 	awsSDK "github.com/aws/aws-sdk-go-v2/aws"
 	"github.com/aws/aws-sdk-go-v2/config"
 	"github.com/aws/aws-sdk-go-v2/config"

+ 7 - 7
pkg/cloud/azureprovider.go

@@ -13,12 +13,12 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/fileutil"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/fileutil"
+	"github.com/opencost/opencost/pkg/util/json"
 
 
 	"github.com/Azure/azure-sdk-for-go/services/preview/commerce/mgmt/2015-06-01-preview/commerce"
 	"github.com/Azure/azure-sdk-for-go/services/preview/commerce/mgmt/2015-06-01-preview/commerce"
 	"github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions"
 	"github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-06-01/subscriptions"
@@ -910,7 +910,7 @@ func (az *Azure) DownloadPricingData() error {
 
 
 	// There is no easy way of supporting Standard Azure-File, because it's billed per used GB
 	// There is no easy way of supporting Standard Azure-File, because it's billed per used GB
 	// this will set the price to "0" as a workaround to not spam with `Persistent Volume pricing not found for` error
 	// this will set the price to "0" as a workaround to not spam with `Persistent Volume pricing not found for` error
-	// check https://github.com/kubecost/opencost/issues/159 for more information (same problem on AWS)
+	// check https://github.com/opencost/opencost/issues/159 for more information (same problem on AWS)
 	zeroPrice := "0.0"
 	zeroPrice := "0.0"
 	for region := range regions {
 	for region := range regions {
 		key := region + "," + AzureFileStandardStorageClass
 		key := region + "," + AzureFileStandardStorageClass

+ 3 - 3
pkg/cloud/csvprovider.go

@@ -10,13 +10,13 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/util"
 
 
 	"github.com/aws/aws-sdk-go/aws"
 	"github.com/aws/aws-sdk-go/aws"
 	"github.com/aws/aws-sdk-go/aws/session"
 	"github.com/aws/aws-sdk-go/aws/session"
 	"github.com/aws/aws-sdk-go/service/s3"
 	"github.com/aws/aws-sdk-go/service/s3"
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"
 
 
 	"github.com/jszwec/csvutil"
 	"github.com/jszwec/csvutil"

+ 3 - 3
pkg/cloud/customprovider.go

@@ -8,9 +8,9 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/util/json"
 
 
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"
 )
 )

+ 9 - 9
pkg/cloud/gcpprovider.go

@@ -13,15 +13,15 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/kubecost"
-
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/fileutil"
-	"github.com/kubecost/opencost/pkg/util/json"
-	"github.com/kubecost/opencost/pkg/util/timeutil"
+	"github.com/opencost/opencost/pkg/kubecost"
+
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/fileutil"
+	"github.com/opencost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/util/timeutil"
 	"github.com/rs/zerolog"
 	"github.com/rs/zerolog"
 
 
 	"cloud.google.com/go/bigquery"
 	"cloud.google.com/go/bigquery"

+ 7 - 7
pkg/cloud/provider.go

@@ -11,17 +11,17 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/kubecost"
 
 
-	"github.com/kubecost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util"
 
 
 	"cloud.google.com/go/compute/metadata"
 	"cloud.google.com/go/compute/metadata"
 
 
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/config"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/watcher"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/config"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/watcher"
 
 
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"
 )
 )

+ 4 - 4
pkg/cloud/providerconfig.go

@@ -8,11 +8,11 @@ import (
 	"strings"
 	"strings"
 	"sync"
 	"sync"
 
 
-	"github.com/kubecost/opencost/pkg/config"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/json"
 	"github.com/microcosm-cc/bluemonday"
 	"github.com/microcosm-cc/bluemonday"
+	"github.com/opencost/opencost/pkg/config"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 var sanitizePolicy = bluemonday.UGCPolicy()
 var sanitizePolicy = bluemonday.UGCPolicy()

+ 2 - 2
pkg/clustercache/clustercache.go

@@ -3,8 +3,8 @@ package clustercache
 import (
 import (
 	"sync"
 	"sync"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
 
 
 	appsv1 "k8s.io/api/apps/v1"
 	appsv1 "k8s.io/api/apps/v1"
 	autoscaling "k8s.io/api/autoscaling/v2beta1"
 	autoscaling "k8s.io/api/autoscaling/v2beta1"

+ 4 - 4
pkg/clustercache/clusterexporter.go

@@ -3,10 +3,10 @@ package clustercache
 import (
 import (
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/config"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/atomic"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/config"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/atomic"
+	"github.com/opencost/opencost/pkg/util/json"
 
 
 	appsv1 "k8s.io/api/apps/v1"
 	appsv1 "k8s.io/api/apps/v1"
 	autoscaling "k8s.io/api/autoscaling/v2beta1"
 	autoscaling "k8s.io/api/autoscaling/v2beta1"

+ 3 - 3
pkg/clustercache/clusterimporter.go

@@ -3,9 +3,9 @@ package clustercache
 import (
 import (
 	"sync"
 	"sync"
 
 
-	"github.com/kubecost/opencost/pkg/config"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/config"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/json"
 	appsv1 "k8s.io/api/apps/v1"
 	appsv1 "k8s.io/api/apps/v1"
 	autoscaling "k8s.io/api/autoscaling/v2beta1"
 	autoscaling "k8s.io/api/autoscaling/v2beta1"
 	batchv1 "k8s.io/api/batch/v1"
 	batchv1 "k8s.io/api/batch/v1"

+ 1 - 1
pkg/clustercache/watchcontroller.go

@@ -5,7 +5,7 @@ import (
 	"reflect"
 	"reflect"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 
 
 	"k8s.io/apimachinery/pkg/fields"
 	"k8s.io/apimachinery/pkg/fields"
 	rt "k8s.io/apimachinery/pkg/runtime"
 	rt "k8s.io/apimachinery/pkg/runtime"

+ 12 - 12
pkg/cmd/agent/agent.go

@@ -7,18 +7,18 @@ import (
 	"path"
 	"path"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/config"
-	"github.com/kubecost/opencost/pkg/costmodel"
-	"github.com/kubecost/opencost/pkg/costmodel/clusters"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/kubeconfig"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/metrics"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/util/watcher"
-	"github.com/kubecost/opencost/pkg/version"
+	"github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/config"
+	"github.com/opencost/opencost/pkg/costmodel"
+	"github.com/opencost/opencost/pkg/costmodel/clusters"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/kubeconfig"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/metrics"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/util/watcher"
+	"github.com/opencost/opencost/pkg/version"
 
 
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheusAPI "github.com/prometheus/client_golang/api/prometheus/v1"
 	prometheusAPI "github.com/prometheus/client_golang/api/prometheus/v1"

+ 3 - 3
pkg/cmd/commands.go

@@ -5,9 +5,9 @@ import (
 	"os"
 	"os"
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/cmd/agent"
-	"github.com/kubecost/opencost/pkg/cmd/costmodel"
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/cmd/agent"
+	"github.com/opencost/opencost/pkg/cmd/costmodel"
+	"github.com/opencost/opencost/pkg/log"
 	"github.com/spf13/cobra"
 	"github.com/spf13/cobra"
 	"github.com/spf13/viper"
 	"github.com/spf13/viper"
 )
 )

+ 5 - 5
pkg/cmd/costmodel/costmodel.go

@@ -4,11 +4,11 @@ import (
 	"net/http"
 	"net/http"
 
 
 	"github.com/julienschmidt/httprouter"
 	"github.com/julienschmidt/httprouter"
-	"github.com/kubecost/opencost/pkg/costmodel"
-	"github.com/kubecost/opencost/pkg/errors"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/metrics"
-	"github.com/kubecost/opencost/pkg/version"
+	"github.com/opencost/opencost/pkg/costmodel"
+	"github.com/opencost/opencost/pkg/errors"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/metrics"
+	"github.com/opencost/opencost/pkg/version"
 	"github.com/prometheus/client_golang/prometheus/promhttp"
 	"github.com/prometheus/client_golang/prometheus/promhttp"
 	"github.com/rs/cors"
 	"github.com/rs/cors"
 )
 )

+ 3 - 3
pkg/config/configfile.go

@@ -8,9 +8,9 @@ import (
 	"time"
 	"time"
 
 
 	"github.com/google/uuid"
 	"github.com/google/uuid"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/storage"
-	"github.com/kubecost/opencost/pkg/util/atomic"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/storage"
+	"github.com/opencost/opencost/pkg/util/atomic"
 )
 )
 
 
 // HandlerID is a unique identifier assigned to a provided ConfigChangedHandler. This is used to remove a handler
 // HandlerID is a unique identifier assigned to a provided ConfigChangedHandler. This is used to remove a handler

+ 2 - 2
pkg/config/configmanager.go

@@ -4,8 +4,8 @@ import (
 	"io/ioutil"
 	"io/ioutil"
 	"sync"
 	"sync"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/storage"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/storage"
 )
 )
 
 
 //--------------------------------------------------------------------------
 //--------------------------------------------------------------------------

+ 11 - 11
pkg/costmodel/aggregation.go

@@ -10,19 +10,19 @@ import (
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util/httputil"
-	"github.com/kubecost/opencost/pkg/util/timeutil"
+	"github.com/opencost/opencost/pkg/util/httputil"
+	"github.com/opencost/opencost/pkg/util/timeutil"
 
 
 	"github.com/julienschmidt/httprouter"
 	"github.com/julienschmidt/httprouter"
-	"github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/errors"
-	"github.com/kubecost/opencost/pkg/kubecost"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/thanos"
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/errors"
+	"github.com/opencost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/thanos"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/json"
 	"github.com/patrickmn/go-cache"
 	"github.com/patrickmn/go-cache"
 	prometheusClient "github.com/prometheus/client_golang/api"
 	prometheusClient "github.com/prometheus/client_golang/api"
 )
 )

+ 1 - 1
pkg/costmodel/aggregation_test.go

@@ -3,7 +3,7 @@ package costmodel
 import (
 import (
 	"testing"
 	"testing"
 
 
-	"github.com/kubecost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util"
 )
 )
 
 
 func TestScaleHourlyCostData(t *testing.T) {
 func TestScaleHourlyCostData(t *testing.T) {

+ 6 - 6
pkg/costmodel/allocation.go

@@ -7,13 +7,13 @@ import (
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util/timeutil"
+	"github.com/opencost/opencost/pkg/util/timeutil"
 
 
-	"github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/kubecost"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
 	"k8s.io/apimachinery/pkg/labels"
 	"k8s.io/apimachinery/pkg/labels"
 )
 )
 
 

+ 6 - 6
pkg/costmodel/cluster.go

@@ -5,13 +5,13 @@ import (
 	"strconv"
 	"strconv"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/kubecost"
-	"github.com/kubecost/opencost/pkg/util/timeutil"
+	"github.com/opencost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/util/timeutil"
 
 
-	"github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
 
 
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 )
 )

+ 4 - 4
pkg/costmodel/cluster_helpers.go

@@ -4,11 +4,11 @@ import (
 	"strconv"
 	"strconv"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/cloud"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
 )
 )
 
 
 // mergeTypeMaps takes two maps of (cluster name, node name) -> node type
 // mergeTypeMaps takes two maps of (cluster name, node name) -> node type

+ 4 - 4
pkg/costmodel/cluster_helpers_test.go

@@ -5,10 +5,10 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/config"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/config"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/util"
 
 
 	"github.com/davecgh/go-spew/spew"
 	"github.com/davecgh/go-spew/spew"
 )
 )

+ 7 - 7
pkg/costmodel/clusterinfo.go

@@ -3,13 +3,13 @@ package costmodel
 import (
 import (
 	"fmt"
 	"fmt"
 
 
-	cloudProvider "github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/config"
-	"github.com/kubecost/opencost/pkg/costmodel/clusters"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/thanos"
-	"github.com/kubecost/opencost/pkg/util/json"
+	cloudProvider "github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/config"
+	"github.com/opencost/opencost/pkg/costmodel/clusters"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/thanos"
+	"github.com/opencost/opencost/pkg/util/json"
 
 
 	"k8s.io/client-go/kubernetes"
 	"k8s.io/client-go/kubernetes"
 )
 )

+ 6 - 5
pkg/costmodel/clusters/clustermap.go

@@ -3,15 +3,16 @@ package clusters
 import (
 import (
 	"context"
 	"context"
 	"fmt"
 	"fmt"
-	"github.com/kubecost/opencost/pkg/env"
 	"strings"
 	"strings"
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/thanos"
-	"github.com/kubecost/opencost/pkg/util/retry"
+	"github.com/opencost/opencost/pkg/env"
+
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/thanos"
+	"github.com/opencost/opencost/pkg/util/retry"
 
 
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 )
 )

+ 2 - 2
pkg/costmodel/containerkeys.go

@@ -4,8 +4,8 @@ import (
 	"errors"
 	"errors"
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"
 )
 )
 
 

+ 8 - 8
pkg/costmodel/costmodel.go

@@ -8,14 +8,14 @@ import (
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
-	costAnalyzerCloud "github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/costmodel/clusters"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/kubecost"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/util"
+	costAnalyzerCloud "github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/costmodel/clusters"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/util"
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheusClient "github.com/prometheus/client_golang/api"
 	prometheusClient "github.com/prometheus/client_golang/api"
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"

+ 1 - 1
pkg/costmodel/intervals.go

@@ -4,7 +4,7 @@ import (
 	"sort"
 	"sort"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/kubecost"
 )
 )
 
 
 // IntervalPoint describes a start or end of a window of time
 // IntervalPoint describes a start or end of a window of time

+ 1 - 1
pkg/costmodel/intervals_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/kubecost"
 )
 )
 
 
 func TestGetIntervalPointsFromWindows(t *testing.T) {
 func TestGetIntervalPointsFromWindows(t *testing.T) {

+ 2 - 2
pkg/costmodel/key.go

@@ -3,8 +3,8 @@ package costmodel
 import (
 import (
 	"fmt"
 	"fmt"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/prom"
 )
 )
 
 
 type containerKey struct {
 type containerKey struct {

+ 11 - 11
pkg/costmodel/metrics.go

@@ -7,16 +7,16 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/costmodel/clusters"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/errors"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/metrics"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/atomic"
+	"github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/costmodel/clusters"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/errors"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/metrics"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/atomic"
 
 
 	promclient "github.com/prometheus/client_golang/api"
 	promclient "github.com/prometheus/client_golang/api"
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
@@ -534,7 +534,7 @@ func (cmme *CostModelMetricsEmitter) Start() bool {
 				const outlierFactor float64 = 30
 				const outlierFactor float64 = 30
 				// don't record cpuCost, ramCost, or gpuCost in the case of wild outliers
 				// don't record cpuCost, ramCost, or gpuCost in the case of wild outliers
 				// k8s api sometimes causes cost spikes as described here:
 				// k8s api sometimes causes cost spikes as described here:
-				// https://github.com/kubecost/opencost/issues/927
+				// https://github.com/opencost/opencost/issues/927
 				if cpuCost < outlierFactor*avgCosts.CpuCostAverage {
 				if cpuCost < outlierFactor*avgCosts.CpuCostAverage {
 					cmme.CPUPriceRecorder.WithLabelValues(nodeName, nodeName, nodeType, nodeRegion, node.ProviderID).Set(cpuCost)
 					cmme.CPUPriceRecorder.WithLabelValues(nodeName, nodeName, nodeType, nodeRegion, node.ProviderID).Set(cpuCost)
 					avgCosts.CpuCostAverage = (avgCosts.CpuCostAverage*avgCosts.NumCpuDataPoints + cpuCost) / (avgCosts.NumCpuDataPoints + 1)
 					avgCosts.CpuCostAverage = (avgCosts.CpuCostAverage*avgCosts.NumCpuDataPoints + cpuCost) / (avgCosts.NumCpuDataPoints + 1)

+ 5 - 5
pkg/costmodel/networkcosts.go

@@ -1,11 +1,11 @@
 package costmodel
 package costmodel
 
 
 import (
 import (
-	costAnalyzerCloud "github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/util"
+	costAnalyzerCloud "github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/util"
 )
 )
 
 
 // NetworkUsageVNetworkUsageDataector contains the network usage values for egress network traffic
 // NetworkUsageVNetworkUsageDataector contains the network usage values for egress network traffic

+ 6 - 6
pkg/costmodel/promparsers.go

@@ -5,12 +5,12 @@ import (
 	"fmt"
 	"fmt"
 	"time"
 	"time"
 
 
-	costAnalyzerCloud "github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/util"
+	costAnalyzerCloud "github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/util"
 )
 )
 
 
 func GetPVInfoLocal(cache clustercache.ClusterCache, defaultClusterID string) (map[string]*PersistentVolumeClaimData, error) {
 func GetPVInfoLocal(cache clustercache.ClusterCache, defaultClusterID string) (map[string]*PersistentVolumeClaimData, error) {

+ 18 - 18
pkg/costmodel/router.go

@@ -14,15 +14,15 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/config"
-	"github.com/kubecost/opencost/pkg/kubeconfig"
-	"github.com/kubecost/opencost/pkg/metrics"
-	"github.com/kubecost/opencost/pkg/services"
-	"github.com/kubecost/opencost/pkg/util/httputil"
-	"github.com/kubecost/opencost/pkg/util/timeutil"
-	"github.com/kubecost/opencost/pkg/util/watcher"
-	"github.com/kubecost/opencost/pkg/version"
 	"github.com/microcosm-cc/bluemonday"
 	"github.com/microcosm-cc/bluemonday"
+	"github.com/opencost/opencost/pkg/config"
+	"github.com/opencost/opencost/pkg/kubeconfig"
+	"github.com/opencost/opencost/pkg/metrics"
+	"github.com/opencost/opencost/pkg/services"
+	"github.com/opencost/opencost/pkg/util/httputil"
+	"github.com/opencost/opencost/pkg/util/timeutil"
+	"github.com/opencost/opencost/pkg/util/watcher"
+	"github.com/opencost/opencost/pkg/version"
 	"github.com/spf13/viper"
 	"github.com/spf13/viper"
 
 
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"
@@ -31,16 +31,16 @@ import (
 
 
 	sentry "github.com/getsentry/sentry-go"
 	sentry "github.com/getsentry/sentry-go"
 
 
-	"github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/costmodel/clusters"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/errors"
-	"github.com/kubecost/opencost/pkg/kubecost"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/thanos"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/costmodel/clusters"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/errors"
+	"github.com/opencost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/thanos"
+	"github.com/opencost/opencost/pkg/util/json"
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheusAPI "github.com/prometheus/client_golang/api/prometheus/v1"
 	prometheusAPI "github.com/prometheus/client_golang/api/prometheus/v1"
 	appsv1 "k8s.io/api/apps/v1"
 	appsv1 "k8s.io/api/apps/v1"

+ 2 - 2
pkg/costmodel/settings.go

@@ -4,8 +4,8 @@ import (
 	"fmt"
 	"fmt"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/log"
 	"github.com/patrickmn/go-cache"
 	"github.com/patrickmn/go-cache"
 )
 )
 
 

+ 5 - 5
pkg/costmodel/sql.go

@@ -5,11 +5,11 @@ import (
 	"fmt"
 	"fmt"
 	"time"
 	"time"
 
 
-	costAnalyzerCloud "github.com/kubecost/opencost/pkg/cloud"
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/json"
+	costAnalyzerCloud "github.com/opencost/opencost/pkg/cloud"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/json"
 
 
 	_ "github.com/lib/pq"
 	_ "github.com/lib/pq"
 )
 )

+ 2 - 2
pkg/env/costmodelenv.go

@@ -5,8 +5,8 @@ import (
 	"strconv"
 	"strconv"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/timeutil"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/timeutil"
 )
 )
 
 
 const (
 const (

+ 1 - 1
pkg/env/env.go

@@ -4,7 +4,7 @@ import (
 	"os"
 	"os"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util/mapper"
+	"github.com/opencost/opencost/pkg/util/mapper"
 )
 )
 
 
 //--------------------------------------------------------------------------
 //--------------------------------------------------------------------------

+ 3 - 3
pkg/kubecost/allocation.go

@@ -8,9 +8,9 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 // TODO Clean-up use of IsEmpty; nil checks should be separated for safety.
 // TODO Clean-up use of IsEmpty; nil checks should be separated for safety.

+ 2 - 2
pkg/kubecost/allocation_test.go

@@ -6,8 +6,8 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 func TestAllocation_Add(t *testing.T) {
 func TestAllocation_Add(t *testing.T) {

+ 1 - 1
pkg/kubecost/allocationfilter.go

@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"fmt"
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 )
 )
 
 
 // FilterField is an enum that represents Allocation-specific fields that can be
 // FilterField is an enum that represents Allocation-specific fields that can be

+ 2 - 2
pkg/kubecost/allocationprops.go

@@ -5,8 +5,8 @@ import (
 	"sort"
 	"sort"
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
 )
 )
 
 
 const (
 const (

+ 2 - 2
pkg/kubecost/asset.go

@@ -7,8 +7,8 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 // UndefinedKey is used in composing Asset group keys if the group does not have that property defined.
 // UndefinedKey is used in composing Asset group keys if the group does not have that property defined.

+ 1 - 1
pkg/kubecost/asset_test.go

@@ -7,7 +7,7 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util"
 )
 )
 
 
 var start1 = time.Date(2020, time.January, 1, 0, 0, 0, 0, time.UTC)
 var start1 = time.Date(2020, time.January, 1, 0, 0, 0, 0, time.UTC)

+ 1 - 1
pkg/kubecost/asset_unmarshal.go

@@ -6,7 +6,7 @@ import (
 	"reflect"
 	"reflect"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 // Encoding and decoding logic for Asset types
 // Encoding and decoding logic for Asset types

+ 1 - 1
pkg/kubecost/asset_unmarshal_test.go

@@ -1,7 +1,7 @@
 package kubecost
 package kubecost
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/util/json"
 
 
 	"testing"
 	"testing"
 	"time"
 	"time"

+ 1 - 1
pkg/kubecost/bingen.go

@@ -71,4 +71,4 @@ package kubecost
 // @bingen:generate:AuditSetRange
 // @bingen:generate:AuditSetRange
 // @bingen:end
 // @bingen:end
 
 
-//go:generate bingen -package=kubecost -version=15 -buffer=github.com/kubecost/opencost/pkg/util
+//go:generate bingen -package=kubecost -version=15 -buffer=github.com/opencost/opencost/pkg/util

+ 2 - 2
pkg/kubecost/config.go

@@ -4,8 +4,8 @@ import (
 	"fmt"
 	"fmt"
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/util/cloudutil"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/util/cloudutil"
 )
 )
 
 
 // LabelConfig is a port of type AnalyzerConfig. We need to be more thoughtful
 // LabelConfig is a port of type AnalyzerConfig. We need to be more thoughtful

+ 1 - 1
pkg/kubecost/config_test.go

@@ -3,7 +3,7 @@ package kubecost
 import (
 import (
 	"testing"
 	"testing"
 
 
-	"github.com/kubecost/opencost/pkg/util/cloudutil"
+	"github.com/opencost/opencost/pkg/util/cloudutil"
 )
 )
 
 
 func TestLabelConfig_Map(t *testing.T) {
 func TestLabelConfig_Map(t *testing.T) {

+ 2 - 1
pkg/kubecost/etlrange.go

@@ -2,8 +2,9 @@ package kubecost
 
 
 import (
 import (
 	"fmt"
 	"fmt"
-	"github.com/kubecost/opencost/pkg/util/json"
 	"sync"
 	"sync"
+
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 // SetRange is a generic implementation of the SetRanges that act as containers. It covers the basic functionality that
 // SetRange is a generic implementation of the SetRanges that act as containers. It covers the basic functionality that

+ 1 - 1
pkg/kubecost/json.go

@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"fmt"
 	"math"
 	"math"
 
 
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 // TODO move everything below to a separate package
 // TODO move everything below to a separate package

+ 2 - 1
pkg/kubecost/kubecost_codecs.go

@@ -13,11 +13,12 @@ package kubecost
 
 
 import (
 import (
 	"fmt"
 	"fmt"
-	util "github.com/kubecost/opencost/pkg/util"
 	"reflect"
 	"reflect"
 	"strings"
 	"strings"
 	"sync"
 	"sync"
 	"time"
 	"time"
+
+	util "github.com/opencost/opencost/pkg/util"
 )
 )
 
 
 const (
 const (

+ 1 - 1
pkg/kubecost/summaryallocation.go

@@ -7,7 +7,7 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 )
 )
 
 
 // SummaryAllocation summarizes an Allocation, keeping only fields necessary
 // SummaryAllocation summarizes an Allocation, keeping only fields necessary

+ 1 - 1
pkg/kubecost/summaryallocation_test.go

@@ -4,7 +4,7 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util"
 )
 )
 
 
 func TestSummaryAllocation_Add(t *testing.T) {
 func TestSummaryAllocation_Add(t *testing.T) {

+ 1 - 1
pkg/kubecost/totals.go

@@ -6,7 +6,7 @@ import (
 	"strconv"
 	"strconv"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 	"github.com/patrickmn/go-cache"
 	"github.com/patrickmn/go-cache"
 )
 )
 
 

+ 3 - 3
pkg/kubecost/window.go

@@ -8,10 +8,10 @@ import (
 	"strconv"
 	"strconv"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util/timeutil"
+	"github.com/opencost/opencost/pkg/util/timeutil"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/thanos"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/thanos"
 )
 )
 
 
 const (
 const (

+ 1 - 1
pkg/kubecost/window_test.go

@@ -6,7 +6,7 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/env"
 )
 )
 
 
 func TestRoundBack(t *testing.T) {
 func TestRoundBack(t *testing.T) {

+ 2 - 2
pkg/metrics/deploymentmetrics.go

@@ -1,8 +1,8 @@
 package metrics
 package metrics
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/prom"
 
 
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"

+ 1 - 1
pkg/metrics/jobmetrics.go

@@ -1,7 +1,7 @@
 package metrics
 package metrics
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/clustercache"
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"
 	batchv1 "k8s.io/api/batch/v1"
 	batchv1 "k8s.io/api/batch/v1"

+ 2 - 2
pkg/metrics/kubemetrics.go

@@ -5,8 +5,8 @@ import (
 	"strings"
 	"strings"
 	"sync"
 	"sync"
 
 
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/prom"
 
 
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	batchv1 "k8s.io/api/batch/v1"
 	batchv1 "k8s.io/api/batch/v1"

+ 2 - 2
pkg/metrics/metricsconfig.go

@@ -8,8 +8,8 @@ import (
 	"path"
 	"path"
 	"sync"
 	"sync"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/util/watcher"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/util/watcher"
 )
 )
 
 
 var (
 var (

+ 2 - 2
pkg/metrics/namespacemetrics.go

@@ -1,8 +1,8 @@
 package metrics
 package metrics
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/prom"
 
 
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"

+ 3 - 3
pkg/metrics/nodemetrics.go

@@ -3,9 +3,9 @@ package metrics
 import (
 import (
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"

+ 2 - 2
pkg/metrics/podlabelmetrics.go

@@ -1,8 +1,8 @@
 package metrics
 package metrics
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/prom"
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 )
 )
 
 

+ 3 - 3
pkg/metrics/podmetrics.go

@@ -3,9 +3,9 @@ package metrics
 import (
 import (
 	"fmt"
 	"fmt"
 
 
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"

+ 1 - 1
pkg/metrics/pvcmetrics.go

@@ -1,7 +1,7 @@
 package metrics
 package metrics
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/clustercache"
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"

+ 1 - 1
pkg/metrics/pvmetrics.go

@@ -1,7 +1,7 @@
 package metrics
 package metrics
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/clustercache"
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"
 	v1 "k8s.io/api/core/v1"
 	v1 "k8s.io/api/core/v1"

+ 2 - 2
pkg/metrics/servicemetrics.go

@@ -1,8 +1,8 @@
 package metrics
 package metrics
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/prom"
 
 
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"

+ 2 - 2
pkg/metrics/statefulsetmetrics.go

@@ -1,8 +1,8 @@
 package metrics
 package metrics
 
 
 import (
 import (
-	"github.com/kubecost/opencost/pkg/clustercache"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/clustercache"
+	"github.com/opencost/opencost/pkg/prom"
 
 
 	"github.com/prometheus/client_golang/prometheus"
 	"github.com/prometheus/client_golang/prometheus"
 	dto "github.com/prometheus/client_model/go"
 	dto "github.com/prometheus/client_model/go"

+ 2 - 2
pkg/prom/diagnostics.go

@@ -4,8 +4,8 @@ import (
 	"fmt"
 	"fmt"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/log"
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 )
 )
 
 

+ 1 - 1
pkg/prom/error.go

@@ -6,7 +6,7 @@ import (
 	"strings"
 	"strings"
 	"sync"
 	"sync"
 
 
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 )
 )
 
 
 // errorType used to check HasError
 // errorType used to check HasError

+ 1 - 1
pkg/prom/metrics.go

@@ -7,7 +7,7 @@ import (
 	"sort"
 	"sort"
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 var invalidLabelCharRE = regexp.MustCompile(`[^a-zA-Z0-9_]`)
 var invalidLabelCharRE = regexp.MustCompile(`[^a-zA-Z0-9_]`)

+ 5 - 5
pkg/prom/prom.go

@@ -11,11 +11,11 @@ import (
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/collections"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/atomic"
-	"github.com/kubecost/opencost/pkg/util/fileutil"
-	"github.com/kubecost/opencost/pkg/util/httputil"
+	"github.com/opencost/opencost/pkg/collections"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/atomic"
+	"github.com/opencost/opencost/pkg/util/fileutil"
+	"github.com/opencost/opencost/pkg/util/httputil"
 
 
 	golog "log"
 	golog "log"
 
 

+ 6 - 6
pkg/prom/query.go

@@ -8,11 +8,11 @@ import (
 	"strconv"
 	"strconv"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/errors"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/httputil"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/errors"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/httputil"
+	"github.com/opencost/opencost/pkg/util/json"
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 )
 )
 
 
@@ -192,7 +192,7 @@ func (ctx *Context) RawQuery(query string, t time.Time) ([]byte, error) {
 	if t.IsZero() {
 	if t.IsZero() {
 		t = time.Now()
 		t = time.Now()
 	}
 	}
-	
+
 	q.Set("time", strconv.FormatInt(t.Unix(), 10))
 	q.Set("time", strconv.FormatInt(t.Unix(), 10))
 
 
 	u.RawQuery = q.Encode()
 	u.RawQuery = q.Encode()

+ 2 - 2
pkg/prom/ratelimitedclient_test.go

@@ -12,8 +12,8 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util"
-	"github.com/kubecost/opencost/pkg/util/httputil"
+	"github.com/opencost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/util/httputil"
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 )
 )
 
 

+ 2 - 2
pkg/prom/result.go

@@ -6,8 +6,8 @@ import (
 	"strconv"
 	"strconv"
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util"
 )
 )
 
 
 var (
 var (

+ 1 - 1
pkg/prom/validate.go

@@ -3,7 +3,7 @@ package prom
 import (
 import (
 	"fmt"
 	"fmt"
 
 
-	"github.com/kubecost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/env"
 
 
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 )
 )

+ 3 - 3
pkg/services/clusters/clustermanager.go

@@ -8,9 +8,9 @@ import (
 
 
 	"github.com/google/uuid"
 	"github.com/google/uuid"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/fileutil"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/fileutil"
+	"github.com/opencost/opencost/pkg/util/json"
 
 
 	"sigs.k8s.io/yaml"
 	"sigs.k8s.io/yaml"
 )
 )

+ 2 - 2
pkg/services/clusters/clustersendpoints.go

@@ -7,8 +7,8 @@ import (
 
 
 	"github.com/julienschmidt/httprouter"
 	"github.com/julienschmidt/httprouter"
 
 
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 // DataEnvelope is a generic wrapper struct for http response data
 // DataEnvelope is a generic wrapper struct for http response data

+ 2 - 2
pkg/services/clusterservice.go

@@ -3,8 +3,8 @@ package services
 import (
 import (
 	"path"
 	"path"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/services/clusters"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/services/clusters"
 )
 )
 
 
 // NewClusterManagerService creates a new HTTPService implementation driving cluster definition management
 // NewClusterManagerService creates a new HTTPService implementation driving cluster definition management

+ 1 - 1
pkg/services/services.go

@@ -4,7 +4,7 @@ import (
 	"sync"
 	"sync"
 
 
 	"github.com/julienschmidt/httprouter"
 	"github.com/julienschmidt/httprouter"
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 )
 )
 
 
 // HTTPService defines an implementation prototype for an object capable of registering
 // HTTPService defines an implementation prototype for an object capable of registering

+ 1 - 1
pkg/storage/azurestorage.go

@@ -18,7 +18,7 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 
 
 	"github.com/Azure/azure-pipeline-go/pipeline"
 	"github.com/Azure/azure-pipeline-go/pipeline"
 	blob "github.com/Azure/azure-storage-blob-go/azblob"
 	blob "github.com/Azure/azure-storage-blob-go/azblob"

+ 1 - 1
pkg/storage/filestorage.go

@@ -7,7 +7,7 @@ import (
 	gopath "path"
 	gopath "path"
 	"path/filepath"
 	"path/filepath"
 
 
-	"github.com/kubecost/opencost/pkg/util/fileutil"
+	"github.com/opencost/opencost/pkg/util/fileutil"
 	"github.com/pkg/errors"
 	"github.com/pkg/errors"
 )
 )
 
 

+ 1 - 1
pkg/storage/gcsstorage.go

@@ -10,7 +10,7 @@ import (
 	"strings"
 	"strings"
 
 
 	gcs "cloud.google.com/go/storage"
 	gcs "cloud.google.com/go/storage"
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 	"github.com/pkg/errors"
 	"github.com/pkg/errors"
 	"golang.org/x/oauth2/google"
 	"golang.org/x/oauth2/google"
 	"google.golang.org/api/iterator"
 	"google.golang.org/api/iterator"

+ 1 - 1
pkg/storage/s3storage.go

@@ -13,7 +13,7 @@ import (
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/log"
 
 
 	aws "github.com/aws/aws-sdk-go-v2/aws"
 	aws "github.com/aws/aws-sdk-go-v2/aws"
 	awsconfig "github.com/aws/aws-sdk-go-v2/config"
 	awsconfig "github.com/aws/aws-sdk-go-v2/config"

+ 1 - 1
pkg/storage/storagetypes.go

@@ -3,7 +3,7 @@ package storage
 import (
 import (
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 /*
 /*

+ 1 - 1
pkg/storage/storagetypes_test.go

@@ -3,7 +3,7 @@ package storage
 import (
 import (
 	"testing"
 	"testing"
 
 
-	"github.com/kubecost/opencost/pkg/util/json"
+	"github.com/opencost/opencost/pkg/util/json"
 )
 )
 
 
 func assert(t *testing.T, condition bool, msg string) {
 func assert(t *testing.T, condition bool, msg string) {

+ 2 - 2
pkg/thanos/thanos.go

@@ -10,8 +10,8 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/env"
-	"github.com/kubecost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/env"
+	"github.com/opencost/opencost/pkg/prom"
 
 
 	prometheus "github.com/prometheus/client_golang/api"
 	prometheus "github.com/prometheus/client_golang/api"
 )
 )

+ 5 - 5
pkg/util/allocationfilterutil/queryfilters.go

@@ -3,11 +3,11 @@ package allocationfilterutil
 import (
 import (
 	"strings"
 	"strings"
 
 
-	"github.com/kubecost/opencost/pkg/costmodel/clusters"
-	"github.com/kubecost/opencost/pkg/kubecost"
-	"github.com/kubecost/opencost/pkg/log"
-	"github.com/kubecost/opencost/pkg/prom"
-	"github.com/kubecost/opencost/pkg/util/httputil"
+	"github.com/opencost/opencost/pkg/costmodel/clusters"
+	"github.com/opencost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/log"
+	"github.com/opencost/opencost/pkg/prom"
+	"github.com/opencost/opencost/pkg/util/httputil"
 )
 )
 
 
 // ============================================================================
 // ============================================================================

+ 3 - 3
pkg/util/allocationfilterutil/queryfilters_test.go

@@ -3,9 +3,9 @@ package allocationfilterutil
 import (
 import (
 	"testing"
 	"testing"
 
 
-	"github.com/kubecost/opencost/pkg/costmodel/clusters"
-	"github.com/kubecost/opencost/pkg/kubecost"
-	"github.com/kubecost/opencost/pkg/util/mapper"
+	"github.com/opencost/opencost/pkg/costmodel/clusters"
+	"github.com/opencost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/util/mapper"
 )
 )
 
 
 type mockClusterMap struct {
 type mockClusterMap struct {

+ 1 - 1
pkg/util/allocationfilterutil/v2/lexer.go

@@ -5,7 +5,7 @@ import (
 
 
 	multierror "github.com/hashicorp/go-multierror"
 	multierror "github.com/hashicorp/go-multierror"
 
 
-	"github.com/kubecost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/kubecost"
 )
 )
 
 
 // ============================================================================
 // ============================================================================

+ 1 - 1
pkg/util/allocationfilterutil/v2/parser.go

@@ -8,7 +8,7 @@ import (
 	"fmt"
 	"fmt"
 
 
 	"github.com/hashicorp/go-multierror"
 	"github.com/hashicorp/go-multierror"
-	"github.com/kubecost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/kubecost"
 )
 )
 
 
 // ParseAllocationFilter converts a string of the V2 Allocation Filter language
 // ParseAllocationFilter converts a string of the V2 Allocation Filter language

+ 1 - 1
pkg/util/allocationfilterutil/v2/parser_test.go

@@ -5,7 +5,7 @@ import (
 	"reflect"
 	"reflect"
 	"testing"
 	"testing"
 
 
-	"github.com/kubecost/opencost/pkg/kubecost"
+	"github.com/opencost/opencost/pkg/kubecost"
 )
 )
 
 
 func allocGenerator(props kubecost.AllocationProperties) kubecost.Allocation {
 func allocGenerator(props kubecost.AllocationProperties) kubecost.Allocation {

+ 1 - 1
pkg/util/atomic/example_intervalrunner_test.go

@@ -5,7 +5,7 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"github.com/kubecost/opencost/pkg/util/atomic"
+	"github.com/opencost/opencost/pkg/util/atomic"
 )
 )
 
 
 // IntervalRunner is an example implementation of AtomicRunState.
 // IntervalRunner is an example implementation of AtomicRunState.

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor