-
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
54f65ea
commit b12d7e7
Showing
27 changed files
with
393 additions
and
129 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
Binary file not shown.
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,31 @@ | ||
vcs-facade: | ||
vcs: | ||
bitbucket: | ||
enabled: false | ||
gitea: | ||
host: http://{{ .Values.gitea.host | default "gitea:3000" }} | ||
username: test-admin | ||
password: test-admin | ||
health-check: | ||
repo: ssh://git@gitea:3000:test-data/vcs-facade-healthcheck.git | ||
root-commit: 9320183f5d5f5868fdb82b36e3abd6f9d1424114 | ||
last-release: 321d4908aef10bafa1488f9b053270acc29f3d78 | ||
expected-commits: 9320183f5d5f5868fdb82b36e3abd6f9d1424114,00cc61dd4c3eca64d12e6beceff1a40a436962f5 | ||
index: | ||
webhook-secret: b59dd966-2445-4c84-b631-49502427477e | ||
scan: | ||
delay: 5000 | ||
gitlab: | ||
enabled: false | ||
opensearch: | ||
host: {{ template "opensearch.fullname" . }}-service.{{ .Release.Namespace }}.{{ .Values.localDomain }} | ||
ssl: false | ||
username: admin | ||
password: admin | ||
index: | ||
suffix: ft | ||
|
||
logging: | ||
level: | ||
org.opensearch: DEBUG | ||
org.octopusden.octopus.vcsfacade: TRACE |
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
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,9 @@ | ||
{{- if eq .Values.profile "bitbucket" }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "bitbucket.fullname" . }}-bitbucket-license-secret | ||
type: Opaque | ||
data: | ||
token: {{ .Values.bitbucket.license | b64enc | quote }} | ||
token: {{ .Values.bitbucket.license | b64enc | quote }} | ||
{{- end }} |
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,12 @@ | ||
{{- if eq .Values.profile "gitea" }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "gitea.fullname" . }}-config | ||
namespace: {{ .Release.Namespace | quote }} | ||
data: | ||
add_admin.sh: | | ||
#!/bin/bash | ||
until gitea admin user list &> /dev/null; do sleep 5; done | ||
gitea admin user create --username=test-admin --password=test-admin [email protected] --admin=true | ||
{{- end }} |
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,91 @@ | ||
{{- if eq .Values.profile "gitea" }} | ||
############################### | ||
# Gitea PVC | ||
############################### | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ include "gitea.fullname" . }}-pvc | ||
namespace: {{ .Release.Namespace | quote }} | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
|
||
############################### | ||
# Deplyoment Gitea | ||
############################### | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "gitea.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
app: {{ include "gitea.fullname" . }} | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
name: gitea | ||
labels: | ||
app: gitea | ||
app.kubernetes.io/name: {{ include "gitea.fullname" . }} | ||
spec: | ||
containers: | ||
- name: gitea | ||
image: {{ .Values.dockerRegistry }}/gitea/gitea:{{ .Values.gitea.image.version }} | ||
imagePullPolicy: Always | ||
lifecycle: | ||
postStart: | ||
exec: | ||
command: ["/bin/sh", "/conf/add_admin.sh"] | ||
env: | ||
- name: GITEA__ADMIN_USER | ||
value: test-admin | ||
- name: GITEA__ADMIN_PASSWORD | ||
value: test-admin | ||
- name: GITEA__security__INSTALL_LOCK | ||
value: "true" | ||
- name: GITEA__webhook__ALLOWED_HOST_LIST | ||
value: "*" | ||
volumeMounts: | ||
- mountPath: "/etc/gitea" | ||
name: gitea-data | ||
subPath: var-etc-gitea | ||
- mountPath: "/var/lib/gitea" | ||
name: gitea-data | ||
subPath: var-lib-gitea | ||
- name: gitea-conf-add-script | ||
mountPath: /conf | ||
ports: | ||
- containerPort: 22 | ||
name: ssh | ||
protocol: TCP | ||
- containerPort: 3000 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: /user/login | ||
port: 3000 | ||
scheme: HTTP | ||
imagePullSecrets: | ||
- name: artifactory-okd-puller | ||
restartPolicy: Always | ||
volumes: | ||
- name: gitea-data | ||
persistentVolumeClaim: | ||
claimName: {{ include "gitea.fullname" . }}-pvc | ||
- name: gitea-conf-add-script | ||
configMap: | ||
name: {{ include "gitea.fullname" . }}-config | ||
items: | ||
- key: add_admin.sh | ||
path: add_admin.sh | ||
selector: | ||
matchLabels: | ||
app: gitea | ||
{{- end }} |
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,15 @@ | ||
{{- if eq .Values.profile "gitea" }} | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
name: {{ include "gitea.fullname" . }}-route | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
app: {{ include "gitea.fullname" . }}-route | ||
spec: | ||
port: | ||
targetPort: 3000 | ||
to: | ||
kind: Service | ||
name: {{ include "gitea.fullname" . }}-service | ||
{{- end }} |
Oops, something went wrong.