Skip to content

Commit 8c93bf5

Browse files
authored
authz: add column for actions (#3094)
``` $ kag authorizationpolicies.security.istio.io NAMESPACE NAME ACTION AGE foo httpbin ALLOW 11m ``` Just a nice helper
1 parent 764f7f8 commit 8c93bf5

File tree

5 files changed

+48
-2
lines changed

5 files changed

+48
-2
lines changed

kubernetes/customresourcedefinitions.gen.yaml

Lines changed: 28 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

security/v1/authorization_policy.pb.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

security/v1/authorization_policy.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,11 @@ option go_package="istio.io/api/security/v1";
452452
// +cue-gen:AuthorizationPolicy:scope:Namespaced
453453
// +cue-gen:AuthorizationPolicy:resource:categories=istio-io,security-istio-io,shortNames=ap,plural=authorizationpolicies
454454
// +cue-gen:AuthorizationPolicy:preserveUnknownFields:false
455+
// +cue-gen:AuthorizationPolicy:printerColumn:name=Action,type=string,JSONPath=.spec.action,description="The operation to take."
456+
// +cue-gen:AuthorizationPolicy:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp
457+
// representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations.
458+
// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
459+
// Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
455460
// -->
456461
//
457462
// <!-- go code generation tags

security/v1beta1/authorization_policy.pb.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

security/v1beta1/authorization_policy.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,11 @@ option go_package="istio.io/api/security/v1beta1";
451451
// +cue-gen:AuthorizationPolicy:scope:Namespaced
452452
// +cue-gen:AuthorizationPolicy:resource:categories=istio-io,security-istio-io,shortNames=ap,plural=authorizationpolicies
453453
// +cue-gen:AuthorizationPolicy:preserveUnknownFields:false
454+
// +cue-gen:AuthorizationPolicy:printerColumn:name=Action,type=string,JSONPath=.spec.action,description="The operation to take."
455+
// +cue-gen:AuthorizationPolicy:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp
456+
// representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations.
457+
// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
458+
// Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata"
454459
// -->
455460
//
456461
// <!-- go code generation tags

0 commit comments

Comments
 (0)