-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bump API version; add suspend feature in sops object; make sops…
…:data to map to secret:data (was secret:stringData) and sops:stringData to secret:stringData (#76)
- Loading branch information
Showing
21 changed files
with
244 additions
and
131 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 |
---|---|---|
|
@@ -142,26 +142,37 @@ helm upgrade --install sops chart/helm3/sops-secrets-operator/ \ | |
|
||
```yaml | ||
cat >jenkins-secrets.yaml <<EOF | ||
apiVersion: isindir.github.com/v1alpha2 | ||
apiVersion: isindir.github.com/v1alpha3 | ||
kind: SopsSecret | ||
metadata: | ||
name: example-sopssecret | ||
spec: | ||
# suspend reconciliation of the sops secret object | ||
suspend: false | ||
secretTemplates: | ||
- name: my-secret-name-1 | ||
labels: | ||
label1: value1 | ||
annotations: | ||
key1: value1 | ||
stringData: | ||
data-name0: data-value0 | ||
data: | ||
data-name1: ZGF0YS12YWx1ZTE= | ||
- name: jenkins-secret | ||
labels: | ||
"jenkins.io/credentials-type": "usernamePassword" | ||
annotations: | ||
"jenkins.io/credentials-description" : "credentials from Kubernetes" | ||
data: | ||
stingData: | ||
username: myUsername | ||
password: 'Pa$$word' | ||
- name: some-token | ||
data: | ||
stringData: | ||
token: Wb4ziZdELkdUf6m6KtNd7iRjjQRvSeJno5meH4NAGHFmpqJyEsekZ2WjX232s4Gj | ||
- name: docker-login | ||
type: 'kubernetes.io/dockerconfigjson' | ||
data: | ||
stringData: | ||
.dockerconfigjson: '{"auths":{"index.docker.io":{"username":"imyuser","password":"mypass","email":"[email protected]","auth":"aW15dXNlcjpteXBhc3M="}}}' | ||
EOF | ||
``` | ||
|
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
9 changes: 8 additions & 1 deletion
9
api/v1alpha2/zz_generated.deepcopy.go → api/v1alpha3/zz_generated.deepcopy.go
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: isindir.github.com/v1alpha2 | ||
apiVersion: isindir.github.com/v1alpha3 | ||
kind: SopsSecret | ||
metadata: | ||
name: example-sopssecret | ||
name: sopssecret-sample | ||
spec: | ||
secretTemplates: | ||
- name: my-secret-name-0 | ||
|
@@ -11,28 +11,36 @@ spec: | |
annotations: | ||
key0: value0 | ||
keyN: valueN | ||
data: | ||
stringData: | ||
data-name0: data-value0 | ||
data-nameL: data-valueL | ||
- name: my-secret-name-z | ||
- name: my-secret-name-1 | ||
labels: | ||
label0: value0 | ||
labelK: valueK | ||
label1: value1 | ||
annotations: | ||
key0: value0 | ||
keyN: valueN | ||
key1: value1 | ||
data: | ||
data-name1: ZGF0YS12YWx1ZTE= | ||
data-nameM: ZGF0YS12YWx1ZU0= | ||
stringData: | ||
data-name0: data-value0 | ||
data-nameL: data-valueL | ||
- name: my-secret-name-2 | ||
labels: | ||
label1: value1 | ||
annotations: | ||
key1: value1 | ||
data: | ||
data-name1: ZGF0YS12YWx1ZTE= | ||
data-nameM: ZGF0YS12YWx1ZU0= | ||
- name: jenkins-secret | ||
labels: | ||
"jenkins.io/credentials-type": "usernamePassword" | ||
annotations: | ||
"jenkins.io/credentials-description" : "credentials from Kubernetes" | ||
data: | ||
stringData: | ||
username: myUsername | ||
password: 'Pa$$word' | ||
- name: docker-login | ||
type: 'kubernetes.io/dockerconfigjson' | ||
data: | ||
stringData: | ||
.dockerconfigjson: '{"auths":{"index.docker.io":{"username":"imyuser","password":"mypass","email":"[email protected]","auth":"aW15dXNlcjpteXBhc3M="}}}' |
Oops, something went wrong.