Skip to content

Commit

Permalink
make downstream for v3.0.1 (#215)
Browse files Browse the repository at this point in the history
* make downstream

* make downstream-vendor
  • Loading branch information
maskarb authored Oct 17, 2023
1 parent 8737fb0 commit b5a2c05
Show file tree
Hide file tree
Showing 4,168 changed files with 1,476,727 additions and 29,471 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ UPSTREAM_UPPERCASE = Koku
DOWNSTREAM_LOWERCASE = costmanagement
DOWNSTREAM_UPPERCASE = CostManagement
.PHONY: downstream
downstream:
go mod vendor
downstream: ## Generate the code changes necessary for the downstream image.
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' {} +
Expand All @@ -304,6 +303,10 @@ downstream:
$(MAKE) generate
$(MAKE) manifests

.PHONY: downstream-vendor
downstream-vendor: ## Run `go mod vendor`.
go mod vendor

##@ Build Dependencies

## Location to install dependencies to
Expand Down
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
192 changes: 96 additions & 96 deletions api/v1beta1/metricsconfig_types.go

Large diffs are not rendered by default.

134 changes: 67 additions & 67 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 b5a2c05

Please sign in to comment.