Skip to content
Merged
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ go-fix: ## Run go fix on all packages

.PHONY: generate
generate: ## Generate crd, crd-docs, deepcopy functions, and rbac
$(MAKE) go-fix
$(MAKE) generate-all
$(MAKE) go-fix

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we moved this here? the idea was to fix code first and then generate all based on the new code. for example it may affect godoc annotations that affect generation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imagine you have conflicts in zz_generated.deepcopy.go after a merge or rebase which happens fairly often. running go fix before go generate makes it impossible to fix conflicts by generating the code. i hit this issue and that's why moved to the end


.PHONY: generate-all
generate-all: kustomize
Expand Down
681 changes: 681 additions & 0 deletions build/crd/percona/generated/pgv2.percona.com_perconapgclusters.yaml

Large diffs are not rendered by default.

681 changes: 681 additions & 0 deletions config/crd/bases/pgv2.percona.com_perconapgclusters.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10819,6 +10819,18 @@ spec:
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
logicalReplicas:
items:
properties:
name:
type: string
required:
- name
type: object
type: array
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
metadata:
properties:
annotations:
Expand Down
21 changes: 16 additions & 5 deletions config/rbac/cluster/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ rules:
- ''
resources:
- configmaps
- pods
- secrets
- serviceaccounts
- persistentvolumeclaims
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ''
Expand Down Expand Up @@ -49,27 +48,39 @@ rules:
- apiGroups:
- ''
resources:
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- deployments
- replicasets
verbs:
- create
- delete
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
Expand Down
21 changes: 16 additions & 5 deletions config/rbac/namespace/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ rules:
- ''
resources:
- configmaps
- pods
- secrets
- serviceaccounts
- persistentvolumeclaims
- services
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ''
Expand Down Expand Up @@ -49,27 +48,39 @@ rules:
- apiGroups:
- ''
resources:
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- deployments
- replicasets
verbs:
- create
- delete
- get
- list
- patch
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
Expand Down
Loading
Loading