Skip to content

Commit

Permalink
Merge pull request #25 from weaveworks/tweaks
Browse files Browse the repository at this point in the history
Regenerate and fix the namespace.
  • Loading branch information
bigkevmcd authored Sep 21, 2022
2 parents eb25001 + 3cbb0d6 commit b9c7555
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# VERSION defines the project version for the bundle.
# Update this value when you upgrade the version of your project.
# To re-generate a bundle for another specific version without changing the standard setup, you can:
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
VERSION ?= 0.0.1

# Image URL to use all building/pushing image targets
IMG ?= controller:latest
Expand Down Expand Up @@ -47,6 +53,11 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

.PHONY: release
release: manifests kustomize ## Generate a release file
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default > cluster-controller-v$(VERSION).yaml

.PHONY: fmt
fmt: ## Run go fmt against code.
go fmt ./...
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ limitations under the License.
*/

// Package v1alpha1 contains API Schema definitions for the gitops v1alpha1 API group
//+kubebuilder:object:generate=true
//+groupName=gitops.weave.works
// +kubebuilder:object:generate=true
// +groupName=gitops.weave.works
package v1alpha1

import (
Expand Down
2 changes: 1 addition & 1 deletion config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Adds namespace to all resources.
namespace: cluster-controller-system
namespace: flux-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
Expand Down

0 comments on commit b9c7555

Please sign in to comment.