Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make downstream for v3.0.1 #215

Merged
merged 2 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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