Try Devtron Enterprise!
Start Free Trial
LogoLogo
WebsiteDevtron demoGithub RepoJoin Discord
v0.7
v0.7
  • Introduction
  • Getting Started
  • Install Devtron
    • Install Devtron with CI/CD
    • Install Devtron with CI/CD and GitOps (Argo CD)
    • Install Devtron without Integrations
    • Install Devtron on Minikube, Microk8s, K3s, Kind, Cloud VMs
    • Install Devtron on Airgapped Environment
    • Demo on Popular Cloud Providers
    • Backup for Disaster Recovery
    • Uninstall Devtron
    • FAQs
  • Install Devtron Enterprise Trial
  • Devtron Kubernetes Client
  • Configurations
    • Installation Configurations
    • Override Configurations
    • Ingress Setup
  • Global Configurations
    • Host URL
    • GitOps
    • Projects
    • Clusters & Environments
    • Git Accounts
    • Container/OCI Registry
    • Chart Repositories
    • Deployment Charts
    • Authorization
      • SSO Login Services
        • Google
        • GitHub
        • GitLab
        • Microsoft
        • LDAP
        • OIDC
          • Keycloak
          • Okta
        • OpenShift
      • User Permissions
      • Permission Groups
      • API Tokens
    • Notifications
    • Deployment Window
    • Approval Policy
    • External Links
    • Catalog Framework
    • Scoped Variables
    • Plugin Policy
    • Pull Image Digest
    • Tags Policy
    • Filter Condition
    • Lock Deployment Configuration
    • Image Promotion Policy
    • Build Infra
  • Devtron Upgrade
    • Update Devtron from Devtron UI
    • Upgrade to 1.5.0
    • 0.6.x-0.7.x
    • 0.5.x-0.6.x
    • 0.4.x-0.5.x
    • 0.4.x-0.4.x
    • 0.3.x-0.4.x
    • 0.3.x-0.3.x
    • 0.2.x-0.3.x
  • Usage
    • Applications
      • Create a New Application
      • Clone an Existing Application
      • Deploy a Sample Application
      • App Configuration
        • Git Repository
        • Build Configuration
        • Base Deployment Template
          • Deployment
          • Rollout Deployment
          • Job and Cronjob
          • StatefulSets
        • GitOps Configuration
        • Workflow Editor
          • CI Pipeline
            • Pre-Build/Post-Build Stages
            • Override Build Configuration
          • CD Pipeline
        • ConfigMaps
        • Secrets
          • External Secret Operator (ESO)
            • AWS Secrets Manager
            • Google Secrets Manager
            • HashiCorp Vault
        • Environment Overrides
        • Deleting Application
      • Build and Deploy
        • Triggering CI
        • Triggering CD
        • Rollback Deployment
        • Applying Labels to Images
      • App Details
        • Debugging Deployment And Monitoring
        • Using Ephemeral Containers
        • Application Metrics
      • Application Overview
    • Jobs
      • Create a new job
      • Configurations
      • Workflow Editor
      • Trigger Job
      • Overview
    • Application Groups
    • Software Distribution Hub
      • Tenants
      • Release Hub
    • Resource Browser
    • Resource Watcher
    • Charts
      • Charts Overview
      • Deploy & Observe
      • Examples
        • Deploying Mysql Helm Chart
        • Deploying MongoDB Helm Chart
      • Chart Group
    • Security
      • Security Scans
      • Security Policies
    • Bulk Edit
    • Integrations
      • Build and Deploy (CI/CD)
      • GitOps (Argo CD)
      • Vulnerability Scanning (Clair)
      • Notifications
      • Monitoring (Grafana)
    • Pipeline Plugins
      • Create Your Plugin
      • Our Plugins
        • Ansible Runner
        • Bitbucket Runner Trigger
        • Codacy
        • Code-Scan
        • Copacetic
        • Container Image Exporter
        • Copy Container Image
        • Cosign
        • CraneCopy
        • Dependency track - Maven & Gradle
        • Dependency track - NodeJS
        • Dependency track - Python
        • Devtron CD Trigger
        • Devtron CI Trigger
        • Devtron Job Trigger
        • DockerSlim
        • EKS Create Cluster
        • GCS Create Bucket
        • GitHub Pull Request Updater
        • GKE Provisioner
        • GoLang-migrate
        • Jenkins
        • Jira Issue Validator
        • Jira Issue Updater
        • K6 Load Testing
        • Pull images from container repository
        • Semgrep
        • SonarQube
        • SonarQube v1.1.0
        • Terraform CLI
        • Vulnerability Scanning
  • Resources
    • Glossary
    • Troubleshooting
    • Use Cases
      • Devtron Generic Helm Chart To Run CronJob Or One Time Job
      • Connect SpringBoot with Mysql Database
      • Connect Expressjs With Mongodb Database
      • Connect Django With Mysql Database
      • Pull Helm Charts from OCI Registry
    • Telemetry Overview
    • Devtron on Graviton
    • Release Notes
Powered by GitBook
On this page
  • Introduction
  • Adding Labels & Comments
  • From Build & Deploy
  • From Build History
  • From Deployment History
  • From App Details
  • Deleting Labels & Comments
  • Soft-Delete Labels
  • Hard-Delete Labels
  • Removing Comments
  • Extra Use Case

Was this helpful?

Export as PDF
  1. Usage
  2. Applications
  3. Build and Deploy

Applying Labels to Images

PreviousRollback DeploymentNextApp Details

Last updated 2 months ago

Was this helpful?

Introduction

Typically in a CI pipeline, you , and the number of images gradually increases over a period of time. Devtron's image labels and comments feature helps you to mark and recall specific images from the repository by allowing you to add special instructions or notes to them.

For example:

  • You can label an image as non-prod to indicate that it is meant for 'Dev' or 'QA' environments, but not for production.

  • Add hotfix image only label to indicate a one-time patch on production.

  • Comments like This image is buggy and shouldn't be used for deployment to caution other users from deploying an unwanted image.

Figure 1: Labels and Comments

Tagging labels and comments are supported only for images in workflows with at least one production deployment pipeline. In Devtron, you can go to Global Configurations → Clusters & Environments to identify a production environment by checking the 'Prod' label.


Adding Labels & Comments

Who Can Perform This Action?

You can add labels and comments from the following pages:

From Build & Deploy

From Build History

From Deployment History

From App Details


Deleting Labels & Comments

Soft-Delete Labels

Who Can Perform This Action?

This action marks the label as invalid but doesn't delete the label. Therefore, you can recover it again but you cannot reuse it for other image (unless it's a different application).

  1. Click the edit option.

  2. Use the (-) icon to strike off the label. This icon is available on the left-side of a label.

  3. Click Save.

Hard-Delete Labels

Who Can Perform This Action?

Users need to have super-admin permission to perform hard deletion of labels.

This action deletes the label permanently and makes it available for reuse in same/other image of the given application.

  1. Click the edit option.

  2. Use the (x) icon to permanently remove the label. This icon is available on the right-side of a label.

  3. Click Save.

Removing Comments

Who Can Perform This Action?

If you wish to permanently remove a comment, do the following:

  1. Click the edit option.

  2. Empty the content of an existing comment.

  3. Click Save.


Extra Use Case

This will be helpful in scenarios (say release package) where you wish to deploy multiple applications at once, and you have already labelled the intended images of the respective applications.

Such labels and comments will be visible only within Devtron, and will not propagate to your (say Docker Hub), unlike custom . You may use it to simplify the management and for deployment.

Users need to have or above (along with access to the environment and application) to add labels and comments.

(only after deployment)

(only after deployment)

You can add multiple labels to an image. but each label can be used only once 'per image, per application'. You may use it in an image of other application though. Refer if you commit a mistake while adding labels.

Figure 2: Adding Labels and Comments - 'Build & Deploy' Page
Figure 3: Adding Labels and Comments - 'Build History' Page
Figure 4: Adding Labels and Comments - 'Deployment History' Page
Figure 5: Adding Labels and Comments - 'App Details' Page

Users need to have or above (along with access to the environment and application) to perform soft deletion of labels.

Figure 6: Soft Deletion of a Label
Figure 7: Hard Deletion of a Label

Users need to have or above (along with access to the environment and application) to remove comments.

Figure 8: Removing a Comment

If you use to deploy in bulk, image labels (if added) will be available as filters for you to quickly locate the container image.

Figure 9: Application Groups - Filter by Image Label
Application Groups
From Build & Deploy
From Build History
From Deployment History
From App Details
Deleting Labels
build container images
container registry
Build & deploy permission
Build & deploy permission
Build & deploy permission
selection of container images
image tag pattern