functions/kubernetes/secrets/CreateSecretWithMultipleValues.ps1
<#
.SYNOPSIS CreateSecretWithMultipleValues .DESCRIPTION CreateSecretWithMultipleValues .INPUTS CreateSecretWithMultipleValues - The name of CreateSecretWithMultipleValues .OUTPUTS None .EXAMPLE CreateSecretWithMultipleValues .EXAMPLE CreateSecretWithMultipleValues #> function CreateSecretWithMultipleValues() { [CmdletBinding()] param ( [parameter (Mandatory = $true) ] [string] $secretname , [parameter (Mandatory = $true) ] [string] $namespace , [parameter (Mandatory = $true) ] [string] $secret1 , [parameter (Mandatory = $true) ] [string] $secret2 , [parameter (Mandatory = $true) ] [string] $secret3 ) Write-Verbose 'CreateSecretWithMultipleValues: Starting' # kubectl create secret generic $secretname -n $namespace --from-literal=resourcegroup="${resourceGroup}" --from-literal=azurestorageaccountname="${storageAccountName}" --from-literal=azurestorageaccountkey="${storageKey}" kubectl create secret generic $secretname -n $namespace --from-literal=$secret1 --from-literal=$secret2 --from-literal=$secret3 Write-Verbose 'CreateSecretWithMultipleValues: Done' } Export-ModuleMember -Function "CreateSecretWithMultipleValues" |