With the following command: `kubectl -n ns create secret generic test2 --from-literal=username=xxxxxx` I am able to create secrets. I would like to find a way (programmatically) to use a list instead of using literal=username=xxxxxx because sometimes I need more than one literal.

What I tried is the following:

```
NS=test-ns
SF=secrets.yaml
unset SECRET_NAMES
value+=(username)
value+=(password)
echo "" > $SF
for value in "${value[@]}"
do
        kubectl -n ${NS} create secret generic test2 \
                --from-literal=$value=xxxxxx \
                -o yaml >${NS}-$secret_name.yaml
done
cat $SF

```

but it failed because it creates first the username and then it not able to create the password because the secret test2 is already exits. Do you have any idea how can I solve this issue?