Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report all namespace access in SelfSubjectNamespaceAccessReview #479

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
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
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
Loading