func DeleteSecret(deployment, key string) error {
	collection := getSecretsCollectionName(deployment)
	return store.Client().Remove(collection, key)
}
DeleteSecret deletes a deployment secret
package deployment
import (
	"encoding/json"
	"fmt"
	"regexp"
	"strings"
	"github.com/krane/krane/internal/constants"
	"github.com/krane/krane/internal/store"
)
type Secret struct {
	Deployment string `json:"deployment"`
	Key        string `json:"key"`
	Value      string `json:"value"`
	Alias      string `json:"alias"`
}
func AddSecret(deployment, key, value string) (*Secret, error) {
	if !isValidSecretKey(key) {
		return &Secret{}, fmt.Errorf("invalid secret name %s", key)
	}
	secret := &Secret{
		Deployment: deployment,
		Key:        key,
		Value:      value,
		Alias:      formatSecretAlias(key),
	}
	collection := getSecretsCollectionName(deployment)
	bytes, _ := secret.SerializeSecret()
	err := store.Client().Put(collection, secret.Key, bytes)
	if err != nil {
		return nil, err
	}
	return secret, nil
}