-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from anguslees/master
Bash away at travis config until it passes
- Loading branch information
Showing
13 changed files
with
199 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "kubeless"] | ||
path = vendor/kubeless | ||
url = /~https://github.com/bitnami/kubeless.git | ||
[submodule "kubecfg"] | ||
path = vendor/kubecfg | ||
url = /~https://github.com/ksonnet/kubecfg.git | ||
[submodule "ksonnet-lib"] | ||
path = vendor/ksonnet-lib | ||
url = /~https://github.com/ksonnet/ksonnet-lib.git |
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,13 @@ | ||
local controller = import "../../bitnami/sealed-secrets/controller.jsonnet"; | ||
local kubecfg = import "kubecfg.libsonnet"; | ||
|
||
// sealed-secrets/controller.jsonnet isn't designed to be used outside | ||
// the sealed-secrets build, so we just use the built YAML files here :( | ||
|
||
local controller = kubecfg.parseYaml(importstr "sealedsecret-controller.yaml"); | ||
|
||
// For <k8s 1.7, we want to use TPRs: | ||
//local crd = import "../../bitnami/sealed-secrets/sealedsecret-tpr.jsonnet"; | ||
local crd = import "../../bitnami/sealed-secrets/sealedsecret-crd.jsonnet"; | ||
//local crd = kubecfg.parseYaml(importstr "sealedsecret-tpr.yaml"); | ||
local crd = kubecfg.parseYaml(importstr "sealedsecret-crd.yaml"); | ||
|
||
// NB: this expression is an array, because YAML | ||
controller + crd |
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,122 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: sealed-secrets-controller | ||
namespace: kube-system | ||
--- | ||
apiVersion: apps/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: sealed-secrets-controller | ||
namespace: kube-system | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
name: sealed-secrets-controller | ||
spec: | ||
containers: | ||
- command: | ||
- controller | ||
image: quay.io/bitnami/sealed-secrets-controller:v0.5.1 | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 8080 | ||
name: sealed-secrets-controller | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 8080 | ||
securityContext: | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
runAsUser: 1001 | ||
serviceAccountName: sealed-secrets-controller | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: sealed-secrets-controller | ||
namespace: kube-system | ||
spec: | ||
ports: | ||
- port: 8080 | ||
selector: | ||
name: sealed-secrets-controller | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: RoleBinding | ||
metadata: | ||
name: sealed-secrets-controller | ||
namespace: kube-system | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: sealed-secrets-key-admin | ||
subjects: | ||
- apiGroup: "" | ||
kind: ServiceAccount | ||
name: sealed-secrets-controller | ||
namespace: kube-system | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: Role | ||
metadata: | ||
name: sealed-secrets-key-admin | ||
namespace: kube-system | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resourceNames: | ||
- sealed-secrets-key | ||
resources: | ||
- secrets | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- create | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: sealed-secrets-controller | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: secrets-unsealer | ||
subjects: | ||
- apiGroup: "" | ||
kind: ServiceAccount | ||
name: sealed-secrets-controller | ||
namespace: kube-system | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRole | ||
metadata: | ||
name: secrets-unsealer | ||
rules: | ||
- apiGroups: | ||
- bitnami.com | ||
resources: | ||
- sealedsecrets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- create | ||
- update | ||
- delete |
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,26 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: sealedsecrets.bitnami.com | ||
spec: | ||
group: bitnami.com | ||
names: | ||
kind: SealedSecret | ||
listKind: SealedSecretList | ||
plural: sealedsecrets | ||
singular: sealedsecret | ||
scope: Namespaced | ||
validation: | ||
openAPIV3Schema: | ||
$schema: http://json-schema.org/draft-04/schema# | ||
description: A sealed (encrypted) Secret | ||
properties: | ||
spec: | ||
properties: | ||
data: | ||
pattern: ^[^A-Za-z0-9+/=]*$ | ||
type: string | ||
type: object | ||
type: object | ||
version: v1alpha1 |
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: extensions/v1beta1 | ||
description: A sealed (encrypted) Secret | ||
kind: ThirdPartyResource | ||
metadata: | ||
name: sealed-secret.bitnami.com | ||
versions: | ||
- name: v1alpha1 |
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,6 @@ | ||
# Vendored submodules | ||
|
||
Added with (eg): | ||
``` | ||
git submodule add --name ksonnet-lib -- /~https://github.com/ksonnet/ksonnet-lib.git vendor/ksonnet-lib | ||
``` |
Submodule ksonnet-lib
added at
60c55e