Company
Date Published
Author
Kostis Kapelonis
Word count
2504
Language
English
Hacker News points
None

Summary

The text provides a comprehensive guide on how to effectively use the targetRevision field within Argo CD applications, emphasizing best practices and potential pitfalls. It advocates for setting the targetRevision to "HEAD" for non-production environments to maintain simplicity, auditability, and ease of use, allowing developers to self-manage deployments and incident responses with straightforward Git commands. The guide cautions against using branch names, semantic ranges, or Git hashes for the targetRevision, as these practices complicate deployment history, hinder auditability, and slow down processes, especially during incidents. For production environments, the use of specific Git tags or Helm chart versions is suggested to ensure controlled deployments, albeit with an understanding of the inherent limitations such as the mutability of tags and the introduction of additional deployment steps. The text underscores the importance of aligning with GitOps principles to optimize both developer experience and operational efficiency.