Skip to content

Commit 764563d

Browse files
Set helm-broker repository baseURL to github pages
1 parent 6685ca1 commit 764563d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+9
-1177
lines changed

components/helm-broker/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ fabric.properties
100100
*.iml
101101

102102
/targz
103-
/reposerver
104103
/indexbuilder
105104
/broker
106105
/vendor

components/helm-broker/Jenkinsfile

-6
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ podTemplate(label: label) {
4444
stage("build image $application") {
4545
dir(env.APP_FOLDER){
4646
sh "cp ./broker deploy/broker/helm-broker"
47-
sh "cp ./reposerver deploy/reposerver/reposerver"
4847
sh "cp ./indexbuilder deploy/tools/indexbuilder"
4948
sh "cp ./targz deploy/tools/targz"
5049

5150
sh "docker build -t ${dockerPushRoot}helm-broker:latest deploy/broker --label version=${dockerImageTag} --label component=${application}"
52-
sh "docker build -t ${dockerPushRoot}helm-broker-reposerver:latest deploy/reposerver --label version=${dockerImageTag} --label component=${application}"
5351
sh "docker build -t ${dockerPushRoot}helm-broker-tools:latest deploy/tools --label version=${dockerImageTag} --label component=${application}"
5452
}
5553
}
@@ -58,15 +56,11 @@ podTemplate(label: label) {
5856
sh "docker tag ${dockerPushRoot}helm-broker:latest ${dockerPushRoot}helm-broker:${dockerImageTag}"
5957
sh "docker push ${dockerPushRoot}helm-broker:${dockerImageTag}"
6058

61-
sh "docker tag ${dockerPushRoot}helm-broker-reposerver:latest ${dockerPushRoot}helm-broker-reposerver:${dockerImageTag}"
62-
sh "docker push ${dockerPushRoot}helm-broker-reposerver:${dockerImageTag}"
63-
6459
sh "docker tag ${dockerPushRoot}helm-broker-tools:latest ${dockerPushRoot}helm-broker-tools:${dockerImageTag}"
6560
sh "docker push ${dockerPushRoot}helm-broker-tools:${dockerImageTag}"
6661

6762
if (params.GIT_BRANCH == 'master') {
6863
sh "docker push ${dockerPushRoot}helm-broker:latest"
69-
sh "docker push ${dockerPushRoot}helm-broker-reposerver:latest"
7064
sh "docker push ${dockerPushRoot}helm-broker-tools:latest"
7165
}
7266

components/helm-broker/before-commit.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727
##
2828
# GO BUILD
2929
##
30-
binaries=("broker" "indexbuilder" "reposerver" "targz")
30+
binaries=("broker" "indexbuilder" "targz")
3131
buildEnv=""
3232
if [ "$1" == "$CI_FLAG" ]; then
3333
# build binary statically

components/helm-broker/cmd/reposerver/README.md

-7
This file was deleted.

components/helm-broker/cmd/reposerver/main.go

-54
This file was deleted.

components/helm-broker/cmd/reposerver/main_test.go

-77
This file was deleted.

components/helm-broker/deploy/reposerver/Dockerfile

-14
This file was deleted.

docs/service-brokers/docs/004-overview-helm-broker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title: Helm Broker
33
type: Overview
44
---
55

6-
The Helm Broker is an implementation of a service broker which runs in the Kyma cluster and deploys Kubernetes native resources using [Helm](https://github.com/kubernetes/helm) and Kyma bundles. A bundle is an abstraction layer over a Helm chart which allows you to represent it as a ClusterServiceClass in the Service Catalog. For example, a bundle can provide plan definitions or binding details. The Helm Broker fetches bundle definitions from an HTTP server. By default, the Helm Broker contains an embedded HTTP server which serves bundles from the Kyma bundles directory.
6+
The Helm Broker is an implementation of a service broker which runs in the Kyma cluster and deploys Kubernetes native resources using [Helm](https://github.com/kubernetes/helm) and Kyma bundles. A bundle is an abstraction layer over a Helm chart which allows you to represent it as a ClusterServiceClass in the Service Catalog. For example, a bundle can provide plan definitions or binding details. The Helm Broker fetches bundle definitions from an HTTP server. By default, the Helm Broker fetches bundles from the [stable repository](https://kyma-project.github.io/bundles/stable/).
77

88
The Helm Broker implements the Service Broker API. For more information about the Service Brokers, see the **Service Brokers overview** document.

docs/service-brokers/docs/011-configuration-helm-broker.md

+3-17
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,11 @@ title: Configure Helm Broker
33
type: Configuration
44
---
55

6-
The Helm Broker fetches bundle definitions from an HTTP server defined in the `values.yaml` file. The **config.repository.baseURL** attribute defines the HTTP server URL. By default, the Helm Broker contains an embedded HTTP server which serves bundles from the Kyma `bundles` directory.
7-
8-
9-
### Configuring the Helm Broker on the embedded HTTP server
10-
11-
By default, the Helm Broker contains an embedded HTTP server which serves bundles from the `bundles` directory. Deploying Kyma automatically populates the bundles.
12-
13-
To add a yBundle to the Helm Broker, place your yBundle directory in the `bundles` folder.
14-
> **NOTE:** The name of the yBundle directory in the `bundles` folder must follow this pattern: \{bundle_name}\-\{bundle_version}\.
15-
6+
The Helm Broker fetches bundle definitions from an HTTP server defined in the `values.yaml` file. The **config.repository.baseURL** attribute defines the HTTP server URL.
167

178
### Configuring the Helm Broker externally
189

19-
Follow these steps to change the configuration and make the Helm Broker fetch bundles from a remote HTTP server:
10+
Follow these steps to change the configuration and make the Helm Broker fetch bundles from a custom HTTP server:
2011

2112
1. Create a remote bundles repository. Your remote bundle repository must include the following resources:
2213
- An `index.yaml` file which defines available bundles.
@@ -42,14 +33,9 @@ Follow these steps to change the configuration and make the Helm Broker fetch bu
4233
4334
- A `{bundle_name}-{bundle_version}.tgz` file for each bundle version defined in the `index.yaml` file. The `.tgz` file is an archive of your bundle's directory.
4435
45-
2. In the `values.yaml` located in the `/resources/core/charts/helm-broker/` directory, set the **embeddedRepository.provision** attribute to `false` to disable the embedded server. Provide your server's URL in the **config.repository.baseURL** attribute:
36+
2. In the `values.yaml` provide your server's URL in the **config.repository.baseURL** attribute:
4637
4738
```yaml
48-
embeddedRepository:
49-
# Defines whether to provision the embedded bundle repository.
50-
# To provision, specify this value to true
51-
provision: true
52-
5339
config:
5440
repository:
5541
baseURL: "http://custom.bundles-repository"

docs/service-brokers/docs/021-architecture-helm-broker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Helm Broker workflow starts with the registration process, during which the
88
### Registration process
99

1010
The registration process in the case of the Helm Broker consists of the following steps:
11-
1. The Helm Broker fetches yBundles from the Kyma bundles directory, or from the remote HTTP server.
11+
1. The Helm Broker fetches yBundles from the remote HTTP server.
1212
2. The Helm Broker registers yBundles as ServiceClasses in the Service Catalog.
1313

1414
![Helm Broker registration](assets/010-helm-registration.png)

docs/service-brokers/docs/assets/010-helm-registration.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>010-helm-registration</title>
66
<meta charset="utf-8"/>
77
</head>
8-
<body><div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="{&quot;nav&quot;:true,&quot;resize&quot;:true,&quot;toolbar&quot;:&quot;zoom layers lightbox&quot;,&quot;edit&quot;:&quot;_blank&quot;,&quot;xml&quot;:&quot;&lt;mxfile userAgent=\&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36\&quot; version=\&quot;8.6.3\&quot; editor=\&quot;www.draw.io\&quot; type=\&quot;device\&quot;&gt;&lt;diagram id=\&quot;4f752313-519d-a896-534b-ee1c11d4aec4\&quot; name=\&quot;Page-1\&quot;&gt;5Vpdc5s4FP01fmwHEMLm0cZpO7Pdmez6YdNHBWSsKba8Qo7t/fUrjATowwlJsSd1kgfDlRDSOedK90qMQLI+fGVou/qTZrgYBV52GIH5KAgCb+yJn8pyrC3xZFIbckay2uS3hgX5D0ujfC7fkQyXWkVOacHJVjemdLPBKddsiDG616staaG/dYtybBkWKSps6z8k4ytp9T2vLfiGSb6Sr55AWfCI0p85o7uNfN8oAMvTX128RqotWb9coYzuOyZwNwIJo5TXV+tDgosKWwVb/dyXM6VNvxne8D4PBPUDT6jYYdXjU7/4UWGxXxGOF1uUVvd7wfcIzFZ8XYg7X1yiclszsCQHLFqdlZzRnzihBWWnBkAM42QaNiUKUDHW2ZIURaemhArM7GHIkT1hxvGhY5LD+orpGnN2FFWUCCewfkRKUEly3/IZTaRt1aGyMSKpobxpusVR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dODu+lBhiNzUcSbEcE7qbwluFfCxcQbXbA50AHftcb4BcHHbfstTr3LtB1Pg7n8=&lt;/diagram&gt;&lt;/mxfile&gt;&quot;}"></div>
8+
<body><div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="{&quot;nav&quot;:true,&quot;resize&quot;:true,&quot;toolbar&quot;:&quot;zoom layers lightbox&quot;,&quot;edit&quot;:&quot;_blank&quot;,&quot;xml&quot;:&quot;&lt;mxfile userAgent=\&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36\&quot; version=\&quot;8.6.3\&quot; editor=\&quot;www.draw.io\&quot; type=\&quot;device\&quot;&gt;&lt;diagram id=\&quot;4f752313-519d-a896-534b-ee1c11d4aec4\&quot; name=\&quot;Page-1\&quot;&gt;5VlNc5s8EP41PrYDCGE42jhvO9N2pq0PbY8KyFhT2aJCju3++gojAUJK4jfBnjaxD0a7iz6eZ1darScg3RzecVSuP7Ec00ng5YcJWEyCwPeDqfypJcdGEgMlKDjJlVEnWJLfWAk9Jd2RHFeGoWCMClKawoxttzgThgxxzvam2YpRc9QSFdgSLDNEbek3kou1XpfndYr3mBRrNXQMleIWZT8LznZbNd4kAKvTp1FvkO5L2VdrlLN9TwRuJiDljInmaXNIMa2x1bA17/13j7adN8dbcc4LQfPCHaI7rGd8mpc4aiz2ayLwskRZ3d5LvidgvhYbKlu+fERV2TCwIgcse51XgrOfOGWU8VMHIIFJOgtbjQZUrnW+IpT2LBVUYG4vQ63sDnOBDz2RWtY7zDZY8KM0UdpQ+5Jywalq7js+IYSNbN2jshUi5UNF23WHo3xQULphBQ5YIyrqFTO5oj6+0a8d04o31SkSZtLAh+WhU8qnQv2eernVgg/HDZLWKd1VAnOtltO7Hb4iZc3YWjygWcIqTGZNIrdsiweMKRGipNjKZibJknMA85okIoNpphQbkuf1MHOXK52CpXachTcO8TA2iW+Dtse8r+Ovz7yWPYd4+Hg8mQt+JLqsYLqJ6q8VTP5lgwlOIwNT6Z8WpiB0YOqHI4AaXSia3mO6kcp5DSQ/N06eR18QprM0vTp9MTToC2M7JNz0+SPQN7Xo+4pzUrV7GddYLzG/IxlOKaoc2pGZWAQLuEiuzUQUDAIpsQMpcRABR+Ahtnj4zCpRcLz88vFVkjEd7mpXJCO50J6maKtzAiQQZcWrO/8jzaJmNbBZbfe1sc9//1KZ31yiRLEjEjkuWUUEq+d5D9MvMnhbuvSZFsG30CbaeaqBZASm7e3UwhVv81l9G62Do95HSfYIlO1VSeLCj9+V2anxo2ZHrlA2D0R8V1zVz53mXlgrtuMZNrIpgXiBhem1ODeuxTb2/cvTAxsjxxQJcmdepl1gqxE+M3KKDZ2uQDOCw3BwJWuWo97q324HHUWe2ZHE1+yoAcHqSJKGjj2zsjaoHphwaPoiBHDgSk2PnWO1mJ7na67TYnxfU+6lvc3v+9rbAPbd7RnONv2rfC0aUPd0X0vMjs71tSe4g975/g13+EuIjofnRew9jeg4GGwqoX8xosPHsomsJbBLGNqKYyc6I+sArqzDPzd7lPMmZXVfjve/yoXeLLrpuegD6URrOUI6AcFgCw/tZCJwlAuDEaqFzqrRNWkOXg3NUzBILfwr0mzXsVZYZGsputXZ/Uu9lEHPrEBBB+7xhe5kjsIHxwVpCuYvFfDpoNAEErvk57obPQFw2ez+sGpOue5fQXDzBw==&lt;/diagram&gt;&lt;/mxfile&gt;&quot;}"></div>
99
<script type="text/javascript" src="https://www.draw.io/js/viewer.min.js"></script>
1010
</body>
1111
</html>
Loading

installation/resources/installer-cr.yaml.tpl

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ spec:
1414
namespace: "istio-system"
1515
- name: "prometheus-operator"
1616
namespace: "kyma-system"
17-
- name: "provision-bundles"
1817
- name: "dex"
1918
namespace: "kyma-system"
2019
- name: "core"

resources/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ Resources currently include, but are not limited to, the following:
1717
- Elements which are essential for the installation of `core` components in Kyma, such as certificates, users, and permissions
1818
- The `core` components required to run the Kyma
1919
- Examples of the use of specific components
20-
- The repository of bundles that are exposed in the Service Catalog as Service Classes through the Helm Broker
2120
- Scripts for the installation of Helm, Istio deployment, as well as scripts for validating Pods, starting Kyma, and testing

resources/core/charts/helm-broker/templates/_helpers.tpl

-15
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,10 @@ Expand the name of the chart.
66
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
77
{{- end -}}
88

9-
{{/*
10-
Define template equivalent to "name" template, but used for reposerver deployment/service
11-
*/}}
12-
{{- define "reposerver-name" -}}
13-
{{- $rName := printf "%s-%s" .Chart.Name "reposerver" -}}
14-
{{- default $rName .Values.ReposerverNameOverride | trunc 63 | trimSuffix "-" -}}
15-
{{- end -}}
16-
179
{{/*
1810
Create a default fully qualified app name.
1911
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
2012
*/}}
2113
{{- define "fullname" -}}
2214
{{- printf "%s-%s" .Release.Name .Chart.Name | trunc 63 | trimSuffix "-" -}}
2315
{{- end -}}
24-
25-
{{/*
26-
Define template equivalent to "fullname" template, but used for reposerver deployment/service
27-
*/}}
28-
{{- define "reposerver-fullname" -}}
29-
{{- printf "%s-%s-%s" .Release.Name .Chart.Name "reposerver" | trunc 63 | trimSuffix "-" -}}
30-
{{- end -}}

resources/core/charts/helm-broker/templates/deploy.yaml

-74
Original file line numberDiff line numberDiff line change
@@ -82,77 +82,3 @@ spec:
8282
- name: config-volume
8383
configMap:
8484
name: helm-config-map
85-
86-
---
87-
88-
{{ if .Values.embeddedRepository.provision }}
89-
apiVersion: extensions/v1beta1
90-
kind: Deployment
91-
metadata:
92-
name: {{ template "reposerver-fullname" . }}
93-
labels:
94-
app: {{ template "reposerver-name" . }}
95-
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
96-
release: "{{ .Release.Name }}"
97-
heritage: "{{ .Release.Service }}"
98-
spec:
99-
replicas: 1
100-
selector:
101-
matchLabels:
102-
app: {{ template "reposerver-name" . }}
103-
strategy:
104-
type: RollingUpdate
105-
rollingUpdate:
106-
maxUnavailable: 0
107-
template:
108-
metadata:
109-
labels:
110-
app: {{ template "reposerver-name" . }}
111-
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
112-
release: "{{ .Release.Name }}"
113-
heritage: "{{ .Release.Service }}"
114-
spec:
115-
serviceAccountName: {{ template "fullname" . }}
116-
containers:
117-
- name: {{ .Chart.Name }}
118-
image: "{{ .Values.global.containerRegistry.path }}/{{ .Values.global.helm_broker.dir }}helm-broker-reposerver:{{ .Values.global.helm_broker.version }}"
119-
imagePullPolicy: {{ .Values.image.pullPolicy }}
120-
121-
volumeMounts:
122-
- mountPath: /data
123-
name: bundle-repository
124-
125-
ports:
126-
- containerPort: 8080
127-
# Temporary solution for readiness probe
128-
# Ref: https://github.com/istio/istio/issues/2628
129-
readinessProbe:
130-
exec:
131-
command:
132-
- curl
133-
- localhost:{{ .Values.embeddedRepository.service.internalPort }}/index.yaml
134-
failureThreshold: 3
135-
initialDelaySeconds: 10
136-
periodSeconds: 3
137-
successThreshold: 1
138-
timeoutSeconds: 2
139-
livenessProbe:
140-
exec:
141-
command:
142-
- curl
143-
- localhost:{{ .Values.embeddedRepository.service.internalPort }}/index.yaml
144-
periodSeconds: 10
145-
timeoutSeconds: 2
146-
successThreshold: 1
147-
148-
volumes:
149-
- name: tmp-empty-dir
150-
emptyDir:
151-
medium: "Memory" # mount a tmpfs (RAM-backed filesystem). Default emptyDir volumes are stored on whatever medium is backing the node - that might be disk or SSD or network storage, depending on your environment.
152-
- name: config-volume
153-
configMap:
154-
name: helm-config-map
155-
- name: bundle-repository
156-
persistentVolumeClaim:
157-
claimName: {{ .Values.bundlesStorage.claimName }}
158-
{{ end }}

0 commit comments

Comments
 (0)