Go to file
AshvinBambhaniya2003 10b45d3a8f
Fix(references/appfile): Fix namespace check and Terraform output parsing (#6915)
* fix(references/appfile): correct namespace existence check in addon

The `generateSecretFromTerraformOutput` function was using an incorrect logic to check for namespace existence. It was trying to create the namespace and if it succeeded, it would return an error.

This commit corrects the logic to use `k8sClient.Get` and checks for a `NotFound` error to accurately determine if the namespace exists.

Signed-off-by: Ashvin Bambhaniya <ashvin.bambhaniya@improwised.com>

* fix(references/appfile): make terraform output parsing robust

The previous implementation for parsing `terraform output` was fragile and could lead to data corruption or errors. It would incorrectly remove all spaces from values and would fail to parse values that contained an equals sign.

This commit refactors the parsing logic to be more robust:
- It no longer removes spaces from output values, preserving them correctly.
- It correctly parses `key=value` pairs by splitting only on the first equals sign in a line.
- It properly handles quoted string values from Terraform.

The corresponding tests in `addon_test.go` have been updated to align with the refactored function signature and verify the new, robust behavior.

Fixes #6916

Signed-off-by: Ashvin Bambhaniya <ashvin.bambhaniya@improwised.com>

---------

Signed-off-by: Ashvin Bambhaniya <ashvin.bambhaniya@improwised.com>
2025-10-06 11:57:37 -07:00
.github Feat: add KinD setup step to sync-sdk workflow (#6937) 2025-10-02 15:01:20 -07:00
.license
CHANGELOG
apis Feature: Validate Definition Permissions on App Creation (#6876) 2025-09-03 05:53:56 +08:00
charts/vela-core Feat(logging): Add colorized logging support for local development with dev-logs option to enable during development (#6931) 2025-09-30 09:32:16 -07:00
cmd Feat(logging): Add colorized logging support for local development with dev-logs option to enable during development (#6931) 2025-09-30 09:32:16 -07:00
config/crd
contribute
design
docs Feat: webhook reject unknown cr outputs (#6932) 2025-09-30 09:30:53 -07:00
e2e Feat: webhook reject unknown cr outputs (#6932) 2025-09-30 09:30:53 -07:00
hack Feat: webhook reject unknown cr outputs (#6932) 2025-09-30 09:30:53 -07:00
makefiles Feat: webhook reject unknown cr outputs (#6932) 2025-09-30 09:30:53 -07:00
pkg Feat: webhook reject unknown cr outputs (#6932) 2025-09-30 09:30:53 -07:00
references Fix(references/appfile): Fix namespace check and Terraform output parsing (#6915) 2025-10-06 11:57:37 -07:00
test Feat: webhook reject unknown cr outputs (#6932) 2025-09-30 09:30:53 -07:00
vela-templates Fix: Address Wrong `Storage` trait for hostPath volumes #6811 (#6812) 2025-09-03 05:59:44 +08:00
version
.gitignore Feat: webhook reject unknown cr outputs (#6932) 2025-09-30 09:30:53 -07:00
.golangci.yml Chore: update go and golangci version (#6767) 2025-04-29 03:46:08 +08:00
.goreleaser.yaml
.krew.yaml
CODE_OF_CONDUCT.md
CONTRIBUTING.md Chore: removes references to kubevelafix (#6882) 2025-09-04 06:27:00 +08:00
Dockerfile Chore: update go and golangci version (#6767) 2025-04-29 03:46:08 +08:00
Dockerfile.cli Chore: update go and golangci version (#6767) 2025-04-29 03:46:08 +08:00
Dockerfile.e2e Chore: update go and golangci version (#6767) 2025-04-29 03:46:08 +08:00
GOVERNANCE.md
ISSUE_TRIAGE.md
LICENSE
Makefile Fix: prevent make reviewable typecheck noise via wrapper (#6858) 2025-08-21 06:08:12 +08:00
OWNERS_ALIASES
README.md Chore: upgrades kind version (#6853) 2025-08-22 08:55:37 -07:00
SECURITY.md
codecov.yml
community.md
entrypoint.sh
go.mod Chore: removes references to kubevelafix (#6882) 2025-09-04 06:27:00 +08:00
go.sum Chore: removes references to kubevelafix (#6882) 2025-09-04 06:27:00 +08:00
staticcheck.conf

README.md



Make shipping applications more enjoyable.

Build status Go Report Card Docker Pulls codecov LICENSE Releases TODOs Twitter Artifact HUB CII Best Practices E2E status OpenSSF Scorecard

Introduction

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.

kubevela

Highlights

KubeVela practices the "render, orchestrate, deploy" workflow with below highlighted values added to existing ecosystem:

Deployment as Code

Declare your deployment plan as workflow, run it automatically with any CI/CD or GitOps system, extend or re-program the workflow steps with CUE. No ad-hoc scripts, no dirty glue code, just deploy. The deployment workflow in KubeVela is powered by Open Application Model.

Built-in observability, multi-tenancy and security support

Choose from the wide range of LDAP integrations we provided out-of-box, enjoy enhanced multi-tenancy and multi-cluster authorization and authentication, pick and apply fine-grained RBAC modules and customize them as per your own supply chain requirements. All delivery process has fully automated observability dashboards.

Multi-cloud/hybrid-environments app delivery as first-class citizen

Natively supports multi-cluster/hybrid-cloud scenarios such as progressive rollout across test/staging/production environments, automatic canary, blue-green and continuous verification, rich placement strategy across clusters and clouds, along with automated cloud environments provision.

Lightweight but highly extensible architecture

Minimize your control plane deployment with only one pod and 0.5c1g resources to handle thousands of application delivery. Glue and orchestrate all your infrastructure capabilities as reusable modules with a highly extensible architecture and share the large growing community addons.

Getting Started

Get Your Own Demo with Alibaba Cloud

  • install KubeVela on a Serverless K8S cluster in 3 minutes, try:

    Deploy on Alibaba Cloud

Documentation

Full documentation is available on the KubeVela website.

Blog

Official blog is available on KubeVela blog.

Community

We want your contributions and suggestions! One of the easiest ways to contribute is to participate in discussions on the Github Issues/Discussion, chat on IM or the bi-weekly community calls. For more information on the community engagement, developer and contributing guidelines and more, head over to the KubeVela community repo.

Contact Us

Reach out with any questions you may have and we'll make sure to answer them as soon as possible!

Community Call

Every two weeks we host a community call to showcase new features, review upcoming milestones, and engage in a Q&A. All are welcome!

Talks and Conferences

Check out KubeVela videos for these talks and conferences.

Contributing

Check out CONTRIBUTING to see how to develop with KubeVela.

Report Vulnerability

Security is a first priority thing for us at KubeVela. If you come across a related issue, please send email to security@mail.kubevela.io .

Code of Conduct

KubeVela adopts CNCF Code of Conduct.