Skip to content

Commit

Permalink
Merge pull request #37 from caesarxuchao/cluster-scoped-migration-API
Browse files Browse the repository at this point in the history
Cluster scoped migration API
  • Loading branch information
k8s-ci-robot authored Aug 20, 2019
2 parents c80e838 + 2366864 commit 60dee53
Show file tree
Hide file tree
Showing 20 changed files with 49 additions and 136 deletions.
2 changes: 1 addition & 1 deletion manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
listKind: StorageVersionMigrationList
plural: storageversionmigrations
singular: storageversionmigration
scope: Namespaced
scope: Cluster
subresources:
status: {}
version: v1alpha1
Expand Down
8 changes: 3 additions & 5 deletions manifests/namespace-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ rules:
resources: ["customresourcedefinitions"]
verbs: ["create", "delete", "get"]
---
kind: Role
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: storage-version-migration-initializer
namespace: NAMESPACE
rules:
- apiGroups: ["migration.k8s.io"]
resources: ["storageversionmigrations"]
Expand Down Expand Up @@ -85,16 +84,15 @@ roleRef:
name: storage-version-migration-crd-creator
apiGroup: rbac.authorization.k8s.io
---
kind: RoleBinding
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: storage-version-migration-initializer
namespace: NAMESPACE
subjects:
- kind: ServiceAccount
name: default
namespace: NAMESPACE
roleRef:
kind: Role
kind: ClusterRole
name: storage-version-migration-initializer
apiGroup: rbac.authorization.k8s.io
1 change: 1 addition & 0 deletions pkg/apis/migration/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +genclient:nonNamespaced

// StorageVersionMigration represents a migration of stored data to the latest
// storage version.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/clients/informer/migration/v1alpha1/interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions pkg/clients/lister/migration/v1alpha1/expansion_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 5 additions & 34 deletions pkg/clients/lister/migration/v1alpha1/storageversionmigration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 60dee53

Please sign in to comment.