Skip to content

Commit

Permalink
Report all namespace access in SelfSubjectNamespaceAccessReview (#479)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Sep 11, 2024
1 parent fa8ef48 commit 0451a5c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
8 changes: 8 additions & 0 deletions apis/identity/v1alpha1/openapi_generated.go

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

5 changes: 3 additions & 2 deletions apis/identity/v1alpha1/selfsubjectnamespaceaccessreview.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ type SelfSubjectNamespaceAccessReviewSpec struct {
}

type SubjectAccessNamespaceReviewStatus struct {
Namespaces []string `json:"namespaces,omitempty"`
Projects map[string][]string `json:"projects,omitempty"`
AllNamespaces bool `json:"allNamespaces"`
Namespaces []string `json:"namespaces,omitempty"`
Projects map[string][]string `json:"projects,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ spec:
description: Status is filled in by the server and indicates whether the
request is allowed or not
properties:
allNamespaces:
type: boolean
namespaces:
items:
type: string
Expand All @@ -106,6 +108,8 @@ spec:
type: string
type: array
type: object
required:
- allNamespaces
type: object
required:
- spec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ spec:
name: clickhousebindings
scope: Namespaced
version: v1alpha1
ui:
editor:
name: catalogappscodecom-clickhousebinding-editor
sourceRef:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.5.0
enforceQuota: false

0 comments on commit 0451a5c

Please sign in to comment.