CrunchyData / postgres-operator

Production PostgreSQL for Kubernetes, from high availability Postgres clusters to full-scale database-as-a-service.
https://access.crunchydata.com/documentation/postgres-operator/v5/
Apache License 2.0
3.96k stars 594 forks source link

Add default container annotation #4031

Closed benjaminjb closed 5 days ago

benjaminjb commented 2 weeks ago

Checklist:

Type of Changes:

What is the current behavior (link to any open issues here)?

What is the new behavior (if this is a feature change)?

Since K8s 1.21, the kubectl.kubernetes.io/default-container annotation can be added to set a default container, removing the need for a -c flag or eliminating the message about defaulting.

Other Information: Issues: [PGO-1941]