add managed secret creation policy

This commit is contained in:
Maidul Islam
2024-03-19 14:58:17 -04:00
parent 02b2851990
commit 3eef023c30
12 changed files with 112 additions and 51 deletions
@@ -96,6 +96,15 @@ spec:
type: string
managedSecretReference:
properties:
creationPolicy:
default: Orphan
description: 'The Kubernetes Secret creation policy. Enum with
values: ''Owner'', ''Orphan''. Owner creates the secret and
sets .metadata.ownerReferences of the InfisicalSecret CRD that
created it. Orphan will not set the secret owner. This will
result in the secret being orphaned and not deleted when the
resource is deleted.'
type: string
secretName:
description: The name of the Kubernetes Secret
type: string
+3 -2
View File
@@ -5,9 +5,9 @@ metadata:
labels:
label-to-be-passed-to-managed-secret: sample-value
annotations:
example.com/annotation-to-be-passed-to-managed-secret: "sample-value"
reflector.v1.k8s.emberstack.com/reflection-allowed: 'true'
spec:
hostAPI: https://app.infisical.com/api
hostAPI: http://localhost:8888/api
resyncInterval: 10
authentication:
serviceAccount:
@@ -26,6 +26,7 @@ spec:
managedSecretReference:
secretName: managed-secret
secretNamespace: default
creationPolicy: "Orphan" ## Owner | Orphan
# secretType: kubernetes.io/dockerconfigjson
# # To be depreciated soon