diff --git a/.gitignore b/.gitignore index 3219c72..4607f30 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ /.github/release-notes.md # Build -/metrics-collector +/billing-collector-cloudservices *.out /component/compiled /component/vendor diff --git a/Dockerfile b/Dockerfile index 7610b20..fd5f72e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN \ ca-certificates \ tzdata -ENTRYPOINT ["metrics-collector"] -COPY metrics-collector /usr/bin/ +ENTRYPOINT ["billing-collector-cloudservices"] +COPY billing-collector-cloudservices /usr/bin/ USER 65536:0 diff --git a/Makefile.vars.mk b/Makefile.vars.mk index e3ce3fc..2d872d4 100644 --- a/Makefile.vars.mk +++ b/Makefile.vars.mk @@ -1,7 +1,7 @@ ## These are some common variables for Make PROJECT_ROOT_DIR = . -PROJECT_NAME ?= metrics-collector +PROJECT_NAME ?= billing-collector-cloudservices PROJECT_OWNER ?= vshn ## BUILD:go diff --git a/README.md b/README.md index 7d9deca..00e142f 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ -# exoscale-metrics-collector +# billing-collector-cloudservices -[![Build](https://img.shields.io/github/workflow/status/vshn/exoscale-metrics-collector/Test)][build] -![Go version](https://img.shields.io/github/go-mod/go-version/vshn/exoscale-metrics-collector) -[![Version](https://img.shields.io/github/v/release/vshn/exoscale-metrics-collector)][releases] -[![GitHub downloads](https://img.shields.io/github/downloads/vshn/exoscale-metrics-collector/total)][releases] +[![Build](https://img.shields.io/github/workflow/status/vshn/billing-collector-cloudservices/Test)][build] +![Go version](https://img.shields.io/github/go-mod/go-version/vshn/billing-collector-cloudservices) +[![Version](https://img.shields.io/github/v/release/vshn/billing-collector-cloudservices)][releases] +[![GitHub downloads](https://img.shields.io/github/downloads/vshn/billing-collector-cloudservices/total)][releases] -[build]: https://github.com/vshn/exoscale-metrics-collector/actions?query=workflow%3ATest -[releases]: https://github.com/vshn/exoscale-metrics-collector/releases +[build]: https://github.com/vshn/billing-collector-cloudservices/actions?query=workflow%3ATest +[releases]: https://github.com/vshn/billing-collector-cloudservices/releases Batch job to sync usage data from the Exoscale and Cloudscale API to the [APPUiO Cloud reporting](https://github.com/appuio/appuio-cloud-reporting/) database. Metrics are collected taking into account product (e.g. `object-storage-storage:exoscale`), source (e.g. `exoscale:namespace`), tenant (as organization) and date time. -See the [component documentation](https://hub.syn.tools/exoscale-metrics-collector/index.html) for more information. +See the [component documentation](https://hub.syn.tools/billing-collector-cloudservices/index.html) for more information. ## Getting started for developers @@ -42,12 +42,12 @@ Then, run one of the available commands: * Object Storage: ``` -$ ./metrics-collector exoscale objectstorage +$ ./billing-collector-cloudservices exoscale objectstorage ``` * DBaaS (runs metrics collector for all supported databases): ``` -$ ./metrics-collector exoscale dbaas +$ ./billing-collector-cloudservices exoscale dbaas ``` ### Billing Database @@ -85,7 +85,7 @@ spec: Once the database is created and `Ready`, you can run locally the command: ``` -$ ./metrics-collector exoscale dbaas +$ ./billing-collector-cloudservices exoscale dbaas ``` The same works for other resources. Just apply the right claim and run the proper command. @@ -106,21 +106,21 @@ The commands assume that you are logged in to the Kubernetes cluster you want to Instructions for OpenShift >=4.11: ``` -$ cd exoscale-metrics-collector +$ cd billing-collector-cloudservices $ oc -n default --as cluster-admin apply -f clusterrole.yaml -$ oc -n default --as cluster-admin create serviceaccount vshn-exoscale-metrics-collector -$ oc --as cluster-admin adm policy add-cluster-role-to-user vshn-exoscale-metrics-collector system:serviceaccount:default:vshn-exoscale-metrics-collector +$ oc -n default --as cluster-admin create serviceaccount vshn-billing-collector-cloudservices +$ oc --as cluster-admin adm policy add-cluster-role-to-user vshn-billing-collector-cloudservices system:serviceaccount:default:vshn-billing-collector-cloudservices $ oc -n default --as cluster-admin apply -f clusterrole-secret.yaml -$ oc -n default --as cluster-admin get secret vshn-exoscale-metrics-collector-secret -o jsonpath='{.data.token}' | base64 -d +$ oc -n default --as cluster-admin get secret vshn-billing-collector-cloudservices-secret -o jsonpath='{.data.token}' | base64 -d ``` Instructions for OpenShift <=4.10: ``` -$ cd exoscale-metrics-collector +$ cd billing-collector-cloudservices $ oc -n default --as cluster-admin apply -f clusterrole.yaml -$ oc -n default --as cluster-admin create serviceaccount vshn-exoscale-metrics-collector -$ oc --as cluster-admin adm policy add-cluster-role-to-user vshn-exoscale-metrics-collector system:serviceaccount:default:vshn-exoscale-metrics-collector -$ oc -n default --as cluster-admin serviceaccounts get-token vshn-exoscale-metrics-collector +$ oc -n default --as cluster-admin create serviceaccount vshn-billing-collector-cloudservices +$ oc --as cluster-admin adm policy add-cluster-role-to-user vshn-billing-collector-cloudservices system:serviceaccount:default:vshn-billing-collector-cloudservices +$ oc -n default --as cluster-admin serviceaccounts get-token vshn-billing-collector-cloudservices ``` The last command will print out your token without trailing newline; be sure to copy the correct part of the output. @@ -146,5 +146,5 @@ EXOSCALE_CRDS_PATH="$(go list -f '{{.Dir}}' -m github.com/vshn/provider-exoscale CLOUDSCALE_CRDS_PATH="$(go list -f '{{.Dir}}' -m github.com/vshn/provider-cloudscale)/package/crds)" # make sure to run make target `test-integration` first to have everything setup correctly. -KUBEBUILDER_ASSETS="$(/path/to/exoscale-metrics-collector/.work/bin/setup-envtest --bin-dir "/path/to/exoscale-metrics-collector/.work/bin" use -i -p path '1.24.x!')" +KUBEBUILDER_ASSETS="$(/path/to/billing-collector-cloudservices/.work/bin/setup-envtest --bin-dir "/path/to/billing-collector-cloudservices/.work/bin" use -i -p path '1.24.x!')" ``` diff --git a/clusterrole-secret.yaml b/clusterrole-secret.yaml index 9b2ee73..3d44d13 100644 --- a/clusterrole-secret.yaml +++ b/clusterrole-secret.yaml @@ -2,6 +2,6 @@ apiVersion: v1 kind: Secret type: kubernetes.io/service-account-token metadata: - name: vshn-exoscale-metrics-collector-secret + name: vshn-billing-collector-cloudservices-secret annotations: - kubernetes.io/service-account.name: vshn-exoscale-metrics-collector + kubernetes.io/service-account.name: vshn-billing-collector-cloudservices diff --git a/clusterrole.yaml b/clusterrole.yaml index 542367b..f6c5b84 100644 --- a/clusterrole.yaml +++ b/clusterrole.yaml @@ -1,7 +1,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: 'vshn-exoscale-metrics-collector' + name: 'vshn-billing-collector-cloudservices' rules: - apiGroups: - '*' diff --git a/component/Makefile.vars.mk b/component/Makefile.vars.mk index 0f944fb..a4e597e 100644 --- a/component/Makefile.vars.mk +++ b/component/Makefile.vars.mk @@ -1,5 +1,5 @@ # Commodore takes the root dir name as the component name -COMPONENT_NAME ?= metrics-collector +COMPONENT_NAME ?= billing-collector-cloudservices COMPONENT_SUBDIR ?= $(shell basename ${PWD}) compiled_path ?= compiled/$(COMPONENT_NAME)/$(COMPONENT_NAME) @@ -43,5 +43,5 @@ KUBENT_ARGS ?= -c=false --helm2=false --helm3=false -e KUBENT_IMAGE ?= docker.io/projectsyn/kubent:latest KUBENT_DOCKER ?= $(DOCKER_CMD) $(DOCKER_ARGS) $(root_volume) --entrypoint=/app/kubent $(KUBENT_IMAGE) -instance ?= metrics-collector +instance ?= billing-collector-cloudservices test_instances = tests/exoscale-metrics-collector.yml tests/collector-cloudscale-lpg-2.yml tests/cloudscale-metrics-collector.yml diff --git a/component/class/metrics-collector.yml b/component/class/billing-collector-cloudservices.yml similarity index 100% rename from component/class/metrics-collector.yml rename to component/class/billing-collector-cloudservices.yml diff --git a/component/class/defaults.yml b/component/class/defaults.yml index 1c958d2..4eacb92 100644 --- a/component/class/defaults.yml +++ b/component/class/defaults.yml @@ -1,5 +1,5 @@ parameters: - metrics_collector: + billing_collector_cloudservices: =_metadata: multi_instance: true @@ -20,8 +20,8 @@ parameters: images: collector: registry: 'ghcr.io' - repository: 'vshn/metrics-collector' - tag: 'refactored-collectors' + repository: 'vshn/billing-collector-cloudservices' + tag: 'v1.0.0' exoscale: enabled: false diff --git a/component/component/main.jsonnet b/component/component/main.jsonnet index 40d1283..70ef598 100644 --- a/component/component/main.jsonnet +++ b/component/component/main.jsonnet @@ -1,6 +1,6 @@ local kap = import 'lib/kapitan.libjsonnet'; local inv = kap.inventory(); -local params = inv.parameters.metrics_collector; +local params = inv.parameters.billing_collector_cloudservices; local paramsACR = inv.parameters.appuio_cloud_reporting; local kube = import 'lib/kube.libjsonnet'; local com = import 'lib/commodore.libjsonnet'; @@ -8,7 +8,7 @@ local collectorImage = '%(registry)s/%(repository)s:%(tag)s' % params.images.col local alias = inv.parameters._instance; local alias_suffix = '-' + alias; local credentials_secret_name = 'credentials' + alias_suffix; -local component_name = 'metrics-collector'; +local component_name = 'billing-collector-cloudservices'; local labels = { @@ -46,7 +46,7 @@ local cronjob(name, subcommand, schedule) = { restartPolicy: 'OnFailure', containers: [ { - name: 'metrics-collector-backfill', + name: 'billing-collector-cloudservices-backfill', image: collectorImage, args: [ subcommand, diff --git a/component/tests/metrics-collector.yml b/component/tests/billing-collector-cloudservices.yml similarity index 89% rename from component/tests/metrics-collector.yml rename to component/tests/billing-collector-cloudservices.yml index 32f51c8..d10b9d1 100644 --- a/component/tests/metrics-collector.yml +++ b/component/tests/billing-collector-cloudservices.yml @@ -7,7 +7,7 @@ parameters: parameters: 'sslmode=disable' password: 'passw0rd' port: 5432 - metrics_collector: + billing_collector_cloudservices: exoscale: enabled: true dbaas: diff --git a/component/tests/cloudscale-metrics-collector.yml b/component/tests/cloudscale-metrics-collector.yml index c86664f..e34874d 100644 --- a/component/tests/cloudscale-metrics-collector.yml +++ b/component/tests/cloudscale-metrics-collector.yml @@ -7,7 +7,7 @@ parameters: parameters: 'sslmode=disable' password: 'passw0rd' port: 5432 - metrics_collector: + billing_collector_cloudservices: cloudscale: enabled: true objectStorage: diff --git a/component/tests/collector-cloudscale-lpg-2.yml b/component/tests/collector-cloudscale-lpg-2.yml index 8925ffc..8eed659 100644 --- a/component/tests/collector-cloudscale-lpg-2.yml +++ b/component/tests/collector-cloudscale-lpg-2.yml @@ -10,6 +10,6 @@ parameters: parameters: 'sslmode=disable' password: 'passw0rd' port: 5432 - metrics_collector: + billing_collector_cloudservices: exoscale: enabled: true diff --git a/component/tests/exoscale-metrics-collector.yml b/component/tests/exoscale-metrics-collector.yml index 32f51c8..d10b9d1 100644 --- a/component/tests/exoscale-metrics-collector.yml +++ b/component/tests/exoscale-metrics-collector.yml @@ -7,7 +7,7 @@ parameters: parameters: 'sslmode=disable' password: 'passw0rd' port: 5432 - metrics_collector: + billing_collector_cloudservices: exoscale: enabled: true dbaas: diff --git a/component/tests/golden/cloudscale-metrics-collector/cloudscale-metrics-collector/cloudscale-metrics-collector/objectStorageCronjob.yaml b/component/tests/golden/cloudscale-metrics-collector/cloudscale-metrics-collector/cloudscale-metrics-collector/objectStorageCronjob.yaml index 6e7fc67..d0fa01e 100644 --- a/component/tests/golden/cloudscale-metrics-collector/cloudscale-metrics-collector/cloudscale-metrics-collector/objectStorageCronjob.yaml +++ b/component/tests/golden/cloudscale-metrics-collector/cloudscale-metrics-collector/cloudscale-metrics-collector/objectStorageCronjob.yaml @@ -2,9 +2,9 @@ apiVersion: batch/v1 kind: CronJob metadata: labels: - app.kubernetes.io/component: metrics-collector + app.kubernetes.io/component: billing-collector-cloudservices app.kubernetes.io/managed-by: commodore - app.kubernetes.io/name: metrics-collector + app.kubernetes.io/name: billing-collector-cloudservices app.kubernetes.io/part-of: appuio-cloud-reporting name: cloudscale-metrics-collector-objectstorage namespace: appuio-cloud-reporting @@ -34,8 +34,8 @@ spec: envFrom: - secretRef: name: credentials-cloudscale-metrics-collector - image: ghcr.io/vshn/metrics-collector:refactored-collectors - name: metrics-collector-backfill + image: ghcr.io/vshn/billing-collector-cloudservices:v1.0.0 + name: billing-collector-cloudservices-backfill resources: {} restartPolicy: OnFailure schedule: 10 4,10,16 * * * diff --git a/component/tests/golden/collector-cloudscale-lpg-2/collector-cloudscale-lpg-2/collector-cloudscale-lpg-2/objectStorageCronjob.yaml b/component/tests/golden/collector-cloudscale-lpg-2/collector-cloudscale-lpg-2/collector-cloudscale-lpg-2/objectStorageCronjob.yaml index e8531ea..e84dfe6 100644 --- a/component/tests/golden/collector-cloudscale-lpg-2/collector-cloudscale-lpg-2/collector-cloudscale-lpg-2/objectStorageCronjob.yaml +++ b/component/tests/golden/collector-cloudscale-lpg-2/collector-cloudscale-lpg-2/collector-cloudscale-lpg-2/objectStorageCronjob.yaml @@ -2,9 +2,9 @@ apiVersion: batch/v1 kind: CronJob metadata: labels: - app.kubernetes.io/component: metrics-collector + app.kubernetes.io/component: billing-collector-cloudservices app.kubernetes.io/managed-by: commodore - app.kubernetes.io/name: metrics-collector + app.kubernetes.io/name: billing-collector-cloudservices app.kubernetes.io/part-of: appuio-cloud-reporting name: collector-cloudscale-lpg-2-objectstorage namespace: appuio-cloud-reporting @@ -34,8 +34,8 @@ spec: envFrom: - secretRef: name: credentials-collector-cloudscale-lpg-2 - image: ghcr.io/vshn/metrics-collector:refactored-collectors - name: metrics-collector-backfill + image: ghcr.io/vshn/billing-collector-cloudservices:v1.0.0 + name: billing-collector-cloudservices-backfill resources: {} restartPolicy: OnFailure schedule: 10 10,16,20 * * * diff --git a/component/tests/golden/exoscale-metrics-collector/exoscale-metrics-collector/exoscale-metrics-collector/dbaasCronjob.yaml b/component/tests/golden/exoscale-metrics-collector/exoscale-metrics-collector/exoscale-metrics-collector/dbaasCronjob.yaml index 91a02eb..b5c5600 100644 --- a/component/tests/golden/exoscale-metrics-collector/exoscale-metrics-collector/exoscale-metrics-collector/dbaasCronjob.yaml +++ b/component/tests/golden/exoscale-metrics-collector/exoscale-metrics-collector/exoscale-metrics-collector/dbaasCronjob.yaml @@ -2,9 +2,9 @@ apiVersion: batch/v1 kind: CronJob metadata: labels: - app.kubernetes.io/component: metrics-collector + app.kubernetes.io/component: billing-collector-cloudservices app.kubernetes.io/managed-by: commodore - app.kubernetes.io/name: metrics-collector + app.kubernetes.io/name: billing-collector-cloudservices app.kubernetes.io/part-of: appuio-cloud-reporting name: exoscale-metrics-collector-dbaas namespace: appuio-cloud-reporting @@ -34,8 +34,8 @@ spec: envFrom: - secretRef: name: credentials-exoscale-metrics-collector - image: ghcr.io/vshn/metrics-collector:refactored-collectors - name: metrics-collector-backfill + image: ghcr.io/vshn/billing-collector-cloudservices:v1.0.0 + name: billing-collector-cloudservices-backfill resources: {} restartPolicy: OnFailure schedule: '*/15 * * * *' diff --git a/component/tests/golden/exoscale-metrics-collector/exoscale-metrics-collector/exoscale-metrics-collector/objectStorageCronjob.yaml b/component/tests/golden/exoscale-metrics-collector/exoscale-metrics-collector/exoscale-metrics-collector/objectStorageCronjob.yaml index 2fbd40a..f4b5c9f 100644 --- a/component/tests/golden/exoscale-metrics-collector/exoscale-metrics-collector/exoscale-metrics-collector/objectStorageCronjob.yaml +++ b/component/tests/golden/exoscale-metrics-collector/exoscale-metrics-collector/exoscale-metrics-collector/objectStorageCronjob.yaml @@ -2,9 +2,9 @@ apiVersion: batch/v1 kind: CronJob metadata: labels: - app.kubernetes.io/component: metrics-collector + app.kubernetes.io/component: billing-collector-cloudservices app.kubernetes.io/managed-by: commodore - app.kubernetes.io/name: metrics-collector + app.kubernetes.io/name: billing-collector-cloudservices app.kubernetes.io/part-of: appuio-cloud-reporting name: exoscale-metrics-collector-objectstorage namespace: appuio-cloud-reporting @@ -34,8 +34,8 @@ spec: envFrom: - secretRef: name: credentials-exoscale-metrics-collector - image: ghcr.io/vshn/metrics-collector:refactored-collectors - name: metrics-collector-backfill + image: ghcr.io/vshn/billing-collector-cloudservices:v1.0.0 + name: billing-collector-cloudservices-backfill resources: {} restartPolicy: OnFailure schedule: 10 10,16,20 * * * diff --git a/docs/antora.yml b/docs/antora.yml index 1bf7ab7..6b99613 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,5 +1,5 @@ -name: exoscale-metrics-collector -title: exoscale-metrics-collector +name: billing-collector-cloudservices +title: billing-collector-cloudservices version: master start_page: ROOT:index.adoc nav: diff --git a/docs/modules/ROOT/pages/how-tos/installation.adoc b/docs/modules/ROOT/pages/how-tos/installation.adoc index 8fa10b8..cb6fa2a 100644 --- a/docs/modules/ROOT/pages/how-tos/installation.adoc +++ b/docs/modules/ROOT/pages/how-tos/installation.adoc @@ -30,7 +30,7 @@ The access to the desired cluster from where the metrics should be collected has [source,yaml] ---- applications: - - metrics-collector + - billing-collector-cloudservices parameters: metrics_collector: diff --git a/docs/modules/ROOT/pages/how-tos/multi-instance.adoc b/docs/modules/ROOT/pages/how-tos/multi-instance.adoc index ece4923..7205459 100644 --- a/docs/modules/ROOT/pages/how-tos/multi-instance.adoc +++ b/docs/modules/ROOT/pages/how-tos/multi-instance.adoc @@ -10,8 +10,8 @@ This guide provides an example how to deploy multiple instances of this componen [source,yaml] ---- applications: - - metrics-collector as collector-exoscale-ch-gva-2 <1> - - metrics-collector as collector-cloudscale-rma-0 <2> + - billing-collector-cloudservices as collector-exoscale-ch-gva-2 <1> + - billing-collector-cloudservices as collector-cloudscale-rma-0 <2> parameters: appuio_cloud_reporting: namespace: 'appuio-cloud-reporting' @@ -34,8 +34,8 @@ parent="clusters/kv/${TENANT_ID}/${CLUSTER_ID}" instance_1="collector-exoscale-ch-gva-2" instance_2="collector-cloudscale-rma-0" -vault kv put "${parent}/exoscale-metrics-collector/${instance_1}" exoscale-key= exoscale-secret= cluster-server= cluster-token= -vault kv put "${parent}/exoscale-metrics-collector/${instance_2}" exoscale-key= exoscale-secret= cluster-server= cluster-token= +vault kv put "${parent}/billing-collector-cloudservices/${instance_1}" exoscale-key= exoscale-secret= cluster-server= cluster-token= +vault kv put "${parent}/billing-collector-cloudservices/${instance_2}" exoscale-key= exoscale-secret= cluster-server= cluster-token= ---- + diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc index 73783e1..6782803 100644 --- a/docs/modules/ROOT/pages/index.adoc +++ b/docs/modules/ROOT/pages/index.adoc @@ -1,4 +1,4 @@ -= metrics-collector += billing-collector-cloudservices Batch job to sync usage data from the Exoscale and Cloudscale metrics APIs to the https://github.com/appuio/appuio-cloud-reporting/[APPUiO Cloud Reporting] database. diff --git a/docs/modules/ROOT/pages/references/parameters.adoc b/docs/modules/ROOT/pages/references/parameters.adoc index b3d6262..bc4fb54 100644 --- a/docs/modules/ROOT/pages/references/parameters.adoc +++ b/docs/modules/ROOT/pages/references/parameters.adoc @@ -15,7 +15,7 @@ See xref:how-tos/installation.adoc[Installation] for a full example. [horizontal] type:: dictionary -default:: https://github.com/vshn/exoscale-metrics-collector/blob/master/component/class/defaults.yml[See class/defaults.yml]. +default:: https://github.com/vshn/billing-collector-cloudservices/blob/master/component/class/defaults.yml[See class/defaults.yml]. Dictionary containing the container images used by this component. diff --git a/go.mod b/go.mod index 269c510..ab4e46c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/vshn/exoscale-metrics-collector +module github.com/vshn/billing-collector-cloudservices go 1.19 diff --git a/main.go b/main.go index 4af876c..57425bf 100644 --- a/main.go +++ b/main.go @@ -10,8 +10,8 @@ import ( "time" "github.com/urfave/cli/v2" - "github.com/vshn/exoscale-metrics-collector/pkg/cmd" - "github.com/vshn/exoscale-metrics-collector/pkg/log" + "github.com/vshn/billing-collector-cloudservices/pkg/cmd" + "github.com/vshn/billing-collector-cloudservices/pkg/log" ) var ( @@ -20,7 +20,7 @@ var ( commit = "-dirty-" date = time.Now().Format("2006-01-02") - appName = "metrics-collector" + appName = "billing-collector-cloudservices" appLongName = "Metrics collector which gathers metrics information for cloud services" ) diff --git a/pkg/cloudscale/objecstorage_integration_test.go b/pkg/cloudscale/objecstorage_integration_test.go index a6b1346..a63f41e 100644 --- a/pkg/cloudscale/objecstorage_integration_test.go +++ b/pkg/cloudscale/objecstorage_integration_test.go @@ -13,8 +13,8 @@ import ( "github.com/cloudscale-ch/cloudscale-go-sdk/v2" "github.com/jmoiron/sqlx" "github.com/stretchr/testify/suite" - "github.com/vshn/exoscale-metrics-collector/pkg/reporting" - "github.com/vshn/exoscale-metrics-collector/pkg/test" + "github.com/vshn/billing-collector-cloudservices/pkg/reporting" + "github.com/vshn/billing-collector-cloudservices/pkg/test" cloudscalev1 "github.com/vshn/provider-cloudscale/apis/cloudscale/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" diff --git a/pkg/cloudscale/objectstorage.go b/pkg/cloudscale/objectstorage.go index bf2e4cd..c235ebd 100644 --- a/pkg/cloudscale/objectstorage.go +++ b/pkg/cloudscale/objectstorage.go @@ -7,7 +7,7 @@ import ( "time" "github.com/cloudscale-ch/cloudscale-go-sdk/v2" - "github.com/vshn/exoscale-metrics-collector/pkg/reporting" + "github.com/vshn/billing-collector-cloudservices/pkg/reporting" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" ) diff --git a/pkg/cmd/cloudscale.go b/pkg/cmd/cloudscale.go index 92f63f4..e05112a 100644 --- a/pkg/cmd/cloudscale.go +++ b/pkg/cmd/cloudscale.go @@ -7,9 +7,9 @@ import ( "github.com/cloudscale-ch/cloudscale-go-sdk/v2" "github.com/urfave/cli/v2" - cs "github.com/vshn/exoscale-metrics-collector/pkg/cloudscale" - "github.com/vshn/exoscale-metrics-collector/pkg/kubernetes" - "github.com/vshn/exoscale-metrics-collector/pkg/log" + cs "github.com/vshn/billing-collector-cloudservices/pkg/cloudscale" + "github.com/vshn/billing-collector-cloudservices/pkg/kubernetes" + "github.com/vshn/billing-collector-cloudservices/pkg/log" ctrl "sigs.k8s.io/controller-runtime" ) diff --git a/pkg/cmd/exoscale.go b/pkg/cmd/exoscale.go index 2af4383..2a2ce5a 100644 --- a/pkg/cmd/exoscale.go +++ b/pkg/cmd/exoscale.go @@ -5,9 +5,9 @@ import ( "time" "github.com/urfave/cli/v2" - "github.com/vshn/exoscale-metrics-collector/pkg/exoscale" - "github.com/vshn/exoscale-metrics-collector/pkg/kubernetes" - "github.com/vshn/exoscale-metrics-collector/pkg/log" + "github.com/vshn/billing-collector-cloudservices/pkg/exoscale" + "github.com/vshn/billing-collector-cloudservices/pkg/kubernetes" + "github.com/vshn/billing-collector-cloudservices/pkg/log" ctrl "sigs.k8s.io/controller-runtime" ) diff --git a/pkg/exoscale/dbaas.go b/pkg/exoscale/dbaas.go index 6079951..280edb7 100644 --- a/pkg/exoscale/dbaas.go +++ b/pkg/exoscale/dbaas.go @@ -7,8 +7,8 @@ import ( "github.com/appuio/appuio-cloud-reporting/pkg/db" egoscale "github.com/exoscale/egoscale/v2" - "github.com/vshn/exoscale-metrics-collector/pkg/exofixtures" - "github.com/vshn/exoscale-metrics-collector/pkg/reporting" + "github.com/vshn/billing-collector-cloudservices/pkg/exofixtures" + "github.com/vshn/billing-collector-cloudservices/pkg/reporting" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" diff --git a/pkg/exoscale/dbaas_integration_test.go b/pkg/exoscale/dbaas_integration_test.go index a2b65c1..c4646fc 100644 --- a/pkg/exoscale/dbaas_integration_test.go +++ b/pkg/exoscale/dbaas_integration_test.go @@ -14,9 +14,9 @@ import ( "github.com/exoscale/egoscale/v2/oapi" "github.com/jmoiron/sqlx" "github.com/stretchr/testify/suite" - "github.com/vshn/exoscale-metrics-collector/pkg/exofixtures" - "github.com/vshn/exoscale-metrics-collector/pkg/reporting" - "github.com/vshn/exoscale-metrics-collector/pkg/test" + "github.com/vshn/billing-collector-cloudservices/pkg/exofixtures" + "github.com/vshn/billing-collector-cloudservices/pkg/reporting" + "github.com/vshn/billing-collector-cloudservices/pkg/test" exoscalev1 "github.com/vshn/provider-exoscale/apis/exoscale/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" diff --git a/pkg/exoscale/dbaas_test.go b/pkg/exoscale/dbaas_test.go index 34325f2..622c3f6 100644 --- a/pkg/exoscale/dbaas_test.go +++ b/pkg/exoscale/dbaas_test.go @@ -7,7 +7,7 @@ import ( egoscale "github.com/exoscale/egoscale/v2" "github.com/stretchr/testify/assert" - "github.com/vshn/exoscale-metrics-collector/pkg/exofixtures" + "github.com/vshn/billing-collector-cloudservices/pkg/exofixtures" ) func TestDBaaS_aggregatedDBaaS(t *testing.T) { diff --git a/pkg/exoscale/objectstorage.go b/pkg/exoscale/objectstorage.go index b56a59e..a665a21 100644 --- a/pkg/exoscale/objectstorage.go +++ b/pkg/exoscale/objectstorage.go @@ -9,8 +9,8 @@ import ( "github.com/appuio/appuio-cloud-reporting/pkg/db" egoscale "github.com/exoscale/egoscale/v2" "github.com/exoscale/egoscale/v2/oapi" - "github.com/vshn/exoscale-metrics-collector/pkg/exofixtures" - "github.com/vshn/exoscale-metrics-collector/pkg/reporting" + "github.com/vshn/billing-collector-cloudservices/pkg/exofixtures" + "github.com/vshn/billing-collector-cloudservices/pkg/reporting" exoscalev1 "github.com/vshn/provider-exoscale/apis/exoscale/v1" ctrl "sigs.k8s.io/controller-runtime" k8s "sigs.k8s.io/controller-runtime/pkg/client" diff --git a/pkg/exoscale/objectstorage_integration_test.go b/pkg/exoscale/objectstorage_integration_test.go index 7bde400..6153f11 100644 --- a/pkg/exoscale/objectstorage_integration_test.go +++ b/pkg/exoscale/objectstorage_integration_test.go @@ -13,9 +13,9 @@ import ( egoscale "github.com/exoscale/egoscale/v2" "github.com/jmoiron/sqlx" "github.com/stretchr/testify/suite" - "github.com/vshn/exoscale-metrics-collector/pkg/exofixtures" - "github.com/vshn/exoscale-metrics-collector/pkg/reporting" - "github.com/vshn/exoscale-metrics-collector/pkg/test" + "github.com/vshn/billing-collector-cloudservices/pkg/exofixtures" + "github.com/vshn/billing-collector-cloudservices/pkg/reporting" + "github.com/vshn/billing-collector-cloudservices/pkg/test" exoscalev1 "github.com/vshn/provider-exoscale/apis/exoscale/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" diff --git a/pkg/test/suite.go b/pkg/test/suite.go index ef5a680..a830e47 100644 --- a/pkg/test/suite.go +++ b/pkg/test/suite.go @@ -17,7 +17,7 @@ import ( "github.com/jmoiron/sqlx" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "github.com/vshn/exoscale-metrics-collector/pkg/reporting" + "github.com/vshn/billing-collector-cloudservices/pkg/reporting" "go.uber.org/zap/zaptest" "gopkg.in/dnaeon/go-vcr.v3/cassette" "gopkg.in/dnaeon/go-vcr.v3/recorder"