Update BUILD-README.md and bitnarmi repo
This commit is contained in:
@@ -51,102 +51,38 @@ $ git checkout -b update-gitea/12.4.0
|
||||
rm gitea-*.tgz
|
||||
```
|
||||
|
||||
### 2) 차트 수정 사항 반영
|
||||
|
||||
- gitea 배포 시 sso 및 외부 db 사용을 기본으로 하기 위하여 차트의 파일을 수정하였다.
|
||||
|
||||
#### ./values.yaml
|
||||
|
||||
- 다음은 gitea에 SSO 설정을 사용할 때, 대상 keycloak이 사설인증서를 사용하면 X509 에러가 발생한다.
|
||||
|
||||
에러 해결을 위해서 인증서를 등록하기 위해 `lifecycleHooks`를 추가하였다.
|
||||
- 그리고 기본으로 활성화되어 있는 `memcached.enable`과 `postgresql.enable`을 diable로 변경하였다.
|
||||
|
||||
``` yaml
|
||||
...
|
||||
clusterDomain: cluster.local
|
||||
|
||||
# line 22 아래 항목 추가
|
||||
## @param lifecycleHooks LifecycleHook to set additional configuration at startup Evaluated as a template
|
||||
##
|
||||
lifecycleHooks: {}
|
||||
|
||||
...
|
||||
memcached:
|
||||
## line 413 true를 false로 변경
|
||||
enabled: false
|
||||
|
||||
...
|
||||
postgresql:
|
||||
## line 416 true를 false로 변경
|
||||
enabled: false
|
||||
```
|
||||
|
||||
#### ./templates/_helpers.tpl
|
||||
|
||||
``` yaml
|
||||
...
|
||||
## line 334
|
||||
{{/*
|
||||
Renders a value that contains template.
|
||||
Usage:
|
||||
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
|
||||
*/}}
|
||||
{{- define "common.tplvalues.render" -}}
|
||||
{{- if typeIs "string" .value }}
|
||||
{{- tpl .value .context }}
|
||||
{{- else }}
|
||||
{{- tpl (.value | toYaml) .context }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
```
|
||||
|
||||
#### ./templates/statefulset.yaml
|
||||
|
||||
``` yaml
|
||||
...
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ include "gitea.image" . }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
# line 205 아래 내용 추가
|
||||
{{- if .Values.lifecycleHooks }}
|
||||
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 3. git push 및 tag 추가
|
||||
|
||||
- 갱신작업 진행후 commit
|
||||
```
|
||||
$ git add .
|
||||
$ git commit -m "update gitea/6.0.3"
|
||||
$ git commit -m "update gitea/12.4.0"
|
||||
```
|
||||
|
||||
- main 브랜치에 체크아웃 후 merge
|
||||
```
|
||||
$ git checkout main
|
||||
$ git merge update-gitea/6.0.3
|
||||
$ git merge update-gitea/12.4.0
|
||||
```
|
||||
|
||||
- git에 push 후 작업 브랜치 삭제
|
||||
```
|
||||
$ git push -u origin main
|
||||
$ git branch -d update-gitea/6.0.3
|
||||
$ git branch -d update-gitea/12.4.0
|
||||
```
|
||||
|
||||
- git tag 추가 후 push
|
||||
```
|
||||
$ git tag gitea/6.0.3
|
||||
$ git push origin gitea/6.0.3
|
||||
$ git tag gitea/12.4.0
|
||||
$ git push origin gitea/12.4.0
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 4. 차트 버전 정보
|
||||
|
||||
- gitea/12.4.0
|
||||
- gitea 버전 1.24.6 업데이트
|
||||
- 신규 차트에서 SSO 지원으로 기존 차트 수정사항 삭제
|
||||
- gitea/6.0.3
|
||||
- Keycloak SSO 연동 시 사설 인증서 사용을 위한 lifecycleHook을 추가하였다.
|
||||
- 서비스 배포를 위하여 custom-values.yam에 정의하였다.
|
||||
|
||||
Reference in New Issue
Block a user