This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add validation to CRD * docs: add deprecation notice * docs: bump prereq kubernetes version
- Loading branch information
1 parent
7abc3ac
commit d2ebaeb
Showing
15 changed files
with
163 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: externalsecrets.kubernetes-client.io | ||
spec: | ||
group: kubernetes-client.io | ||
version: v1 | ||
scope: Namespaced | ||
|
||
names: | ||
shortNames: | ||
- es | ||
kind: ExternalSecret | ||
plural: externalsecrets | ||
singular: externalsecret | ||
|
||
additionalPrinterColumns: | ||
- JSONPath: .status.lastSync | ||
name: Last Sync | ||
type: date | ||
- JSONPath: .status.status | ||
name: status | ||
type: string | ||
- JSONPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
|
||
validation: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
type: object | ||
properties: | ||
template: | ||
description: Template which will be deep merged without mutating | ||
any existing fields. into generated secret, can be used to | ||
set for example annotations or type on the generated secret | ||
type: object | ||
backendType: | ||
type: string | ||
enum: | ||
- secretsManager | ||
- systemManager | ||
- vault | ||
dataFrom: | ||
type: array | ||
items: | ||
type: string | ||
data: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
key: | ||
description: Secret key in backend | ||
type: string | ||
name: | ||
description: Name set for this key in the generated secret | ||
type: string | ||
property: | ||
description: Property to extract if secret in backend is a JSON object | ||
required: | ||
- name | ||
- key | ||
roleArn: | ||
type: string | ||
required: | ||
- backendType | ||
anyOf: | ||
- required: | ||
- data | ||
- required: | ||
- dataFrom | ||
|
||
subresources: | ||
status: {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: kubernetes-client.io/v1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: data-from-example | ||
spec: | ||
backendType: systemManager | ||
dataFrom: | ||
- /foo/name1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
apiVersion: kubernetes-client.io/v1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: dockerhub-secret | ||
name: dockerconfig-example | ||
spec: | ||
backendType: secretsManager | ||
type: kubernetes.io/dockerconfigjson | ||
template: | ||
type: kubernetes.io/dockerconfigjson | ||
data: | ||
- key: /development/dockerhub | ||
name: .dockerconfigjson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
apiVersion: 'kubernetes-client.io/v1' | ||
apiVersion: kubernetes-client.io/v1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: hello-service | ||
spec: | ||
template: | ||
metadata: | ||
annotations: | ||
external-secret: 'Yes please!' | ||
backendType: secretsManager | ||
data: | ||
- key: hello-service/password | ||
name: password | ||
dataFrom: | ||
- hello-service/secret-envs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters