Skip to content

Commit

Permalink
Fix build improvement (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergicastro authored Aug 9, 2024
1 parent 62adea8 commit 8b88fcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
.PHONY: generate
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
go generate ./...

.PHONY: fmt
fmt: ## Run go fmt against code.
Expand All @@ -66,7 +67,6 @@ test: build envtest kind ## Run tests.

.PHONY: build
build: manifests generate fmt vet $(addprefix build/,$(subst $(comma),$(space),$(PLATFORMS))) ## Build manager binary.
go generate

build/%: PLATFORM=$(*)
build/%: GOARCH=$(notdir $(PLATFORM))
Expand Down
18 changes: 9 additions & 9 deletions controllers/spec/template/yaml/Templates.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package yaml
package yaml

// This file is auto generated by the script in 'WriteYamlTemplatesInGoFile.go'.
// Any manual modification to this file will be lost during next compilation.
// This file is auto generated by the script in 'WriteYamlTemplatesInGoFile.go'.
// Any manual modification to this file will be lost during next compilation.

const (
BackUpCronJobTemplate = `apiVersion: batch/v1
BackUpCronJobTemplate = `apiVersion: batch/v1
kind: CronJob
metadata:
name: backup-job-postgres-name
Expand Down Expand Up @@ -65,7 +65,7 @@ spec:
- name: BACKUP_SOURCE_DB_HOST_NAME
value: toBeReplaced
`
BaseConfigMapTemplate = `apiVersion: v1
BaseConfigMapTemplate = `apiVersion: v1
kind: ConfigMap
metadata:
name: base-kubegres-config
Expand Down Expand Up @@ -318,7 +318,7 @@ data:
touch $promotionTriggerFilePath
`
PrimaryServiceTemplate = `apiVersion: v1
PrimaryServiceTemplate = `apiVersion: v1
kind: Service
metadata:
name: postgres-name
Expand All @@ -335,7 +335,7 @@ spec:
app: postgres-name
replicationRole: primary
`
PrimaryStatefulSetTemplate = `apiVersion: apps/v1
PrimaryStatefulSetTemplate = `apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres-name-0
Expand Down Expand Up @@ -444,7 +444,7 @@ spec:
mountPath: /etc/pg_hba.conf
subPath: pg_hba.conf
`
ReplicaServiceTemplate = `apiVersion: v1
ReplicaServiceTemplate = `apiVersion: v1
kind: Service
metadata:
name: postgres-name-replica
Expand All @@ -461,7 +461,7 @@ spec:
app: postgres-name
replicationRole: replica
`
ReplicaStatefulSetTemplate = `apiVersion: apps/v1
ReplicaStatefulSetTemplate = `apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres-name-1
Expand Down

0 comments on commit 8b88fcd

Please sign in to comment.