Skip to content

Commit

Permalink
downstream v2.0.0 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Apr 19, 2023
1 parent ab3dee4 commit 5806b17
Show file tree
Hide file tree
Showing 119 changed files with 616 additions and 27,124 deletions.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,23 @@ catalog-build: opm
.PHONY: catalog-push
catalog-push: ## Push the catalog image.
$(MAKE) docker-push IMG=$(CATALOG_IMG)

REMOVE_FILES = koku-metrics-operator/
UPSTREAM_LOWERCASE = koku
UPSTREAM_UPPERCASE = Koku
DOWNSTREAM_LOWERCASE = costmanagement
DOWNSTREAM_UPPERCASE = CostManagement
downstream:
rm -rf $(REMOVE_FILES)
# sed replace everything but the Makefile
- LC_ALL=C find api/v1beta1 config/* docs/* -type f -exec sed -i -- 's/$(UPSTREAM_UPPERCASE)/$(DOWNSTREAM_UPPERCASE)/g' {} +
- LC_ALL=C find api/v1beta1 config/* docs/* -type f -exec sed -i -- 's/$(UPSTREAM_LOWERCASE)/$(DOWNSTREAM_LOWERCASE)/g' {} +
# fix the cert
- sed -i -- 's/ca-certificates.crt/ca-bundle.crt/g' crhchttp/http_cloud_dot_redhat.go
- sed -i -- 's/isCertified bool = false/isCertified bool = true/g' packaging/packaging.go
# clean up the other files
- git clean -fx
# mv the sample to the correctly named file
cp config/samples/koku-metrics-cfg_v1beta1_kokumetricsconfig.yaml config/samples/costmanagement-metrics-cfg_v1beta1_costmanagementmetricsconfig.yaml
$(MAKE) generate
$(MAKE) manifests
6 changes: 3 additions & 3 deletions api/v1beta1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// SPDX-License-Identifier: Apache-2.0
//

// Package v1beta1 contains API Schema definitions for the koku-metrics-cfg v1beta1 API group
// Package v1beta1 contains API Schema definitions for the costmanagement-metrics-cfg v1beta1 API group
// +kubebuilder:object:generate=true
// +groupName=koku-metrics-cfg.openshift.io
// +groupName=costmanagement-metrics-cfg.openshift.io
package v1beta1

import (
Expand All @@ -17,7 +17,7 @@ import (

var (
// NamePrefix is the prefix used to distinguish upstream and downstream operators
NamePrefix = "koku"
NamePrefix = "costmanagement"

// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: fmt.Sprintf("%s-metrics-cfg.openshift.io", NamePrefix), Version: "v1beta1"}
Expand Down
218 changes: 109 additions & 109 deletions api/v1beta1/metricsconfig_types.go

Large diffs are not rendered by default.

132 changes: 66 additions & 66 deletions api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5806b17

Please sign in to comment.