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

[v2] triggerauth CRD: show configured parameters #795

Merged
merged 1 commit into from
Apr 29, 2020
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
11 changes: 11 additions & 0 deletions deploy/crds/keda.sh_triggerauthentications_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ kind: CustomResourceDefinition
metadata:
name: triggerauthentications.keda.sh
spec:
additionalPrinterColumns:
- JSONPath: .spec.podIdentity.provider
name: PodIdentity
type: string
- JSONPath: .spec.secretTargetRef[*].name
name: Secret
type: string
- JSONPath: .spec.env[*].name
name: Env
type: string
group: keda.sh
names:
kind: TriggerAuthentication
Expand All @@ -13,6 +23,7 @@ spec:
- triggerauth
singular: triggerauthentication
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: TriggerAuthentication defines how a trigger can authenticate
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/keda/v1alpha1/triggerauthentication_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import (
// +genclient
// +k8s:openapi-gen=true
// +kubebuilder:resource:path=triggerauthentications,scope=Namespaced,shortName=ta;triggerauth
// +kubebuilder:printcolumn:name="PodIdentity",type="string",JSONPath=".spec.podIdentity.provider"
// +kubebuilder:printcolumn:name="Secret",type="string",JSONPath=".spec.secretTargetRef[*].name"
// +kubebuilder:printcolumn:name="Env",type="string",JSONPath=".spec.env[*].name"
type TriggerAuthentication struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down