Skip to content

Commit

Permalink
api: remove v1beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
shunki-fujita committed Nov 14, 2023
1 parent 32bd09f commit ce74436
Show file tree
Hide file tree
Showing 26 changed files with 58 additions and 27,153 deletions.
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,10 @@ manifests: controller-gen kustomize yq ## Generate WebhookConfiguration, Cluster
.PHONY: generate
generate: controller-gen conversion-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
$(CONVERSION_GEN) -i ./api/v1beta1/ -o . -O zz_generated.conversion --go-header-file hack/boilerplate.go.txt

.PHONY: apidoc
apidoc: crd-to-markdown $(wildcard api/*/*_types.go)
$(CRD_TO_MARKDOWN) --links docs/links.csv -f api/v1beta1/mysqlcluster_types.go -f api/v1beta1/job_types.go -n MySQLCluster > docs/crd_mysqlcluster_v1beta1.md
$(CRD_TO_MARKDOWN) --links docs/links.csv -f api/v1beta2/mysqlcluster_types.go -f api/v1beta2/job_types.go -n MySQLCluster > docs/crd_mysqlcluster_v1beta2.md
$(CRD_TO_MARKDOWN) --links docs/links.csv -f api/v1beta1/backuppolicy_types.go -f api/v1beta1/job_types.go -n BackupPolicy > docs/crd_backuppolicy_v1beta1.md
$(CRD_TO_MARKDOWN) --links docs/links.csv -f api/v1beta2/backuppolicy_types.go -f api/v1beta2/job_types.go -n BackupPolicy > docs/crd_backuppolicy_v1beta2.md

.PHONY: book
Expand Down
16 changes: 2 additions & 14 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ resources:
domain: cybozu.com
group: moco
kind: MySQLCluster
path: github.com/cybozu-go/moco/api/v1beta1
version: v1beta1
webhooks:
conversion: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
controller: false
domain: cybozu.com
group: moco
kind: MySQLCluster
path: github.com/cybozu-go/moco/api/v1beta2
version: v1beta2
webhooks:
Expand All @@ -35,8 +23,8 @@ resources:
domain: cybozu.com
group: moco
kind: BackupPolicy
path: github.com/cybozu-go/moco/api/v1beta1
version: v1beta1
path: github.com/cybozu-go/moco/api/v1beta2
version: v1beta2
webhooks:
validation: true
webhookVersion: v1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ You can then create a three-instance MySQL cluster as follows:

```console
$ cat > mycluster.yaml <<'EOF'
apiVersion: moco.cybozu.com/v1beta1
apiVersion: moco.cybozu.com/v1beta2
kind: MySQLCluster
metadata:
namespace: default
Expand Down
243 changes: 0 additions & 243 deletions api/v1beta1/conversion.go

This file was deleted.

Loading

0 comments on commit ce74436

Please sign in to comment.