DeploymentOptionsWithoutSecrets returns a copy of the OptionSet with secret values omitted.
(set serpent.OptionSet)
| 4923 | |
| 4924 | // DeploymentOptionsWithoutSecrets returns a copy of the OptionSet with secret values omitted. |
| 4925 | func DeploymentOptionsWithoutSecrets(set serpent.OptionSet) serpent.OptionSet { |
| 4926 | cpy := make(serpent.OptionSet, 0, len(set)) |
| 4927 | for _, opt := range set { |
| 4928 | cpyOpt := opt |
| 4929 | if IsSecretDeploymentOption(cpyOpt) { |
| 4930 | cpyOpt.Value = nil |
| 4931 | } |
| 4932 | cpy = append(cpy, cpyOpt) |
| 4933 | } |
| 4934 | return cpy |
| 4935 | } |
| 4936 | |
| 4937 | // WithoutSecrets returns a copy of the config without secret values. |
| 4938 | func (c *DeploymentValues) WithoutSecrets() (*DeploymentValues, error) { |
no test coverage detected