Comments (2)
According to k8s documentation on label key:
Labels are key/value pairs. Valid label keys have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots (.), not longer than 253 characters in total, followed by a slash (/). If the prefix is omitted, the label Key is presumed to be private to the user. Automated system components (e.g. kube-scheduler, kube-controller-manager, kube-apiserver, kubectl, or other third-party automation) which add labels to end-user objects must specify a prefix. The kubernetes.io/ prefix is reserved for Kubernetes core components.
We should use the long names: an prefix and name, separated by a slash (/).
from tidb-operator.
I agree that label keys should contain a domain prefix. So it can be selected by label selector without conflict with other apps.
But for annotations, it's usually used internally and can't be queried by keys. So shorter keys are fine enough and we can source the annotations in our scripts without errors.
As for multiple words in label key, we should follow Kubernetes convention using a dash(-
) to separate them. But for annotations, because we use annotations key-value pair in scripts via source
we should use underscore(_
) to avoid sourcing errors.
from tidb-operator.
Related Issues (20)
- Support to terminate sidecars in BR job
- ebs br: TiKV panic at catching up logs during ebs restore
- ebs br: backup tolerates the rolling restart HOT 1
- backup should be set to failed when error "failed to keep importing to store 17 being denied, the state might be inconsistency" occured HOT 1
- TiKV failed for more than 5 minutes, and the system did not set the backup task as failed
- Increase backup init job TTL
- Pausing lighting will cause a loss of status when encountering a TikV restart, and backup needs to be set to fail
- Is there any tool can migrate cluster running on k8s to physical machine? HOT 1
- ebs br: serialize deletion of volumebackups and snapshots in backup
- 1.5.1 can not upgrade tidb 6.5 to 7.5 due to not support alibaba oss volume HOT 3
- (tls) tikv start command line should add option of "advertise-status-addr" HOT 2
- backup is stuck when the init pod creating stuck and exceed ttl
- Backupmeta is incorrect if there are redundant PVCs or PVs of TiKV
- ebs br: restore failed with .kubernetes.pvcs and pvs for CloudSnapBackup not matched HOT 1
- Operator is broken for K8s v1.28 and later HOT 1
- Backup pod error due to creating file error
- Support specify backup ts for backup
- volumebackup failed, error message is "init job deleted before all the volume snapshots are created"
- Modify tikv config but not rolling update pods HOT 10
- `Restore` does not start restore job HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidb-operator.