Skip to content

Commit

Permalink
Added tridentconfigurator crd permissions for operator installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sphadnis007 authored Apr 17, 2024
1 parent b2c5790 commit 1fdbe7b
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deploy/bundle_post_1_25.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ rules:
- watch
- update
- patch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- create
- apiGroups:
- snapshot.storage.k8s.io
resources:
Expand Down Expand Up @@ -230,6 +236,8 @@ rules:
- tridentprovisioners/status # Required to update Tprov's status section
- tridentorchestrators # Required for Torc
- tridentorchestrators/status # Required to update Torc's status section
- tridentconfigurators # Required for tconf
- tridentconfigurators/status # Required to update tconf's status section
verbs:
- get
- list
Expand Down
8 changes: 8 additions & 0 deletions deploy/bundle_pre_1_25.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ rules:
- watch
- update
- patch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- create
- apiGroups:
- snapshot.storage.k8s.io
resources:
Expand Down Expand Up @@ -230,6 +236,8 @@ rules:
- tridentprovisioners/status # Required to update Tprov's status section
- tridentorchestrators # Required for Torc
- tridentorchestrators/status # Required to update Torc's status section
- tridentconfigurators # Required for tconf
- tridentconfigurators/status # Required to update tconf's status section
verbs:
- get
- list
Expand Down
8 changes: 8 additions & 0 deletions deploy/clusterrole_post_1_25.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ rules:
- watch
- update
- patch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- create
- apiGroups:
- snapshot.storage.k8s.io
resources:
Expand Down Expand Up @@ -222,6 +228,8 @@ rules:
- tridentprovisioners/status # Required to update Tprov's status section
- tridentorchestrators # Required for Torc
- tridentorchestrators/status # Required to update Torc's status section
- tridentconfigurators # Required for tconf
- tridentconfigurators/status # Required to update tconf's status section
verbs:
- get
- list
Expand Down
8 changes: 8 additions & 0 deletions deploy/clusterrole_pre_1_25.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ rules:
- watch
- update
- patch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- create
- apiGroups:
- snapshot.storage.k8s.io
resources:
Expand Down Expand Up @@ -222,6 +228,8 @@ rules:
- tridentprovisioners/status # Required to update Tprov's status section
- tridentorchestrators # Required for Torc
- tridentorchestrators/status # Required to update Torc's status section
- tridentconfigurators # Required for tconf
- tridentconfigurators/status # Required to update tconf's status section
verbs:
- get
- list
Expand Down
54 changes: 54 additions & 0 deletions deploy/crds/trident.netapp.io_tridentconfigurators_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: tridentconfigurators.trident.netapp.io
spec:
group: trident.netapp.io
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true
subresources:
status: {}
additionalPrinterColumns:
- name: Phase
type: string
description: The backend config phase
priority: 0
jsonPath: .status.phase
- name: Status
type: string
description: The result of the last operation
priority: 0
jsonPath: .status.lastOperationStatus
- name: Cloud Provider
type: string
description: The name of cloud provider
priority: 0
jsonPath: .status.cloudProvider
- name: Storage Driver
type: string
description: The storage driver type
priority: 1
jsonPath: .spec.storageDriverName
- name: Deletion Policy
type: string
description: The deletion policy
priority: 1
jsonPath: .status.deletionPolicy
scope: Cluster
names:
plural: tridentconfigurators
singular: tridentconfigurator
kind: TridentConfigurator
shortNames:
- tconf
- tconfigurator
categories:
- trident
- trident-internal
- trident-external

0 comments on commit 1fdbe7b

Please sign in to comment.