This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump gcp broker image * Add docu checker job to the GCP broker * Move the GCP Service Broker to the main index.yaml file
- Loading branch information
1 parent
dd77a77
commit 2701259
Showing
42 changed files
with
150 additions
and
64 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
addons/aws-service-broker-0.0.1/chart/aws-service-broker/templates/docu/role-binding.yaml
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,17 @@ | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: {{ include "fullname" . | trunc 60 }}-dc | ||
labels: | ||
app: {{ template "fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "fullname" . | trunc 60 }}-dc | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: {{ include "fullname" . | trunc 60 }}-dc |
13 changes: 13 additions & 0 deletions
13
addons/aws-service-broker-0.0.1/chart/aws-service-broker/templates/docu/role.yaml
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,13 @@ | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: {{ include "fullname" . | trunc 60 }}-dc | ||
labels: | ||
app: {{ template "fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
rules: | ||
- apiGroups: ["cms.kyma-project.io"] | ||
resources: ["docstopics"] | ||
verbs: ["list"] |
9 changes: 9 additions & 0 deletions
9
addons/aws-service-broker-0.0.1/chart/aws-service-broker/templates/docu/sa.yaml
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 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "fullname" . | trunc 60 }}-dc | ||
labels: | ||
app: {{ template "fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...d-platform-service-broker-0.1.0/README.md → addons/gcp-service-broker-0.1.0/README.md
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
54 changes: 54 additions & 0 deletions
54
addons/gcp-service-broker-0.1.0/chart/gcp-service-broker/templates/docu/job.yaml
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,54 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: gcp-broker-docu-checker | ||
labels: | ||
app: {{ template "gcp-service-broker.fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
annotations: | ||
"helm.sh/hook": post-install,post-upgrade | ||
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation | ||
spec: | ||
template: | ||
metadata: | ||
annotations: | ||
sidecar.istio.io/inject: "false" | ||
spec: | ||
serviceAccountName: {{ include "gcp-service-broker.fullname" . | trunc 60 }}-dc | ||
restartPolicy: Never | ||
containers: | ||
- name: docu-checker | ||
image: eu.gcr.io/kyma-project/test-infra/alpine-kubectl:v20190325-ff66a3a | ||
imagePullPolicy: IfNotPresent | ||
command: ["/bin/sh","-c"] | ||
args: | ||
- | | ||
while true | ||
do | ||
echo "Get list of not ready DocsTopic:" | ||
lines=$(kubectl get DocsTopic -l chart=${LABEL_CHART},release=${LABEL_RELEASE} -n ${NS} \ | ||
--no-headers -o custom-columns=name:.metadata.name,phase:.status.phase | awk '$2!="Ready"' | wc -l) | ||
echo "Got ${lines} not ready Docs Topic" | ||
if [[ "${lines}" -eq "0" ]]; | ||
then | ||
echo "Every DocsTopic is processed. Completed." | ||
exit 0 | ||
fi | ||
sleep 3 | ||
echo "----" | ||
done | ||
env: | ||
- name: LABEL_CHART | ||
value: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
- name: LABEL_RELEASE | ||
value: {{ .Release.Name }} | ||
- name: NS | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace |
17 changes: 17 additions & 0 deletions
17
addons/gcp-service-broker-0.1.0/chart/gcp-service-broker/templates/docu/role-binding.yaml
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,17 @@ | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: {{ include "gcp-service-broker.fullname" . | trunc 60 }}-dc | ||
labels: | ||
app: {{ template "gcp-service-broker.fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "gcp-service-broker.fullname" . | trunc 60 }}-dc | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: {{ include "gcp-service-broker.fullname" . | trunc 60 }}-dc |
14 changes: 14 additions & 0 deletions
14
addons/gcp-service-broker-0.1.0/chart/gcp-service-broker/templates/docu/role.yaml
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,14 @@ | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: {{ include "gcp-service-broker.fullname" . | trunc 60 }}-dc | ||
labels: | ||
app: {{ template "gcp-service-broker.fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" | ||
rules: | ||
- apiGroups: ["cms.kyma-project.io"] | ||
resources: ["docstopics"] | ||
verbs: ["list"] | ||
--- |
9 changes: 9 additions & 0 deletions
9
addons/gcp-service-broker-0.1.0/chart/gcp-service-broker/templates/docu/sa.yaml
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 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "gcp-service-broker.fullname" . | trunc 60 }}-dc | ||
labels: | ||
app: {{ template "gcp-service-broker.fullname" . }} | ||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
release: "{{ .Release.Name }}" | ||
heritage: "{{ .Release.Service }}" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tform-service-broker-0.1.0/docs/meta.yaml → ...s/gcp-service-broker-0.1.0/docs/meta.yaml
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
8 changes: 4 additions & 4 deletions
8
...d-platform-service-broker-0.1.0/meta.yaml → addons/gcp-service-broker-0.1.0/meta.yaml
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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