You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,6 +305,28 @@ spec:
305
305
306
306
If this property is omitted all secrets are synced.
307
307
308
+
## Specifying Labels and Annotations on a Managed Secret
309
+
310
+
You can specify labels and annotations that the operator should add to the managed Kubernetes `Secret` resource. To do this, specify them in the `managedSecret.labels` and `managedSecret.annotations` spec properties.
311
+
312
+
```yaml
313
+
apiVersion: secrets.doppler.com/v1alpha1
314
+
kind: DopplerSecret
315
+
metadata:
316
+
name: dopplersecret-test
317
+
namespace: doppler-operator-system
318
+
spec:
319
+
tokenSecret:
320
+
name: doppler-token-secret
321
+
managedSecret:
322
+
name: doppler-test-secret
323
+
namespace: default
324
+
labels:
325
+
doppler-secret-label: test
326
+
annotations:
327
+
doppler-secret-annotation: test
328
+
```
329
+
308
330
## Kubernetes Secret Types and Value Encoding
309
331
310
332
By default, the operator syncs secret values as they are in Doppler to an [`Opaque` Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/secret/) as Key / Value pairs.
Copy file name to clipboardExpand all lines: config/crd/bases/secrets.doppler.com_dopplersecrets.yaml
+40-46Lines changed: 40 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,9 @@
1
-
2
1
---
3
2
apiVersion: apiextensions.k8s.io/v1
4
3
kind: CustomResourceDefinition
5
4
metadata:
6
5
annotations:
7
-
controller-gen.kubebuilder.io/version: v0.4.1
8
-
creationTimestamp: null
6
+
controller-gen.kubebuilder.io/version: v0.17.1
9
7
name: dopplersecrets.secrets.doppler.com
10
8
spec:
11
9
group: secrets.doppler.com
@@ -22,14 +20,19 @@ spec:
22
20
description: DopplerSecret is the Schema for the dopplersecrets API
23
21
properties:
24
22
apiVersion:
25
-
description: 'APIVersion defines the versioned schema of this representation
26
-
of an object. Servers should convert recognized schemas to the latest
27
-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23
+
description: |-
24
+
APIVersion defines the versioned schema of this representation of an object.
25
+
Servers should convert recognized schemas to the latest internal value, and
26
+
may reject unrecognized values.
27
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
28
28
type: string
29
29
kind:
30
-
description: 'Kind is a string value representing the REST resource this
31
-
object represents. Servers may infer this from the endpoint the client
32
-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
30
+
description: |-
31
+
Kind is a string value representing the REST resource this object represents.
32
+
Servers may infer this from the endpoint the client submits requests to.
33
+
Cannot be updated.
34
+
In CamelCase.
35
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
33
36
type: string
34
37
metadata:
35
38
type: object
@@ -56,6 +59,16 @@ spec:
56
59
description: The Kubernetes secret where the operator will store and
57
60
sync the fetched secrets
58
61
properties:
62
+
annotations:
63
+
additionalProperties:
64
+
type: string
65
+
description: Annotations to add or update on the managed secret
66
+
type: object
67
+
labels:
68
+
additionalProperties:
69
+
type: string
70
+
description: Labels to add or update on the managed secret
71
+
type: object
59
72
name:
60
73
description: The name of the Secret resource
61
74
type: string
@@ -108,6 +121,7 @@ spec:
108
121
- base64
109
122
type: string
110
123
type: object
124
+
default: {}
111
125
description: A list of processors to transform the data during ingestion
112
126
type: object
113
127
project:
@@ -147,45 +161,35 @@ spec:
147
161
properties:
148
162
conditions:
149
163
items:
150
-
description: "Condition contains details for one aspect of the current
151
-
state of this API Resource. --- This struct is intended for direct
152
-
use as an array at the field path .status.conditions. For example,
153
-
\n\ttype FooStatus struct{ \t // Represents the observations
154
-
of a foo's current state. \t // Known .status.conditions.type
155
-
are: \"Available\", \"Progressing\", and \"Degraded\"\t //
0 commit comments