Skip to content

Commit

Permalink
Merge commit '8ca918603888ab6e4dbf672a4205f3c56acf2d07' into sync_us-…
Browse files Browse the repository at this point in the history
…-master

Signed-off-by: DF Build Team <[email protected]>
  • Loading branch information
DF Build Team committed Feb 6, 2025
2 parents 740c6b1 + 8ca9186 commit deaf502
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 10 deletions.
9 changes: 9 additions & 0 deletions deploy/charts/rook-ceph/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ rules:
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
- apiGroups: ["authentication.k8s.io"]
resources: ["tokenreviews"]
verbs: ["create"]
{{- end }}
---
{{- if and .Values.csi.csiAddons .Values.csi.csiAddons.enabled }}
Expand All @@ -105,6 +108,9 @@ rules:
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
- apiGroups: ["authentication.k8s.io"]
resources: ["tokenreviews"]
verbs: ["create"]
---
{{- end }}
kind: Role
Expand All @@ -129,5 +135,8 @@ rules:
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
- apiGroups: ["authentication.k8s.io"]
resources: ["tokenreviews"]
verbs: ["create"]
{{- end }}
{{- end }}
9 changes: 9 additions & 0 deletions deploy/examples/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ rules:
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
- apiGroups: ["authentication.k8s.io"]
resources: ["tokenreviews"]
verbs: ["create"]
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -814,6 +817,9 @@ rules:
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
- apiGroups: ["authentication.k8s.io"]
resources: ["tokenreviews"]
verbs: ["create"]
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -836,6 +842,9 @@ rules:
- apiGroups: ["apps"]
resources: ["deployments/finalizers", "daemonsets/finalizers"]
verbs: ["update"]
- apiGroups: ["authentication.k8s.io"]
resources: ["tokenreviews"]
verbs: ["create"]
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
7 changes: 0 additions & 7 deletions deploy/examples/create-external-cluster-resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,12 +553,6 @@ def validate_rgw_endpoint_tls_cert(self):
contents = f.read()
return contents.rstrip()

def _check_conflicting_options(self):
if not self._arg_parser.upgrade and not self._arg_parser.rbd_data_pool_name:
raise ExecutionFailureException(
"Either '--upgrade' or '--rbd-data-pool-name <pool_name>' should be specified"
)

def _invalid_endpoint(self, endpoint_str):
# extract the port by getting the last split on `:` delimiter
try:
Expand Down Expand Up @@ -651,7 +645,6 @@ def __init__(self, arg_list=None):
self._arg_parser = self.gen_arg_parser(args_to_parse=arg_list)
if self._arg_parser.config_file:
self.config = self.parse_config_file(self._arg_parser.config_file)
self._check_conflicting_options()
self.run_as_user = self._arg_parser.run_as_user
self.output_file = self._arg_parser.output
self.ceph_conf = self._arg_parser.ceph_conf
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ require (
github.com/rook/rook/pkg/apis v0.0.0-20241216163035-3170ac6a0c58
github.com/sethvargo/go-password v0.3.1
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/spf13/pflag v1.0.6
github.com/stretchr/testify v1.10.0
github.com/sykesm/zap-logfmt v0.0.4
go.uber.org/automaxprocs v1.6.0
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,9 @@ github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzu
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ require (
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/ryanuber/go-glob v1.0.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/x448/float16 v0.8.4 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/net v0.33.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,9 @@ github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzu
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8=
Expand Down

0 comments on commit deaf502

Please sign in to comment.