-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80cc21a
commit efcc760
Showing
14 changed files
with
295 additions
and
130 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,36 @@ | ||
### Required enveraments | ||
|
||
- Helm | ||
- OC (Openshift Client) | ||
|
||
### OC login | ||
|
||
```shell | ||
oc login --token=<token> --server=<cluster-host> | ||
``` | ||
|
||
### To show deployments | ||
|
||
```shell | ||
helm template chart --set bitbucket.license=<license> --set vcsFacade.image.version=<version> | ||
``` | ||
|
||
```shell | ||
helm install vcs-facade ./chart --namespace test-env --set bitbucket.license=<license> --set vcsFacade.image.version=<version> --set bitbucket.host=<vcsHost> | ||
``` | ||
|
||
```shell | ||
helm uninstall vcs-facade --namespace test-env | ||
``` | ||
|
||
#### Parameters | ||
|
||
- bitbucket.license - license token for BitBucket server | ||
- dockerRegistry - Docker registry with images. | ||
- vcsHost - Route host for vcs(bitbucket, gitea, gitlab) | ||
|
||
### To run from gradle | ||
|
||
```shell | ||
./gradlew clean build | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "bitbucketDb.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
{{- include "chart-test.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.bitbucketDb.service.type }} | ||
ports: | ||
- port: {{ .Values.bitbucketDb.service.port }} | ||
targetPort: {{ .Values.bitbucketDb.service.targetPort }} | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app.kubernetes.io/name: {{ include "bitbucketDb.fullname" . }} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
name: {{ template "bitbucket.fullname" . }}-route | ||
spec: | ||
port: | ||
targetPort: 7990 | ||
to: | ||
kind: Service | ||
name: {{ template "bitbucket.fullname" . }} |
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,20 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "bitbucket.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
{{- include "chart-test.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.bitbucket.service.type }} | ||
ports: | ||
- port: {{ .Values.bitbucket.service.ssh.port }} | ||
targetPort: {{ .Values.bitbucket.service.ssh.targetPort }} | ||
protocol: TCP | ||
name: ssh | ||
- port: {{ .Values.bitbucket.service.http.port }} | ||
targetPort: {{ .Values.bitbucket.service.http.targetPort }} | ||
protocol: TCP | ||
name: http | ||
selector: | ||
app.kubernetes.io/name: {{ include "bitbucket.fullname" . }} |
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,50 @@ | ||
#apiVersion: apps/v1 | ||
#kind: Deployment | ||
#metadata: | ||
# name: gitea | ||
# labels: | ||
# app: gitea | ||
#spec: | ||
# replicas: 1 | ||
# selector: | ||
# matchLabels: | ||
# app: gitea | ||
# template: | ||
# metadata: | ||
# labels: | ||
# app: gitea | ||
# spec: | ||
# containers: | ||
# - name: gitea | ||
# image: gitea/gitea:latest | ||
# ports: | ||
# - containerPort: 3000 | ||
# - containerPort: 22 | ||
# env: | ||
# - name: USER_UID | ||
# value: "1000" | ||
# - name: USER_GID | ||
# value: "1000" | ||
# securityContext: | ||
# runAsUser: 1000 | ||
# runAsGroup: 1000 | ||
# fsGroup: 1000 | ||
# volumeMounts: | ||
# - name: gitea-data | ||
# mountPath: /data | ||
# volumes: | ||
# - name: gitea-data | ||
# persistentVolumeClaim: | ||
# claimName: gitea-pvc | ||
# | ||
#--- | ||
#apiVersion: v1 | ||
#kind: PersistentVolumeClaim | ||
#metadata: | ||
# name: gitea-pvc | ||
#spec: | ||
# accessModes: | ||
# - ReadWriteOnce | ||
# resources: | ||
# requests: | ||
# storage: 10Gi |
Oops, something went wrong.