From 46c26643a7f5702b6b32f027a6afefa20f8944e6 Mon Sep 17 00:00:00 2001 From: Aneesh Nireshwalia Date: Wed, 1 Feb 2023 01:34:34 -0700 Subject: [PATCH] Add SecretString support for options --- internal/options/options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/options/options.go b/internal/options/options.go index 7490ac430..1f606b617 100644 --- a/internal/options/options.go +++ b/internal/options/options.go @@ -211,6 +211,10 @@ func (o Options) Apply(ns string, dst interface{}) error { v.Field(i).SetInt(int64(d)) + case "SecretString": + ss := NewSecretString(value) + v.Field(i).Set(reflect.ValueOf(ss)) + default: panic("type " + v.Type().Field(i).Type.Name() + " not handled") }