Updated
- Bumping chart version to v0.5.68 for scalr-agent v0.61.3
Breaking Changes
-
Selector labels changed: The default
app.kubernetes.io/namelabel changed fromagent-jobtoscalr-agent. Kubernetes does not allow modifying Deployment selectors, so existing installations will fail to upgrade with "field is immutable" error.Migration options:
-
Delete the existing Deployment before upgrading (causes brief downtime, uninstallation will termineta active jobs):
kubectl delete deployment <release-name> -n <namespace> helm upgrade --install <release-name> scalr-agent/agent-job ...
-
Preserve the old name to maintain compatibility (no downtime):
helm upgrade --install <release-name> scalr-agent/agent-job \ --set nameOverride="agent-job" ...
-
-
CRD replaced: The
atasks.scalr.ioCRD has been replaced byagenttasktemplates.scalr.io. ExistingAgentTaskresources will no longer be recognized. The old CRD must be manually removed after upgrading:kubectl delete crd atasks.scalr.io
Added
- Added
task.job.basenameoption to override the base name prefix for spawned Kubernetes Jobs. - Added "Task Naming" documentation section explaining how Job names are generated.
- Added workload-level labels and annotations for the Deployment (
agent.labels,agent.annotations) and Job (task.jobLabels,task.jobAnnotations). - Added global labels and annotations applied to all chart resources (
global.labels,global.annotations).
Changed
- Renamed CRD from
AgentTasktoAgentTaskTemplatefor clarity, as the CRD defines a template for tasks, not a task itself. - Default base name changed from chart name (
agent-job) toscalr-agentfor cleaner resource naming. - Deployment and task template names now use the
fullnametemplate instead of hardcoded values. - Updated RBAC to reference
agenttasktemplatesinstead ofatasks. - Job naming scheme changed from
atask-xxxto<basename>-<run-id>-<stage>(e.g.,scalr-agent-run-v0p500fu3s9ban8s8-plan). This provides better control over job naming and uses run IDs familiar to users and operators for better observability. - ClusterRole and ClusterRoleBinding names now include namespace prefix to avoid conflicts in multi-namespace deployments.
Removed
- Removed
atasks.scalr.ioCRD (replaced byagenttasktemplates.scalr.io). - Removed unused helper templates:
agent-job.componentName,agent-job.dataPVCName,agent-job.cachePVCName.
Fixed
- Fixed
podSecurityContextdescription comments (incorrectly referencedpodAnnotations). - Fixed selector labels not being included in Deployment pod template labels.
- Fixed pod labels indentation in Deployment template.
- Fixed ClusterRoleBinding by removing incorrect
namespacefield from metadata.