Brian Kane
9d160cdf84
refactor: rename autoRevision annotation to policy.oam.dev namespace
...
Changed annotation from app.oam.dev/autoRevision to
policy.oam.dev/autoRevision to better indicate its purpose and
prevent misuse in other areas of the codebase.
This annotation specifically controls whether application-scoped
policy transforms should create new ApplicationRevisions.
Updated:
- labels.go: Changed constant value
- devlogs: Updated all references in documentation
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-17 18:19:20 +00:00
Brian Kane
06e1d20a74
fix: component dispatch with autoRevision=true for policy transforms
...
When policies retrigger with autoRevision=true, components were not
redeploying even though new ApplicationRevisions were created. The
dispatcher was comparing component properties against the NEW revision
(which already had policy transforms) instead of the PREVIOUS revision.
Changes:
- generator.go: Pass latestAppRev to generateDispatcher()
- dispatcher.go: Add previousAppRev parameter and conditional comparison
logic based on autoRevision annotation
- When autoRevision=true: Compare against previous revision to detect
policy-driven changes
- When autoRevision=false (default): Use existing logic for backward
compatibility
Added documentation noting that the default comparison logic seems
unclear and may need future simplification.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-17 18:15:51 +00:00
Brian Kane
4435c3bb14
feat: add helper functions for new policy flow
...
Added helper functions to support simplified policy architecture:
- extractRenderedSpec() - extract spec from policy results
- extractRenderedMetadata() - extract labels/annotations/context
- applyMetadataToApp() - apply metadata to Application CR
- applySpecToApp() - apply spec to Application
- renderAllPolicies() - render both global and explicit policies together
These will be used in the refactored ApplyApplicationScopeTransforms.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-17 12:42:50 +00:00
Brian Kane
3d8440bc45
feat: add autoRevision annotation for policy-driven spec changes
...
Added app.oam.dev/autoRevision annotation to control whether policies
can modify Application.Spec and trigger new ApplicationRevisions.
Changes:
- Added AnnotationAutoRevision constant to pkg/oam/labels.go
- Added shouldAutoCreateRevision() helper function
- Orthogonal to autoUpdate (which controls definition version updates)
- Consistent naming: autoRevision (not auto-revision) matches autoUpdate
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-17 12:36:47 +00:00
Brian Kane
a83432e98c
refactor: rename GlobalPolicyCache to ApplicationPolicyCache
...
Simplified cache structure and removed global policy hash tracking.
2026-02-17 12:33:02 +00:00
Brian Kane
68805310e3
WIP: Cascade invalidation approach (will be replaced)
...
This commit captures the cascade invalidation exploration before
we pivot to a simpler design. Key changes:
1. computeCascadeID() only hashes spec fields (not metadata)
2. computeApplicationHash() only hashes spec (not labels/annotations)
3. Application hash computed BEFORE policies run
4. Attempted to integrate explicit policies into new flow
Design Decision: This approach is too complex. We're pivoting to:
- Simple 1-minute in-memory cache
- Always render policies
- Store rendered vs applied spec in ConfigMap
- Auto-update annotation for spec changes
This commit preserved for historical reference.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-17 12:01:07 +00:00
Brian Kane
83675a1aae
feat: add per-output-type refresh control infrastructure (Part 4)
...
Implements the data structures, functions, and API for per-output-type
policy caching with cascade invalidation. Note: Full integration into
the policy execution flow will be done in Part 5.
## What's Implemented
### 1. PolicyConfig with refresh fields (policy_transforms.go:782-809)
- RefreshMode type: RefreshAlways, RefreshNever, RefreshPeriodic
- OutputRefreshConfig struct: Mode, Interval, ForceRefresh
- PolicyConfig with nested Refresh for Spec, Labels, Annotations, Ctx
- Each output type has independent refresh control
### 2. extractRefreshConfig function (policy_transforms.go:845-882)
- Extracts config.refresh from CUE templates
- Applies defaults (all modes default to "never")
- Validates periodic mode requires interval > 0
### 3. Per-output-type cache storage (policy_transforms.go:932-954)
- CachedOutputData: per-type cache with metadata
- PolicyCacheRecord: new ConfigMap format with cascade tracking
- Helper functions: createPolicyCacheRecord, reconstructPolicyOutputFromCache, shouldRefreshOutput
### 4. Cascade ID computation (policy_transforms.go:1506-1525)
- computeCascadeID(): hashes upstream policy outputs
- Enables cascade invalidation when upstream policies refresh
### 5. New cache load function (policy_transforms.go:1593-1683)
- loadCachedPolicyRecord(): loads with cascade & refresh checks
- Checks Application hash, cascade ID, per-output-type refresh
- Old loadCachedPolicyFromConfigMap() kept for backwards compatibility
### 6. Removed CacheTTLSeconds from CRD
- Removed from PolicyDefinitionSpec (policy_definition.go)
- TTL now controlled via config.refresh in templates
- Removed deprecated test
### 7. CUE schema (vela-templates/definitions/internal/policy/app-policy-schema.cue)
- Defines #ApplicationPolicyTemplate with full API
- Provides type safety, validation, defaults
- Documents complete config.refresh API
## API Example
```cue
config: {
enabled: true
refresh: {
labels: { mode: "always" }
ctx: { mode: "periodic", interval: 300 }
}
}
```
## Status
✅ Infrastructure complete
✅ 162 tests passing
⏳ Full integration into execution flow: Part 5
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-17 10:16:03 +00:00
Brian Kane
0f5add7902
feat: implement config.enabled for Policy API redesign (Part 3)
...
Part 3 of Policy API Redesign - updated both tests and implementation:
**Test changes (policy_transforms_test.go):**
- Updated all 25 PolicyDefinition templates to use new API syntax
- Old: `enabled: true` at root level
- New: `config: { enabled: true }`
**Implementation changes (policy_transforms.go):**
- Added PolicyConfig struct with enabled and cacheDuration fields
- Updated extractEnabled() to support both new and old API:
- Tries config.enabled first (new API)
- Falls back to root enabled (old API, backwards compatible)
- Defaults to true if neither exists
**Testing:**
- Tests now pass with new API syntax
- Backwards compatibility maintained for old API
- TDD approach: updated tests first, then implementation
**Next:**
- Part 4: Per-output-type refresh control (config.refresh)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-17 09:41:52 +00:00
Brian Kane
5330c0f0fe
test: fix all policy transform tests for new output API
...
Updated all tests to use the new 'output' API structure instead of the old
'transforms' API. Key changes:
1. Fixed RenderedPolicyResult usage in tests
- Changed Output field to Transforms field (stores *PolicyOutput)
- Added missing Transforms field for tests calling applyRenderedPolicyResult
2. Fixed CUE templates in policy tests
- Changed 'additionalContext' to 'output.ctx' (3 templates)
- Fixed kube.#Get usage to avoid double-defining output (2 templates)
- Changed test expectations from 'transforms' to 'output' key in ConfigMap
3. Removed deprecated transforms API validation
- Removed test checking for old transforms API rejection
- Removed extractTransforms() function and its callers
- Removed PolicyTransforms validation logic
4. Fixed nil pointer bugs in revision comparison
- Added nil checks in DeepEqualRevision for definition maps
- Added nil check in gatherRevisionSpec for nil appfile parameter
All policy transform tests now pass successfully.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-16 20:16:43 +00:00
Brian Kane
deabee9714
fix: handle NewAppHandler error return in regression tests
...
NewAppHandler returns (*AppHandler, error), but regression tests
were only capturing the handler. Fixed to capture and check error.
2026-02-16 17:10:49 +00:00
Brian Kane
738ddfd98e
test: migrate all tests to output API and add regression tests
...
Completes the test migration for the transforms → output API change.
## Test Migrations
### policy_transforms_test.go (29 transforms → output)
- 21 labels transforms → output.labels
- 7 spec transforms → output.components
- 1 annotations transform → output.annotations
All type/value wrappers removed for cleaner syntax.
### policy_validation_test.go
Already migrated in previous commit.
## Regression Tests Added
### Test 1: Policy spec modifications preserved across status patch
Verifies fix for bug where UpdateAppLatestRevisionStatus() lost
policy-modified spec during Status().Patch() operation.
Tests that after applying a policy that modifies components, the
modifications survive the status update operation.
### Test 2: JSON normalization prevents infinite ApplicationRevisions
Verifies fix for bug where RawExtension JSON with different byte
representations caused infinite revision creation.
Tests that semantically identical JSON with different field order
produces identical normalized bytes and matching hashes.
## Additional Changes
- Minor whitespace cleanup in application_controller.go
- Import reordering in suite_test.go
- Formatting alignment in references/cli/policy.go
All tests now use the new output API exclusively.
2026-02-16 16:58:23 +00:00
Brian Kane
bf8d128128
feat: migrate from transforms API to output API and fix critical bugs
...
This commit completes the migration from the old transforms API to the
simpler output API, and fixes two critical bugs discovered during testing.
## Part 1: API Migration (transforms → output)
**Old API**:
```cue
transforms: {
spec: {type: "replace", value: {components: [...]}}
labels: {type: "merge", value: {"key": "val"}}
}
```
**New API**:
```cue
output: {
components: [...] // replaces spec.components (always replace)
workflow: {...} // replaces spec.workflow (always replace)
policies: [...] // replaces spec.policies (always replace)
labels: {"key": "val"} // always merge
annotations: {...} // always merge
ctx: {...} // runtime-only context
}
```
**Implementation** (policy_transforms.go):
- Added PolicyOutput struct for new API
- Added extractOutput() to parse output field
- Added applyPolicyTransform() to apply output to Application
- Updated renderPolicy() to support both APIs temporarily
- Reject old transforms API with clear error message
## Part 2: Bug Fixes
### Bug 1: Policy modifications lost during status update
**Problem**: `Status().Patch()` with `client.Merge` refreshes entire object
from API server, losing in-memory spec modifications made by policies.
**Symptom**: Workflows failed with "component not found" errors.
**Fix** (revision.go:544-555): Save/restore app.Spec around patchStatus().
### Bug 2: Infinite ApplicationRevision creation
**Problem**: RawExtension JSON had inconsistent byte representations,
causing DeepEqualRevision() failures and infinite revision creation.
**Symptom**: 100+ identical ApplicationRevisions created.
**Fix** (revision.go:136-146): Normalize component properties JSON in
gatherRevisionSpec() for consistent comparison.
## Testing
- Migrated policy_validation_test.go to output API (14 tests)
- Verified in test cluster: 1 revision per change, workflows work correctly
- Note: policy_transforms_test.go migration in progress
Tested with OCM policy creating ManifestWork - single revision created,
workflow finds correct components.
2026-02-16 16:45:13 +00:00
Brian Kane
f3b67e79ed
feat: implement foundation - context cleanup and security (Part 1)
...
This commit implements Part 1 of the policy refactor plan, establishing
a clean and secure context structure for Application-scoped policies.
Key Changes:
1. Security: Metadata Filtering
- Added filterUserMetadata() to filter internal annotations/labels
- Prevents policies from accessing system annotations (app.oam.dev/*,
kubernetes.io/*, kubectl.kubernetes.io/*, etc.)
- O(1) map-based filtering for performance
2. Explicit Context Fields
- Added context.appName (instead of context.application.metadata.name)
- Added context.namespace, context.appRevision, context.appRevisionNum
- Added filtered context.appLabels and context.appAnnotations
- All exposed via process.Context infrastructure
3. Controlled Application Spec Access
- Added context.appComponents (components array only)
- Added context.appWorkflow (workflow object only)
- Added context.appPolicies (policies array only)
- Prevents unintended access to full Application CR
4. Removed context.application
- Completely removed to enforce explicit field access
- Deleted cleanApplicationForPolicyContext() helper function
- Forces security best practices
5. Removed context.prior
- Simplified incremental policy feature (can be added back later)
- Deleted associated test coverage
Test Changes:
- Deleted 3 test blocks relying on removed features
- Fixed TTL test expectation (CRD default is -1, not 0)
- Fixed WorkflowStep struct initialization
- All tests passing
Benefits:
- ✅ Clean API with explicit fields
- ✅ Security: No bypass to unfiltered metadata
- ✅ Forces best practices
- ✅ Simpler for policy authors
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-13 21:53:48 +00:00
Brian Kane
f36017dfa5
feat: add explicit context fields and filtered metadata to policies
...
Populate policy context with explicit fields and filtered metadata
using the existing process.Context infrastructure, providing a
secure and user-friendly API for policy templates.
Changes:
- Populate ContextData with filtered labels/annotations (via filterUserMetadata)
- Add explicit fields: appName, namespace, appRevision, appRevisionNum
- Use process.Context.BaseContextFile() to inject context into CUE
- Reuses existing context infrastructure (same as components/workflows)
Context fields now available in policies:
- context.appName - explicit application name
- context.namespace - explicit namespace
- context.appRevision - explicit revision name
- context.appRevisionNum - explicit revision number
- context.appLabels - filtered user labels (internal prefixes removed)
- context.appAnnotations - filtered user annotations (internal prefixes removed)
Security: Filtered metadata isolates policy context from components/workflows:
- Policies: get filtered labels/annotations (secure)
- Components/workflows: get unfiltered labels/annotations (unchanged)
- Policy additionalContext flows via Go context to components as context.custom
Tests:
- Verify explicit fields accessible in policies
- Verify user metadata accessible (filtered)
- Verify internal metadata filtered out
Part of Policy Refactor Plan v3 - Part 1.2 & 1.3: Foundation
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-13 20:56:27 +00:00
Brian Kane
566b72b882
feat: add filterUserMetadata for secure policy context
...
Add filterUserMetadata() function to filter out internal/system
labels and annotations from policy context, preventing policies
from accessing sensitive KubeVela/Kubernetes internal metadata.
Implementation:
- Uses map-based prefix lookup for O(1) performance
- Filters prefixes: app.oam.dev/, oam.dev/, kubectl.kubernetes.io/,
kubernetes.io/, k8s.io/, helm.sh/, app.kubernetes.io/
- Optimized for hot path (runs on every reconciliation with policies)
- Returns nil for empty results to avoid unnecessary allocations
Tests:
- Filter internal vs user metadata
- Handle empty inputs
- Handle keys without prefixes
- Verify all internal prefixes are excluded
Part of Policy Refactor Plan v3 - Part 1.1: Foundation
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-13 20:30:18 +00:00
Brian Kane
d8562f1c2c
Checkpoint - bug fixes for application context
...
Signed-off-by: Brian Kane <briankane1@gmail.com >
2026-02-13 13:42:41 +00:00
Brian Kane
32d166c219
Checkpoint - context working
2026-02-10 17:43:06 +00:00
Brian Kane
bfa143297b
Checkpoint - working with caching and globals
2026-02-10 14:08:48 +00:00
Brian Kane
32ac0d69c7
Feature: Configurable Application Policies
2026-02-09 10:19:05 +00:00
Brian Kane
995a09d3c7
Fix: 7032 Adds component type to structured log output ( #7033 )
...
Webhook Upgrade Validation / webhook-upgrade-check (push) Failing after 11m56s
Signed-off-by: Brian Kane <briankane1@gmail.com >
2026-01-27 09:30:58 +00:00
Brian Kane
555e4416f4
Fix: 7018 Ensure Component removals are correctly persisted and reflected in status ( #7027 )
...
Signed-off-by: Brian Kane <briankane1@gmail.com >
2026-01-21 09:26:17 +00:00
Amit Singh
5ead6db8d7
Chore: bumps up pkg and workflow dependency versions ( #7026 )
...
Webhook Upgrade Validation / webhook-upgrade-check (push) Failing after 1m29s
* chore: bumps up workflow and pkg versions and updates import statements
Signed-off-by: Amit Singh <singhamitch@outlook.com >
* chore: minor linter fixes
Signed-off-by: Amit Singh <singhamitch@outlook.com >
---------
Signed-off-by: Amit Singh <singhamitch@outlook.com >
2026-01-20 15:32:03 +00:00
Brian Kane
568b1c578b
Feat: 7019 Support re-running workflows and ensure passed data is updated during dispatch ( #7025 )
...
Signed-off-by: Brian Kane <briankane1@gmail.com >
2026-01-19 11:18:10 +00:00
Amit Singh
0b85d55e68
Feat: post dispatch output context ( #7008 )
...
Webhook Upgrade Validation / webhook-upgrade-check (push) Failing after 1m46s
* exploring context data passing
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* adds output status fetch logic
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix: standardize import in dispatcher.
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* feat: Allow traits to access workload output status in CUE context
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* feat: Implement PostDispatch traits that apply after component health is confirmed.
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* feat: Refactor trait handling and status propagation in application dispatch.
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix: run make reviewable
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* feat: Implement and document PostDispatch traits, applying them after component health is confirmed and guarded by a feature flag, along with new example applications.
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* feat: Add comments
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Fix: Restore the status field in ctx.
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Fix: Error for evaluating the status of the trait
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* refactor: removes minor unnecessary changes
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* refactor: minor linter changes
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* test: Add comprehensive tests for PostDispatch traits and their status handling
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Fix: Increase multi-cluster test time
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Chore: Add focus and print the application status
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Chore: print deployment status in the multicluster test
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Chore: add labels for the deployment
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* debugging test failure
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* debugging test failure by updating multi cluster ctx
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* undoes multi cluster ctx change
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Feat: enable MultiStageComponentApply feature by default
Signed-off-by: Chaitanya Reddy Onteddu <chaitanyareddy0702@gmail.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Feat: implement post-dispatch traits application in workflow states
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Chore: remove unnecessary blank lines in application_controller.go
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Feat: enhance output readiness handling in health checks
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Feat: add logic to determine need for post-dispatch outputs in workload processing
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* Feat: enhance output extraction and dependency checking for post-dispatch traits
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix code to exclude validation of post dispatch trait in webhook
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix code to exclude validation of post dispatch trait in webhook
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* commit for running the test again
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* commit for running the test again
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* commit for running the test again
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* triggering checks
Signed-off-by: Amit Singh <singhamitch@outlook.com >
* chore: adds explanation comments
Signed-off-by: Amit Singh <singhamitch@outlook.com >
* chore: adds errors to context
Signed-off-by: Amit Singh <singhamitch@outlook.com >
* chore: minor improvements
Signed-off-by: Amit Singh <singhamitch@outlook.com >
* fix: update output handling for pending PostDispatch traits
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix: improve output handling for PostDispatch traits in deploy process
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix: streamline output handling in PostDispatch process
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* chore: commit to re run the pipeline
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* chore: commit to re run the pipeline
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* chore: commit to re run the pipeline
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix: enhance output status handling in PostDispatch context for multi-stage support
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* chore: commit to re run the pipeline
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix: increase timeout for PostDispatch trait verification in tests
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix: enhance output status handling in PostDispatch context for multi-stage support
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* chore: commit to re run the pipeline
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
---------
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Signed-off-by: Chaitanya Reddy Onteddu <chaitanyareddy0702@gmail.com >
Co-authored-by: Chitanya Reddy Onteddu <chaitanyareddy0702@gmail.com >
Co-authored-by: Vishal Kumar <vishal210893@gmail.com >
2026-01-14 10:28:13 +00:00
Chaitanyareddy0702
d627ecea2a
Chore: Upgrade cuelang version to v0.14.1 ( #6877 )
...
Webhook Upgrade Validation / webhook-upgrade-check (push) Failing after 24s
* chore: updates culenag version and syntax across all files
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* debuggin: reverts tf provider changes
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Refactor: Simplify provider configuration by removing 'providerBasic' and directly defining access keys and region for providers
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Refactor: Consolidate provider configuration by introducing 'providerBasic' for access keys and region
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: reorganize import statements in deepcopy files for consistency
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: reorder import statements for consistency across deepcopy files
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Refactor: Safely handle pattern parameter selectors to avoid panics in GetParameters and getStatusMap
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: add comment to clarify test context in definition_revision_test.go
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: remove redundant comment from test context initialization in definition_revision_test.go
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Refactor: Introduce GetSelectorLabel function to safely extract labels from CUE selectors
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: add newline at end of file in utils.go
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: increase timeout for multi-cluster e2e
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
---------
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Co-authored-by: Amit Singh <singhamitch@outlook.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
2025-10-23 10:56:37 +01:00
Ayush Kumar
d8a17740dc
Refactor: controller flags registration and cobra options ( #6949 )
...
* feat: Introduce comprehensive configuration management for KubeVela
- Added multiple configuration files under `cmd/core/app/config` to encapsulate various aspects of KubeVela's functionality, including:
- Feature gates
- Logging (KLog)
- Kubernetes API client settings
- Multi-cluster management
- OAM-specific configurations
- Observability settings (metrics and logging)
- Performance optimizations
- Profiling settings
- Reconciliation settings
- Resource management
- Server-level configurations
- Sharding configurations
- Webhook settings
- Workflow engine configurations
- Refactored `CoreOptions` to utilize the new configuration modules, ensuring a clean delegation pattern for flag registration.
- Updated tests to validate the new configuration structure and ensure backward compatibility with legacy fields.
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Sync config module values to legacy fields and add debug logging for webhook configuration
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: Remove debug logging for webhook configuration in server command
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: Add missing newlines at the end of multiple configuration files
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* refactor: Clean up legacy field synchronization and improve configuration handling in CoreOptions
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Introduce ControllerConfig for improved controller configuration management
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Implement sync methods for configuration values across various modules
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* refactor: Update ControllerConfig to embed Args struct and simplify flag registration
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* refactor: Remove ConfigureKLog method and apply klog settings directly in server run function
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* refactor: Remove unnecessary line in ControllerConfig and update test assertions for CUE options
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Enhance CUE configuration flags with detailed descriptions and add comprehensive tests for core options
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* feat: Add backward compatibility notes to sync methods and enhance CLI override tests for configuration values
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* refactor: Standardize flag formatting in TestCoreOptions_AllConfigModulesHaveFlags
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
---------
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
2025-10-23 10:54:45 +01:00
Chaitanyareddy0702
8aabc9f789
Fix: Enhance workflow context generation ( #6925 )
...
* Feat: Enhance workflow context generation to include application labels and annotations
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: Add application labels and annotations to workflow context generation
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
* Fix: add comments
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
---------
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
2025-09-29 08:06:51 -07:00
Brian Kane
70e6c9a49f
fix: apply status results to correct component ( #6886 )
...
Signed-off-by: Brian Kane <briankane1@gmail.com >
2025-09-08 01:49:48 -07:00
Brian Kane
56bc3b02e9
Feat: Consolidate Health & Status and Pass Status Context Data ( #6860 )
...
Signed-off-by: Brian Kane <briankane1@gmail.com >
2025-08-24 02:30:06 +08:00
Brian Kane
1a934e1618
Feat: Application Status Metrics & Structured Logs ( #6857 )
...
Feat: Application Status Metrics & Structured Logs
Signed-off-by: Brian Kane <briankane1@gmail.com >
2025-08-21 06:07:13 +08:00
Brian Kane
a27261bd14
Feature: Enhanced Status Reporting ( #6828 )
...
Signed-off-by: Brian Kane <briankane1@gmail.com >
2025-08-06 09:55:30 -07:00
Aberham Oscar
0b6092cf2b
Fix: omit component revision in additionalLabel to add to k8s object when component revision is not set and DisableAllComponentRevision setted true #6643 ( #6647 )
...
* Fix: omit component revision in additionalLabel to add to k8s object when component revision is not set and DisableAllComponentRevision setted true
Signed-off-by: 那金洋(29362878) <najinyang001@ke.com >
* Fix: omit component revision in additionalLabel to add to k8s object when component revision is not set and DisableAllComponentRevision setted true test cases
Signed-off-by: 那金洋(29362878) <najinyang001@ke.com >
---------
Signed-off-by: 那金洋(29362878) <najinyang001@ke.com >
2025-08-05 10:13:02 -07:00
Vishal Kumar
b5a9925042
Chore: upgrade Kubernetes dependencies to v0.31.10 & enhance CLI, workflows, tests, and documentation ( #6837 )
...
* Create testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Update testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Update testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Update testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Update testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Update testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Update testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Update testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Delete testwr
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Chore: (deps): Bump goreleaser/goreleaser-action from 5.0.0 to 6.3.0 (#6775 )
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action ) from 5.0.0 to 6.3.0.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases )
- [Commits](7ec5c2b0c6...9c156ee8a1 )
---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
dependency-version: 6.3.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Chore: Replace the openssf badge with UI link (#6783 )
[optional body]
[optional footer]
Signed-off-by: Anoop Gopalakrishnan <anoop2811@aol.in >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: moves dockerhub user name to secret section in the reusable workflow (#6778 )
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Signed-off-by: Ayush <ayushshyam.official.888@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Chore: update helm repo path in tests (#6797 )
* chore: fixes the breaking tests with older helm chart address
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Co-authored-by: Amit Singh <singhamitch@outlook.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* tests: update the registery url
Signed-off-by: semmet95 <singhamitch@outlook.com >
* updates the default url
Signed-off-by: semmet95 <singhamitch@outlook.com >
* test: reverts the changes
Signed-off-by: semmet95 <singhamitch@outlook.com >
* fix: sets github repo directory as the default definition registry
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: reverts the default definition registry url
Signed-off-by: Amit Singh <singhamitch@outlook.com >
* test: overwrites custom definition registry url
Signed-off-by: Amit Singh <singhamitch@outlook.com >
* debugging test failure
Signed-off-by: Amit Singh <singhamitch@outlook.com >
---------
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Co-authored-by: Amit Singh <singhamitch@outlook.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Fix: moves resource modification inside patch block (#6791 )
* fix: moves resource modification inside patch block
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: adds changes from make-reviewable
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* debugging error
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* test: updates the helm outdated path to new one
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* tests: fixes the failing helm test case
Signed-off-by: semmet95 <singhamitch@outlook.com >
* removes debugging printing statements
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
---------
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Co-authored-by: Ayush <ayushshyam.official.888@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Chore: switches to new oapi type field type (#6794 )
* chore: switches to new oapi type field type
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: updates gen_sdk to use the new schema type
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: updates gen_sdk_test to use the new schema type
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: updates schema to use the new schema type
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* fix: updates chart urls
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: changes from make reviewable
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: fixes linting errors
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* debugging test failure
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* fix: fixes schema type nil check
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: replaces literals with constants
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* debugging test failure
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* test: switches to the new addon registry url
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* chore: extra line removal
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* fix: replaces deprecated urls
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* fix: removes extra quotes form marshaljson
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
* fix: updates chart url in mock resource
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
---------
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Co-authored-by: Vishal Kumar <vishal210893@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Fix: vela cli namespace behaviour (#6805 )
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Fix: vela up command to behave similarly with kubectl (#6809 )
* Fix: vela up command to behave similarly with kubectl
Signed-off-by: Chaitanya Reddy Onteddu <chaitanyareddy0702@gmail.com >
* Chore: Update the unit test cases and add a new test cases
Signed-off-by: Chaitanya Reddy Onteddu <chaitanyareddy0702@gmail.com >
---------
Signed-off-by: Chaitanya Reddy Onteddu <chaitanyareddy0702@gmail.com >
Co-authored-by: Chaitanya Reddy Onteddu <co@guidewire.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Fix: check component status after initial deployment (#6824 )
* fix: check component status after initial deployment
Signed-off-by: Brian Kane <briankane1@gmail.com >
* Fix: applications should correctly reflect component health throughout the apps lifecycle
Signed-off-by: Brian Kane <briankane1@gmail.com >
* Fix: check component status after initial deployment
Signed-off-by: Brian Kane <briankane1@gmail.com >
---------
Signed-off-by: Brian Kane <briankane1@gmail.com >
Co-authored-by: Mikhail Elenskii <elenskii-mikhail@outlook.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* chore: upgrade k8s version to v0.31.10 and corresponding fixes
Signed-off-by: vishal210893 <vishal210893@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* fix: remove defer from feature gate testing in multiple test files
Signed-off-by: vishal210893 <vishal210893@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* fix: remove defer from feature gate testing in multiple test files
Signed-off-by: vishal210893 <vishal210893@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* fix: use RunPortForwardContext for improved context handling in port forwarding
Signed-off-by: vishal210893 <vishal210893@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Chore: Fix check-diff
Signed-off-by: Chaitanya Reddy Onteddu <co@guidewire.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* Chore: Update ENVTEST_K8S_VERSION variable
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* fix: update feature gate testing to use GinkgoT for improved context handling
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Fix: update Kubernetes version in e2e tests to v1.31
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Fix: increase timeout for application revision retrieval in multicluster tests
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
* chore: update kubevela workflow to master
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Fix: increase timeout in multicluster tests
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
* fix: upgrade dependencies and improve context handling in port forwarding
Signed-off-by: vishal210893 <vishal210893@gmail.com >
* chore: remove space to trigger pipeline
Signed-off-by: vishal210893 <vishal210893@gmail.com >
* chore: add space to trigger pipeline
Signed-off-by: vishal210893 <vishal210893@gmail.com >
* chore: updated go sum
Signed-off-by: vishal210893 <vishal210893@gmail.com >
* chore: updated go.mod for running github action
Signed-off-by: vishal210893 <vishal210893@gmail.com >
* chore: updated go.mod for running github action
Signed-off-by: vishal210893 <vishal210893@gmail.com >
* Fix: increase timeout and enhanced multicluster tests
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* adding a comment to re run the pipeline
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* Adding back decription removed during check-diff
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* ran make reviewable
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* replaced generate-groups.sh with kube_codegen.sh
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* API Call changes for kube_codegen
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* fixed incorrect Api package path format and output dir handling
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* resolved incompatible dependencies issue
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
* chore: update clientgen.sh to use kubevela clientgen_work_temp
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
* chore: update clientgen.sh to use kubevela clientgen_work_temp
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
* test: increase timeout for application deployment and rollback verification
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
---------
Signed-off-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Anoop Gopalakrishnan <anoop2811@aol.in >
Signed-off-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Signed-off-by: Ayush <ayushshyam.official.888@gmail.com >
Signed-off-by: semmet95 <singhamitch@outlook.com >
Signed-off-by: Amit Singh <singhamitch@outlook.com >
Signed-off-by: Ayush Shyam Kumar <ayushshyam.official.888@gmail.com >
Signed-off-by: Chaitanya Reddy Onteddu <chaitanyareddy0702@gmail.com >
Signed-off-by: Brian Kane <briankane1@gmail.com >
Signed-off-by: vishal210893 <vishal210893@gmail.com >
Signed-off-by: Chaitanya Reddy Onteddu <co@guidewire.com >
Signed-off-by: Vishal Kumar <vishal210893@gmail.com >
Signed-off-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
Co-authored-by: Ayush Kumar <ayushshyamkumar888@gmail.com >
Co-authored-by: Vaibhav Agrawal <vaibhav.agrawal0096@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anoop Gopalakrishnan <2038273+anoop2811@users.noreply.github.com >
Co-authored-by: Ayush Kumar <65535504+roguepikachu@users.noreply.github.com >
Co-authored-by: Amit Singh <singhamitch@outlook.com >
Co-authored-by: Ayush <ayushshyam.official.888@gmail.com >
Co-authored-by: Chaitanyareddy0702 <78363486+Chaitanyareddy0702@users.noreply.github.com >
Co-authored-by: Chaitanya Reddy Onteddu <co@guidewire.com >
Co-authored-by: Brian Kane <briankane1@gmail.com >
Co-authored-by: Mikhail Elenskii <elenskii-mikhail@outlook.com >
Co-authored-by: Chaitanya Reddy Onteddu <chaitanyareddy0702@gmail.com >
Co-authored-by: Reetika Malhotra <malhotra.reetika25@gmail.com >
2025-07-31 07:46:56 -07:00
Brian Kane
fedcca1c7b
Fix: check component status after initial deployment ( #6824 )
...
* fix: check component status after initial deployment
Signed-off-by: Brian Kane <briankane1@gmail.com >
* Fix: applications should correctly reflect component health throughout the apps lifecycle
Signed-off-by: Brian Kane <briankane1@gmail.com >
* Fix: check component status after initial deployment
Signed-off-by: Brian Kane <briankane1@gmail.com >
---------
Signed-off-by: Brian Kane <briankane1@gmail.com >
Co-authored-by: Mikhail Elenskii <elenskii-mikhail@outlook.com >
2025-07-04 23:01:44 +05:30
Chaitanyareddy0702
bde50df3e5
Fix: Vela not deleting the definition revisions after cleaning up the definitions ( #6738 )
...
Signed-off-by: svc-gh-gokarna_gwre <svc-gh-gokarna@guidewire.com >
Co-authored-by: svc-gh-gokarna_gwre <svc-gh-gokarna@guidewire.com >
2025-03-29 06:16:03 +08:00
Kanchan Dhamane
bc15e5b359
Feat: Semantic versioning support for Definitions ( #6648 )
...
CodeQL / Analyze (go) (push) Failing after 1m43s
Definition-Lint / definition-doc (push) Failing after 6m13s
E2E MultiCluster Test / detect-noop (push) Successful in 24s
E2E Test / detect-noop (push) Successful in 17s
Go / detect-noop (push) Successful in 21s
license / Check for unapproved licenses (push) Failing after 2m38s
Registry / publish-core-images (push) Failing after 40s
Unit-Test / detect-noop (push) Successful in 20s
E2E MultiCluster Test / e2e-multi-cluster-tests (v1.29) (push) Failing after 1m55s
E2E Test / e2e-tests (v1.29) (push) Failing after 1m18s
Go / staticcheck (push) Successful in 18m35s
Go / lint (push) Failing after 19m38s
Go / check-diff (push) Failing after 15m7s
Go / check-core-image-build (push) Failing after 3m45s
Go / check-cli-image-build (push) Failing after 2m23s
Unit-Test / unit-tests (push) Failing after 12m43s
Go / check-windows (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Failing after 48s
* feature: Add Semantic versioning to KubeVela Definitions
Fixes https://github.com/kubevela/kubevela/issues/6435
Fixes https://github.com/kubevela/kubevela/issues/6534
Changes:
- Adds an optional "Version" field for all Definition Specs.
- Adds the following new validations to Webhooks for Definitions:
- Validate the "Version" field follows Semantic versioning.
- Dis-allow conflicting versioning fields ( Name annotation, Spec.Version)
- Adds the following new validations to Webhooks for Application:
- Dis-allow the use of both the "publishVersion" & "autoUpdate" annotations.
- Enahnce "multiStageComponentApply" feature to support auto updates.
Boy Scout Changes:
- Fixes Plugin e2e tests broken by the fix for 6534.
- Fixes the dryRun and livediff commands to respect the "-n" namespace flag.
- Fixes the Application ValidationWebhook to respect the "-n" namespace flag.
Co-authored-by: Rahul Kumar <35751394+bugbounce@users.noreply.github.com >
Co-authored-by: Chaitanya Reddy <chaitanyareddy0702@gmail.com >
Co-authored-by: Vibhor Chinda <vibhorchinda@gmail.com >
Co-authored-by: Shivin Gopalani <gopalanishivin@gmail.com >
Signed-off-by: kanchan-dhamane <74534570+kanchan-dhamane@users.noreply.github.com >
* feature: Add KEP to define the proposal
Signed-off-by: kanchan-dhamane <74534570+kanchan-dhamane@users.noreply.github.com >
* fix: Rebase and fix merge conflicts
Signed-off-by: kanchan-dhamane <74534570+kanchan-dhamane@users.noreply.github.com >
* Fix: Adds unit test cases
Signed-off-by: kanchan-dhamane <74534570+kanchan-dhamane@users.noreply.github.com >
---------
Signed-off-by: kanchan-dhamane <74534570+kanchan-dhamane@users.noreply.github.com >
Co-authored-by: bugbounce <35751394+bugbounce@users.noreply.github.com >
2025-02-03 11:09:28 +08:00
Ai Ranthem
a5606b7808
Chore: (deps): Update k8s to 1.29 ( #6654 )
...
CodeQL / Analyze (go) (push) Failing after 6m23s
Definition-Lint / definition-doc (push) Failing after 3m8s
E2E MultiCluster Test / detect-noop (push) Successful in 6s
E2E Test / detect-noop (push) Successful in 3s
Go / detect-noop (push) Successful in 2s
license / Check for unapproved licenses (push) Failing after 18s
Registry / publish-core-images (push) Failing after 1m4s
Unit-Test / detect-noop (push) Successful in 20s
Sync SDK / sync_sdk (push) Failing after 3m9s
Go / staticcheck (push) Successful in 6m17s
Go / check-diff (push) Failing after 19m4s
Go / check-core-image-build (push) Failing after 5m44s
Go / check-cli-image-build (push) Failing after 3m31s
Unit-Test / unit-tests (push) Failing after 13m54s
Go / lint (push) Failing after 1h53m27s
Scorecards supply-chain security / Scorecards analysis (push) Failing after 1m27s
E2E MultiCluster Test / e2e-multi-cluster-tests (v1.29) (push) Has been cancelled
E2E Test / e2e-tests (v1.29) (push) Has been cancelled
Go / check-windows (push) Has been cancelled
* chore: update k8s to 1.29
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: unit test
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: lint
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: lint
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: e2e
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix: lint and e2e test
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* test(e2e): increase timeout
Signed-off-by: phantomnat <w.nattadej@gmail.com >
* fix e2e and scripts
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
* make reviewable
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
* rollback a unnecessary ut change
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
* update go.mod to import merged workflow
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
---------
Signed-off-by: phantomnat <w.nattadej@gmail.com >
Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com >
Co-authored-by: phantomnat <w.nattadej@gmail.com >
2025-01-03 07:54:42 +08:00
Tianxin Dong
0f780dec75
Feat: add new providers and fix definitions ( #6599 )
...
* feat: add new providers and fix definitions
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix definitions and tests
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix lint and helm
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix definitions
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add multicluster
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix e2e
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix dynamic client for cli
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix api gen
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix lint
Signed-off-by: FogDong <fog@bentoml.com >
---------
Signed-off-by: FogDong <fog@bentoml.com >
2024-10-01 12:29:44 +05:30
Tianxin Dong
4f8bf44684
Refactor: use cuex engine ( #6575 )
...
* refactor: use cuex engine
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix lint
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix unit test
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix static check and sdk tests
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix testdata
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix velaql unit test
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix docgen parser
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix cuegen
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix velaql
Signed-off-by: FogDong <fog@bentoml.com >
* fix: delete useless print
Signed-off-by: FogDong <fog@bentoml.com >
* fix: set client for ql
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix mt tests
Signed-off-by: FogDong <fog@bentoml.com >
* fix: set kubeclient in generator
Signed-off-by: FogDong <fog@bentoml.com >
* fix: use pass kube client
Signed-off-by: FogDong <fog@bentoml.com >
* fix: simplify ql
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix lint
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add wf debug back
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add loader
Signed-off-by: FogDong <fog@bentoml.com >
---------
Signed-off-by: FogDong <fog@bentoml.com >
2024-07-27 17:44:20 +08:00
Tianxin Dong
82dad1ebbb
Chore: update go version to 1.22 ( #6560 )
...
* chore: update go version to 1.22
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix lint
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix unit test
Signed-off-by: FogDong <fog@bentoml.com >
* fix: update static check tool
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add debug
Signed-off-by: FogDong <fog@bentoml.com >
* fix: use ghcr to fix dockerhub rate limit
Signed-off-by: FogDong <fog@bentoml.com >
* fix: use ghcr for addons
Signed-off-by: FogDong <fog@bentoml.com >
* fix: add more timeout for e2e multicluster test
Signed-off-by: FogDong <fog@bentoml.com >
* fix: use ghcr
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix e2e addon image
Signed-off-by: FogDong <fog@bentoml.com >
* fix: test addon terraform version
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix admission image
Signed-off-by: FogDong <fog@bentoml.com >
* fix: fix terraform version
Signed-off-by: FogDong <fog@bentoml.com >
---------
Signed-off-by: FogDong <fog@bentoml.com >
2024-07-03 16:10:56 +08:00
Chaitanyareddy0702
52873eb7da
Fix: e2e-tests and unit-tests ( #6562 )
...
- Remove gomega from workflow e2e-test step
- Change the app phase to WorkFlowFailed when there is an error in workflow
- Change the app10.yaml file
Signed-off-by: Chaitanyareddy0702 <chaitanyareddy0702@gmail.com >
Author: VibhorChinda <vibhorchinda@gmail.com >
2024-07-02 16:42:55 +08:00
Daniel Higuero
1a001e5b29
Address GolangCI lint 1.55 errors ( #6453 )
...
Signed-off-by: Daniel Higuero <daniel@napptive.com >
2024-02-07 17:27:32 +08:00
JohnJan
d787e95a08
Feat: apply-component supports namespace ( #6248 )
2023-08-31 14:08:48 +08:00
qiaozp
94cbcad471
Chore: tidy appHandler ( #6300 )
2023-08-28 11:01:33 +08:00
qiaozp
5a5721048c
Refactor: organize appHandler, remove unused flags ( #6254 )
2023-08-11 12:50:22 +08:00
qiaozp
bab5bb2caf
Refactor: capabilities and workload in appfile parsing ( #6250 )
2023-08-10 14:41:20 +08:00
qiaozp
307d1db36d
Chore: revert "Feat: apply-component supports namespace" ( #6247 )
2023-08-07 15:44:20 +08:00
JohnJan
f0357fdc8f
Feat: apply-component supports namespace ( #6228 )
...
* Feat: apply-component supports namespace
Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com >
* Feat: apply-component supports namespace
Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com >
---------
Signed-off-by: wuzhongjian <wuzhongjian_yewu@cmss.chinamobile.com >
2023-07-25 10:31:18 +08:00
Somefive
da3618ad27
Chore: remove useless envbinding env ( #6122 )
...
* Chore: remove useless envbinding env
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* fix go proxy
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
---------
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2023-06-15 14:50:20 +08:00
Somefive
f1bae16723
Chore: remove schematic kube and helm ( #6099 )
...
* Chore: remove unused code
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
* Chore: remove schematic Kube & Helm
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
---------
Signed-off-by: Somefive <yd219913@alibaba-inc.com >
2023-06-12 10:41:02 +08:00