Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from goharbor:master #94

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
17d3501
fix: github action
Feb 17, 2023
0595fc1
Merge pull request #1396 from zyyw/master-fix-ci
ywk253100 Feb 17, 2023
a1eb85c
feat: upgrade ci config version
Feb 17, 2023
91c9d15
add docs, values, and template updates to remove default tls key and …
chaospuppy Feb 19, 2023
986d9b5
Merge pull request #1400 from zyyw/upgrade-ci-config
Feb 20, 2023
782bff2
fix: Typo on notary.SecretName
Reasonably Feb 21, 2023
3e024b0
Merge pull request #1395 from Reasonably/Reasonably-patch-1
MinerYang Feb 23, 2023
5a81a6c
feat: remove chartmuseum
Feb 24, 2023
5bcceb3
Merge pull request #1421 from zyyw/remove-chartmuseum
Feb 24, 2023
0868661
fix: add timeout 900 for nginx config
Mar 7, 2023
1c7cbe8
Merge pull request #1438 from zyyw/master-nginx-900
Mar 8, 2023
c79bb2b
feat: add username support for external redis
Feb 10, 2022
36bf88d
Merge pull request #1143 from zyyw/external-redis-username
Mar 22, 2023
cd31ec5
feat: add JOBSERVICE_WEBHOOK_JOB_MAX_RETRY and JOBSERVICE_WEBHOOK_JOB…
Mar 22, 2023
890f66a
feat: add configmap checksum annotation for portal
geneliu Mar 17, 2023
4fee1c3
Merge pull request #1447 from geneliu/geneliu-portal-configmap-checks…
Apr 6, 2023
8931eaa
Update logo path to main for new releases
Apr 7, 2023
64a8b9a
extraEnvVars for all workloads
jouve Apr 11, 2023
821804c
feat: add config of reaper.max_update_hours & reaper.max_dangling_hours
Apr 17, 2023
0b73b5c
Merge pull request #1474 from zyyw/master-add-js-config
Apr 18, 2023
450c9cd
feat: add podLabels
boniek83 Apr 19, 2023
c13b2bc
Merge pull request #1468 from jouve/extraenv
Apr 20, 2023
50c88c3
Merge pull request #1480 from boniek83/patch-1
Apr 20, 2023
5aa2ad8
Merge pull request #1463 from OrlinVasilev/update-path
OrlinVasilev May 4, 2023
2c45814
Update README.md (#1488)
Vad1mo May 19, 2023
ab98a78
Allow `CONFIG_OVERWRITE_JSON` to be set in values file (#1147)
PhilipNelson5 May 19, 2023
19dfa4b
feat: remove notary
May 16, 2023
9dad8dc
Merge pull request #1513 from zyyw/master-remove-notary
May 22, 2023
0305986
Allow user to set topologySpreadConstraints
Sep 21, 2022
fe257a6
fix: add github-ghcr to the list of PERMITTED_REGISTRY_TYPES_FOR_PROX…
May 12, 2023
82a6f36
Merge pull request #1500 from zyyw/master-proxy-cache-ghcr
May 24, 2023
476612f
Fix incorrect comment on values.yaml
arjungandhi May 28, 2023
7a6e181
Add TLS 1.3 support for harbor-nginx
kariya-mitsuru May 12, 2023
9793dfa
Add TLS 1.3 support for harbor-portal
kariya-mitsuru May 18, 2023
b61cf33
Merge pull request #1499 from kariya-mitsuru/add-tls1.3
Jun 1, 2023
d200a25
Merge pull request #1514 from arjungandhi/patch-1
ywk253100 Jun 1, 2023
8c5f131
Fix #1127 - remove capabilities check for prometheus
sudermanjr Jun 19, 2023
93459b6
Add tls checksum
Jun 26, 2023
a129348
Merge pull request #1528 from HammerNL89/1527-fix-exporter-internaltl…
Jun 29, 2023
560e272
Merge pull request #1508 from dioguerra/topology-spread-constraints
ywk253100 Jun 29, 2023
c885380
Merge pull request #1525 from sudermanjr/sudermanjr/remove-servicemon…
ywk253100 Jun 29, 2023
8ca4f05
Fix grammar issue
patsevanton Jul 13, 2023
596f26c
Merge pull request #1541 from patsevanton/master
Jul 13, 2023
5a2ec96
add http2 strong_ssl_ciphers
MinerYang Jul 17, 2023
6fa51ad
Add registryctl env secretRef for S3 existingSecret
pyratm Jul 17, 2023
ba141b5
Merge pull request #1543 from MinerYang/add_http2_strong_ciphers
Jul 20, 2023
da51718
fix: get ingressControllerIP based on ingressControllerServiceType
Jul 17, 2023
77de1da
Merge pull request #1548 from zyyw/PR-update-Jenkinsfile
ywk253100 Jul 20, 2023
21d4da3
feat: add the configuration for quota update provider
Jul 26, 2023
cb55d35
Merge pull request #1553 from zyyw/config-quota_update_provider
Jul 26, 2023
0952c0c
fix: single qoutes for trace attributes
Tearix Jul 28, 2023
76be526
Update values.yaml - update old link references in comments
jessebot Aug 11, 2023
bbaf85c
feat: add customization on redis db
Aug 15, 2023
dc55e2b
Merge pull request #1569 from zyyw/customize-redis-db
Aug 15, 2023
7969bb1
Merge pull request #1567 from jessebot/jessebot-patch-1
ywk253100 Aug 24, 2023
a8915e7
Merge pull request #1545 from pyratm/registryctl-envfrom-s3-secret
ywk253100 Aug 24, 2023
285c45a
Merge pull request #1561 from Tearix/attributes-qoutes
ywk253100 Aug 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
k8s_version: [v1.22.0, v1.21.1, v1.20.7]
k8s_version: [v1.25.3, v1.24.7, v1.23.13]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Docker
uses: docker-practice/actions-setup-docker@v1
with:
docker_version: "20.10"
docker_channel: stable
docker_daemon_json: '{"insecure-registries":["0.0.0.0/0"]}'

- name: Create kind cluster
uses: helm/[email protected]
with:
version: v0.11.1
version: v0.17.0
node_image: kindest/node:${{ matrix.k8s_version }}
cluster_name: kind-cluster-${{ matrix.k8s_version }}
config: test/integration/kind-cluster.yaml
Expand All @@ -34,10 +27,10 @@ jobs:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.3/deploy/static/provider/kind/deploy.yaml
kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=120s

- name: Set up Go 1.13
- name: Set up Go 1.19
uses: actions/setup-go@v2
with:
go-version: "1.13"
go-version: "1.19"

- name: Cache go mod
uses: actions/cache@v2
Expand All @@ -50,7 +43,6 @@ jobs:
- name: Set /etc/hosts
run: |
sudo -- sh -c "echo '127.0.0.1 harbor.local' >> /etc/hosts"
sudo -- sh -c "echo '127.0.0.1 notary.harbor.local' >> /etc/hosts"

- name: Run integration tests
working-directory: ./test
Expand All @@ -63,7 +55,7 @@ jobs:
df -h
free -m
mkdir -p /tmp/harbor
for name in core jobservice registry registryctl trivy chartmuseum notaryserver notarysigner portal redis database; do \
for name in core jobservice registry registryctl trivy portal redis database; do \
kubectl -n default logs -l "component=$name" --all-containers > /tmp/harbor/$name.log ; \
done

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
helm_version: [3.2.3]
helm_version: [3.11.1]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Helm 3.2.3
- name: Set up Helm 3.11.1
uses: azure/setup-helm@v1
with:
version: '3.2.3'
version: '3.11.1'

- name: Set up Go 1.13
- name: Set up Go 1.19
uses: actions/setup-go@v2
with:
go-version: 1.13
go-version: 1.19

- name: Cache go mod
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords:
- registry
- harbor
home: https://goharbor.io
icon: https://raw.githubusercontent.com/goharbor/website/master/static/img/logos/harbor-icon-color.png
icon: https://raw.githubusercontent.com/goharbor/website/main/static/img/logos/harbor-icon-color.png
sources:
- https://github.com/goharbor/harbor
- https://github.com/goharbor/harbor-helm
Expand Down
96 changes: 33 additions & 63 deletions README.md

Large diffs are not rendered by default.

28 changes: 0 additions & 28 deletions cert/tls.crt

This file was deleted.

51 changes: 0 additions & 51 deletions cert/tls.key

This file was deleted.

28 changes: 0 additions & 28 deletions conf/notary-server.json

This file was deleted.

15 changes: 0 additions & 15 deletions conf/notary-signer.json

This file was deleted.

12 changes: 6 additions & 6 deletions docs/High Availability.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,29 @@ helm fetch harbor/harbor --untar
Configure the following items in `values.yaml`, you can also set them as parameters via `--set` flag during running `helm install`:

- **Ingress rule**
Configure the `expose.ingress.hosts.core` and `expose.ingress.hosts.notary`.
Configure the `expose.ingress.hosts.core`.
- **External URL**
Configure the `externalURL`.
- **External PostgreSQL**
Set the `database.type` to `external` and fill the information in `database.external` section.

Four empty databases should be created manually for `Harbor core`, `Notary server` and `Notary signer` and configure them in the section. Harbor will create tables automatically when starting up.
Four empty databases should be created manually for `Harbor core`, and configure them in the section. Harbor will create tables automatically when starting up.
- **External Redis**
Set the `redis.type` to `external` and fill the information in `redis.external` section.
Redis sentinel is supported after v1.9.0, configure the `redis.external.sentinelMasterSet` and `redis.external.addr` to enable it.
- **Storage**
By default, a default `StorageClass` is needed in the K8S cluster to provision volumes to store images, charts and job logs.

If you want to specify the `StorageClass`, set `persistence.persistentVolumeClaim.registry.storageClass`, `persistence.persistentVolumeClaim.chartmuseum.storageClass` and `persistence.persistentVolumeClaim.jobservice.storageClass`.
If you want to specify the `StorageClass`, set `persistence.persistentVolumeClaim.registry.storageClass` and `persistence.persistentVolumeClaim.jobservice.storageClass`.

If you use `StorageClass`, for both default or specified one, set `persistence.persistentVolumeClaim.registry.accessMode`, `persistence.persistentVolumeClaim.chartmuseum.accessMode` and `persistence.persistentVolumeClaim.jobservice.accessMode` as `ReadWriteMany`, and make sure that the persistent volumes must can be shared cross different nodes.
If you use `StorageClass`, for both default or specified one, set `persistence.persistentVolumeClaim.registry.accessMode` and `persistence.persistentVolumeClaim.jobservice.accessMode` as `ReadWriteMany`, and make sure that the persistent volumes must can be shared cross different nodes.

You can also use the existing PVCs to store data, set `persistence.persistentVolumeClaim.registry.existingClaim`, `persistence.persistentVolumeClaim.chartmuseum.existingClaim` and `persistence.persistentVolumeClaim.jobservice.existingClaim`.
You can also use the existing PVCs to store data, set `persistence.persistentVolumeClaim.registry.existingClaim` and `persistence.persistentVolumeClaim.jobservice.existingClaim`.

If you have no PVCs that can be shared across nodes, you can use external object storage to store images and charts and store the job logs in database. Set the `persistence.imageChartStorage.type` to the value you want to use and fill the corresponding section and set `jobservice.jobLoggers` to `database`.

- **Replica**
Set `portal.replicas`, `core.replicas`, `jobservice.replicas`, `registry.replicas`, `chartmuseum.replicas`, `notary.server.replicas` and `notary.signer.replicas` to `n`(`n`>=2).
Set `portal.replicas`, `core.replicas`, `jobservice.replicas`, `registry.replicas` to `n`(`n`>=2).

### Installation

Expand Down
Loading