Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
deploy: use crds Kustomization from the API repo
Instead of listing all CRD manifests and patching in the required
`api-approved` label in a Kustomization within this repository, use the
new Kustomization layer from the API repository as a base. This
simplifies the deployment machinery in this project.

See: kubernetes-retired/container-object-storage-interface-api#13
  • Loading branch information
NicolasT committed Dec 17, 2020
commit 7c519fe167fc38a6750298a25602a955d9235b70
22 changes: 4 additions & 18 deletions deploy/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
bases:
# CRDs
- https://raw.githubusercontent.com/kubernetes-sigs/container-object-storage-interface-api/master/crds/objectstorage.k8s.io_bucketaccessclasses.yaml
- https://raw.githubusercontent.com/kubernetes-sigs/container-object-storage-interface-api/master/crds/objectstorage.k8s.io_bucketaccesses.yaml
- https://raw.githubusercontent.com/kubernetes-sigs/container-object-storage-interface-api/master/crds/objectstorage.k8s.io_bucketaccessrequests.yaml
- https://raw.githubusercontent.com/kubernetes-sigs/container-object-storage-interface-api/master/crds/objectstorage.k8s.io_bucketclasses.yaml
- https://raw.githubusercontent.com/kubernetes-sigs/container-object-storage-interface-api/master/crds/objectstorage.k8s.io_bucketrequests.yaml
- https://raw.githubusercontent.com/kubernetes-sigs/container-object-storage-interface-api/master/crds/objectstorage.k8s.io_buckets.yaml
- github.com/kubernetes-sigs/container-object-storage-interface-api/crds
Copy link
Contributor

Choose a reason for hiding this comment

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

👍


resources:
# Controller
- sa.yaml
- rbac.yaml
- deployment.yaml

patches:
# CRDs
- target:
kind: CustomResourceDefinition
patch: |-
- op: add
path: /metadata/annotations
value:
controller-gen.kubebuilder.io/version: (devel)
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/container-object-storage-interface-api/pull/2