Skip to content

fix(kubevela): split vela-cli into its own subpackage #53358

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

Merged
merged 7 commits into from
May 15, 2025
Merged
Changes from 6 commits
Commits
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
69 changes: 41 additions & 28 deletions kubevela.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package:
name: kubevela
version: "1.10.3"
epoch: 1
epoch: 2
description: KubeVela is a modern application delivery platform that makes deploying and operating applications across today's hybrid, multi-cloud environments easier, faster and more reliable
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ca-certificates-bundle
- vela-cli
- vela-core

pipeline:
- uses: git-checkout
Expand All @@ -23,37 +25,48 @@ pipeline:
go.opentelemetry.io/otel/exporters/otlp/otlptrace/[email protected]
replaces: github.com/docker/docker=github.com/moby/[email protected]+incompatible

- uses: go/build
with:
ldflags: -X github.com/oam-dev/kubevela/version.VelaVersion=${{package.version}}
output: manager
packages: ./cmd/core/main.go

- uses: go/build
with:
ldflags: -X github.com/oam-dev/kubevela/version.VelaVersion=${{package.version}}
output: vela
packages: ./references/cmd/cli/main.go
subpackages:
- name: vela-core
description: The KubeVela controller manager is a daemon that embeds the core control loops shipped with KubeVel
pipeline:
- uses: go/build
with:
ldflags: -X github.com/oam-dev/kubevela/version.VelaVersion=${{package.version}}
output: manager
packages: ./cmd/core/main.go
- uses: strip
test:
pipeline:
- name: Version information tests
runs: |
manager --help

- uses: strip
- name: vela-cli
description: Vela is a Pipeline Automation (CI/CD) framework built on Linux container technology written in Golang.
pipeline:
- uses: go/build
with:
ldflags: -X github.com/oam-dev/kubevela/version.VelaVersion=${{package.version}}
output: vela
packages: ./references/cmd/cli/main.go
- uses: strip
test:
pipeline:
- name: Version information tests
runs: |
VERSION_OUTPUT=$(vela version)
echo "$VERSION_OUTPUT" | grep "CLI Version"
echo "$VERSION_OUTPUT" | grep "Core Version"
echo "$VERSION_OUTPUT" | grep ${{package.version}}
- name: Setup KWOK cluster
uses: test/kwok/cluster
- name: Test if Vela installation is functional
runs: |
vela env init prod --namespace prod
vela install

update:
enabled: true
github:
identifier: kubevela/kubevela
strip-prefix: v

test:
pipeline:
- name: Version information tests (vela)
runs: |
VERSION_OUTPUT=$(vela version)
echo "$VERSION_OUTPUT" | grep "CLI Version"
echo "$VERSION_OUTPUT" | grep "Core Version"
echo "$VERSION_OUTPUT" | grep ${{package.version}}
- name: Setup KWOK cluster
uses: test/kwok/cluster
- name: Test if Vela installation is functional
runs: |
vela env init prod --namespace prod
vela install
Loading