Documentation
¶
Index ¶
- Constants
- Variables
- func BuildKubernetesSecretData(fields []model.ItemField, urls []model.ItemURL, files []model.File, ...) map[string][]byte
- func BuildKubernetesSecretFromOnePasswordItem(name, namespace string, annotations map[string]string, ...) *corev1.Secret
- func CreateKubernetesSecretFromItem(ctx context.Context, kubeClient kubernetesClient.Client, ...) error
Constants ¶
View Source
const ItemPathAnnotation = OnepasswordPrefix + "/item-path"
View Source
const NameAnnotation = OnepasswordPrefix + "/item-name"
View Source
const OnepasswordPrefix = "operator.1password.io"
View Source
const RestartDeploymentsAnnotation = OnepasswordPrefix + "/auto-restart"
View Source
const VersionAnnotation = OnepasswordPrefix + "/item-version"
Variables ¶
View Source
var ErrCannotUpdateSecretType = errors.New("cannot change secret type: secret type is immutable")
Functions ¶
func CreateKubernetesSecretFromItem ¶
func CreateKubernetesSecretFromItem( ctx context.Context, kubeClient kubernetesClient.Client, secretName, namespace string, item *model.Item, autoRestart string, labels map[string]string, secretAnnotations map[string]string, secretType string, ownerRef *metav1.OwnerReference, allowEmptyValues bool, ) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.