Skip to content

Commit

Permalink
Merge pull request #318 from RuliXu/add_helm_repo
Browse files Browse the repository at this point in the history
Add Charts to Artifact Hub
  • Loading branch information
Iceber authored Aug 16, 2022
2 parents 7ad9743 + 841550e commit 862772c
Show file tree
Hide file tree
Showing 37 changed files with 41 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/bin
/charts/charts/*.tgz
/charts/clusterpedia/charts/*.tgz
.idea

# OSX trash
Expand Down
5 changes: 5 additions & 0 deletions charts/artifacthub-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
owners: # (optional, used to claim repository ownership)
- name: clusterpedia
email: caiwei95@hotmail.com
- name: RuliXu
email: lily.xu@daocloud.io
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions charts/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
entries:
clusterpedia:
- apiVersion: v2
appVersion: v0.4.1
created: "2022-08-16T10:11:44.68276+08:00"
dependencies:
- condition: postgresql.enabled
name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 11.6.0
- condition: mysql.enabled
name: mysql
repository: https://charts.bitnami.com/bitnami
version: 9.1.2
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.14.2
description: A Helm chart for Kubernetes
name: clusterpedia
type: application
urls:
- https://github.com/clusterpedia-io/clusterpedia/releases/download/v0.4.1/clusterpedia-0.4.1.tgz
version: 0.4.1
generated: "2022-08-16T10:11:44.669932+08:00"
2 changes: 1 addition & 1 deletion deploy/cluster.clusterpedia.io_clustersyncresources.yaml
1 change: 0 additions & 1 deletion deploy/cluster.clusterpedia.io_pediaclusers.yaml

This file was deleted.

1 change: 1 addition & 0 deletions deploy/cluster.clusterpedia.io_pediaclusters.yaml
2 changes: 1 addition & 1 deletion deploy/policy.clusterpedia.io_clusterimportpolicies.yaml
2 changes: 1 addition & 1 deletion deploy/policy.clusterpedia.io_pediaclusterlifecycles.yaml
4 changes: 2 additions & 2 deletions hack/update-crds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ GOPATH=$(go env GOPATH | awk -F ':' '{print $1}')
export PATH=$PATH:$GOPATH/bin

cd "${API_ROOT}"
controller-gen crd paths=./cluster/... output:crd:dir="${REPO_ROOT}/charts/_crds"
controller-gen crd paths=./policy/... output:crd:dir="${REPO_ROOT}/charts/_crds"
controller-gen crd paths=./cluster/... output:crd:dir="${REPO_ROOT}/charts/clusterpedia/_crds"
controller-gen crd paths=./policy/... output:crd:dir="${REPO_ROOT}/charts/clusterpedia/_crds"
2 changes: 1 addition & 1 deletion hack/verify-crds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o pipefail

SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..

DIFFROOT="${SCRIPT_ROOT}/charts/_crds"
DIFFROOT="${SCRIPT_ROOT}/charts/clusterpedia/_crds"
TMP_DIFFROOT="${SCRIPT_ROOT}/_tmp/crds"
_tmp="${SCRIPT_ROOT}/_tmp"

Expand Down
6 changes: 3 additions & 3 deletions test/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ function delete_cluster() {

# install the Clusterpedia into the kind cluster
function install_clusterpedia() {
kubectl apply -f "${ROOT}/charts/_crds"
kubectl apply -f "${ROOT}/charts/clusterpedia/_crds"
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build "${ROOT}/charts"
helm install clusterpedia "${ROOT}/charts" \
helm dependency build "${ROOT}/charts/clusterpedia"
helm install clusterpedia "${ROOT}/charts/clusterpedia" \
--namespace clusterpedia-system \
--create-namespace \
--wait \
Expand Down

0 comments on commit 862772c

Please sign in to comment.