Skip to content

Commit

Permalink
feat: add the unified artifacts manager (#157)
Browse files Browse the repository at this point in the history
* feat: add the unified artifacts manager

* refactor: use 'EnsureDir()'

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* refactor: refine constants naming

* tests: add unit tests for artifacts manager

* refactor: use artifacts manager in helm charts deployment

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* refactore: use new artifacts manager in bare-metal deployment

Signed-off-by: zyy17 <zyylsxm@gmail.com>

* fix: lint error

---------

Signed-off-by: zyy17 <zyylsxm@gmail.com>
  • Loading branch information
zyy17 authored Oct 8, 2023
1 parent 5ae1c8c commit dda81be
Show file tree
Hide file tree
Showing 16 changed files with 893 additions and 833 deletions.
68 changes: 68 additions & 0 deletions pkg/artifacts/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// Copyright 2023 Greptime Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package artifacts

const (
// GreptimeChartIndexURL is the URL of the Greptime chart index.
GreptimeChartIndexURL = "https://raw.githubusercontent.com/GreptimeTeam/helm-charts/gh-pages/index.yaml"

// GreptimeChartReleaseDownloadURL is the URL of the Greptime charts that stored in the GitHub release.
GreptimeChartReleaseDownloadURL = "https://github.com/GreptimeTeam/helm-charts/releases/download"

// GreptimeCNCharts is the URL of the Greptime charts that stored in the S3 bucket of the CN region.
GreptimeCNCharts = "https://downloads.greptime.cn/releases/charts"

// GreptimeDBCNBinaries is the URL of the GreptimeDB binaries that stored in the S3 bucket of the CN region.
GreptimeDBCNBinaries = "https://downloads.greptime.cn/releases/greptimedb"

// LatestVersionTag is the tag of the latest version.
LatestVersionTag = "latest"

// EtcdOCIRegistry is the OCI registry of the etcd chart.
EtcdOCIRegistry = "oci://registry-1.docker.io/bitnamicharts/etcd"

// GreptimeGitHubOrg is the GitHub organization of Greptime.
GreptimeGitHubOrg = "GreptimeTeam"

// GreptimeDBGithubRepo is the GitHub repository of GreptimeDB.
GreptimeDBGithubRepo = "greptimedb"

// EtcdGitHubOrg is the GitHub organization of etcd.
EtcdGitHubOrg = "etcd-io"

// EtcdGithubRepo is the GitHub repository of etcd.
EtcdGithubRepo = "etcd"

// GreptimeBinName is the artifact name of greptime.
GreptimeBinName = "greptime"

// EtcdBinName is the artifact name of etcd.
EtcdBinName = "etcd"

// GreptimeDBChartName is the chart name of GreptimeDB.
GreptimeDBChartName = "greptimedb"

// GreptimeDBOperatorChartName is the chart name of GreptimeDB operator.
GreptimeDBOperatorChartName = "greptimedb-operator"

// EtcdChartName is the chart name of etcd.
EtcdChartName = "etcd"

// DefaultEtcdChartVersion is the default etcd chart version.
DefaultEtcdChartVersion = "9.2.0"

// DefaultEtcdBinVersion is the default etcd binary version.
DefaultEtcdBinVersion = "v3.5.7"
)
Loading

0 comments on commit dda81be

Please sign in to comment.