Skip to content

Commit

Permalink
fix: upgrade code for sdk 0.8.1 from 0.7.0; change dependency managem…
Browse files Browse the repository at this point in the history
…ent from dep to go modules

Signed-off-by: Eriks Zelenka <[email protected]>
  • Loading branch information
isindir committed May 31, 2019
1 parent aa4de10 commit 3a292de
Show file tree
Hide file tree
Showing 14,692 changed files with 58,839 additions and 10,223,872 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1,360 changes: 0 additions & 1,360 deletions Gopkg.lock

This file was deleted.

82 changes: 0 additions & 82 deletions Gopkg.toml

This file was deleted.

9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL := /bin/bash

.PHONY: build echo clean build push gen fmt check test release
.PHONY: repo-tag release mod echo clean build push gen fmt check test local/run

IMAGE_NAME?="isindir/sops-secrets-operator"
VERSION?=$(shell awk 'BEGIN { FS=" = " } $$0~/Version = / \
Expand All @@ -10,13 +10,18 @@ SRC = $(shell find . -type f -name '*.go' -not -path "./vendor/*")

#LDFLAGS=-ldflags "-X=version.Version=$(VERSION) -X=version.Build=$(BUILD)"

all: clean gen fmt check test build
all: clean gen mod fmt check test build

repo-tag:
@git tag -a ${VERSION} -m "sops-secrets-operator ${VERSION}"

release: build push

mod:
@echo "Go Mod Vendor"
@go mod vendor
@echo

echo:
@echo "${IMAGE_NAME}:${VERSION}"
@echo "${BUILD}"
Expand Down
1 change: 0 additions & 1 deletion chart/crds

This file was deleted.

34 changes: 34 additions & 0 deletions chart/crds/00init.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: isindir.github.com/v1alpha1
kind: SopsSecret
metadata:
name: example-sopssecret
spec:
secret_templates:
- name: my-secret-name-0
labels:
label0: value0
labelK: valueK
annotations:
key0: value0
keyN: valueN
data:
data-name0: data-value0
data-nameL: data-valueL
- name: my-secret-name-z
labels:
label0: value0
labelK: valueK
annotations:
key0: value0
keyN: valueN
data:
data-name0: data-value0
data-nameL: data-valueL
- name: jenkins-secret
labels:
"jenkins.io/credentials-type": "usernamePassword"
annotations:
"jenkins.io/credentials-description" : "credentials from Kubernetes"
data:
username: myUsername
password: 'Pa$$word'
34 changes: 34 additions & 0 deletions chart/crds/01update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: isindir.github.com/v1alpha1
kind: SopsSecret
metadata:
name: example-sopssecret
spec:
secret_templates:
- name: my-secret-name-0
labels:
label0: abc
labelK: abc
annotations:
key0: abc
keyN: abc
data:
data-name0: abc
data-nameL: abc
- name: my-secret-name-z
labels:
label0: value0
labelK: valueK
annotations:
key0: value0
keyN: valueN
data:
data-name0: data-value0
data-nameL: data-valueL
- name: jenkins-secret
labels:
"jenkins.io/credentials-type": "usernamePassword"
annotations:
"jenkins.io/credentials-description" : "credentials from Kubernetes"
data:
username: myUsername
password: 'Pa$$word'
44 changes: 44 additions & 0 deletions chart/crds/02add.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: isindir.github.com/v1alpha1
kind: SopsSecret
metadata:
name: example-sopssecret
spec:
secret_templates:
- name: my-secret-name-0
labels:
label0: abc
labelK: abc
annotations:
key0: abc
keyN: abc
data:
data-name0: abc
data-nameL: abc
- name: my-secret-name-111
labels:
label0: value0
labelK: valueK
annotations:
key0: value0
keyN: valueN
data:
data-name0: data-value0
data-nameL: data-valueL
- name: my-secret-name-z
labels:
label0: value0
labelK: valueK
annotations:
key0: value0
keyN: valueN
data:
data-name0: data-value0
data-nameL: data-valueL
- name: jenkins-secret
labels:
"jenkins.io/credentials-type": "usernamePassword"
annotations:
"jenkins.io/credentials-description" : "credentials from Kubernetes"
data:
username: myUsername
password: 'Pa$$word'
34 changes: 34 additions & 0 deletions chart/crds/03delete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: isindir.github.com/v1alpha1
kind: SopsSecret
metadata:
name: example-sopssecret
spec:
secret_templates:
- name: my-secret-name-0
labels:
label0: abc
labelK: abc
annotations:
key0: abc
keyN: abc
data:
data-name0: abc
data-nameL: abc
- name: my-secret-name-111
labels:
label0: value0
labelK: valueK
annotations:
key0: value0
keyN: valueN
data:
data-name0: data-value0
data-nameL: data-valueL
- name: jenkins-secret
labels:
"jenkins.io/credentials-type": "usernamePassword"
annotations:
"jenkins.io/credentials-description" : "credentials from Kubernetes"
data:
username: myUsername
password: 'Pa$$word'
26 changes: 26 additions & 0 deletions chart/crds/isindir_v1alpha1_sopssecret_cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: isindir.github.com/v1alpha1
kind: SopsSecret
metadata:
name: example-sopssecret
spec:
secret_templates:
- name: my-secret-name-0
labels:
label0: value0
labelK: valueK
annotations:
key0: value0
keyN: valueN
data:
data-name0: data-value0
data-nameL: data-valueL
- name: my-secret-name-z
labels:
label0: value0
labelK: valueK
annotations:
key0: value0
keyN: valueN
data:
data-name0: data-value0
data-nameL: data-valueL
81 changes: 81 additions & 0 deletions chart/crds/isindir_v1alpha1_sopssecret_crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: sopssecrets.isindir.github.com
spec:
group: isindir.github.com
names:
kind: SopsSecret
listKind: SopsSecretList
plural: sopssecrets
singular: sopssecret
shortNames:
- sops
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
type: object
properties:
secret_templates:
type: array
minLength: 1
items:
properties:
name:
type: string
annotations:
type: object
labels:
type: object
data:
type: object
sops:
type: object
properties:
kms:
type: array
items:
properties:
arn:
type: string
created_at:
type: string
enc:
type: string
aws_profile:
type: string
pgp:
type: array
gcp_kms:
type: array
azure_kv:
type: array
lastmodified:
type: string
mac:
type: string
version:
type: string
encrypted_suffix:
type: string
status:
type: object
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
15 changes: 15 additions & 0 deletions chart/crds/jenkins-ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: isindir.github.com/v1alpha1
kind: SopsSecret
metadata:
name: example-sopssecret
namespace: jenkins
spec:
secret_templates:
- name: example-sopssecret
labels:
"jenkins.io/credentials-type": "usernamePassword"
annotations:
"jenkins.io/credentials-description" : "credentials from Kubernetes"
data:
username: myUsername
password: 'Pa$$word'
4 changes: 2 additions & 2 deletions chart/sops-secrets-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
version: 0.1.0
appVersion: 0.0.1
version: 0.1.1
appVersion: 0.0.2
description: sops secrets operator
name: sops-secrets-operator
sources:
Expand Down
Loading

0 comments on commit 3a292de

Please sign in to comment.