From 18456c97dd41f5154bea4765209d4c3911732eda Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 10 Jun 2024 15:59:51 -0700 Subject: [PATCH] Fix SelfSubjectNamespaceAccessReview sample Signed-off-by: Tamal Saha --- .../v1alpha1/selfsubjectnamespaceaccessreview.go | 16 ++++++++++++++++ artifacts/nsaccessreview.yaml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/apis/identity/v1alpha1/selfsubjectnamespaceaccessreview.go b/apis/identity/v1alpha1/selfsubjectnamespaceaccessreview.go index e5eaa8a80..3aa4c66d5 100644 --- a/apis/identity/v1alpha1/selfsubjectnamespaceaccessreview.go +++ b/apis/identity/v1alpha1/selfsubjectnamespaceaccessreview.go @@ -1,3 +1,19 @@ +/* +Copyright AppsCode Inc. and Contributors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( diff --git a/artifacts/nsaccessreview.yaml b/artifacts/nsaccessreview.yaml index 12047c85c..fbf600fed 100644 --- a/artifacts/nsaccessreview.yaml +++ b/artifacts/nsaccessreview.yaml @@ -1,7 +1,7 @@ apiVersion: identity.k8s.appscode.com/v1alpha1 kind: SelfSubjectNamespaceAccessReview -metadata: - name: "abc" +# metadata: +# name: "abc" spec: resourceAttributes: - verb: "get"