Skip to content

Commit

Permalink
Merge pull request #192 from utilitywarehouse/default-delegate-ref
Browse files Browse the repository at this point in the history
Use a default for delegateServiceAccountSecretRef
  • Loading branch information
alkar authored Jan 8, 2021
2 parents c2383fc + e4c1481 commit 4c0ecb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/kubeapplier/v1alpha1/waybill_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type WaybillSpec struct {
// that will be passed by kube-applier to kubectl when performing apply
// runs.
// +required
// +kubebuilder:default=kube-applier-delegate-token
DelegateServiceAccountSecretRef *string `json:"delegateServiceAccountSecretRef"`

// DryRun enables the dry-run flag when applying this Waybill.
Expand Down
1 change: 1 addition & 0 deletions manifests/base/crd/kube-applier.io_waybills.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ spec:
applied by scheduled or polling runs.
type: boolean
delegateServiceAccountSecretRef:
default: kube-applier-delegate-token
description: DelegateServiceAccountSecretRef references a Secret of
type kubernetes.io/service-account-token in the same namespace as
the Waybill that will be passed by kube-applier to kubectl when
Expand Down

0 comments on commit 4c0ecb2

Please sign in to comment.