Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature Request] Support custom labels on generated Kubernetes Deployment resources

Đã đóng
#187 0 bình luận 3 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@paulhobbel đang làm issue này rồi.

Từ ngày 8/10/2026.

  • #639 của @paulhobbel — đã merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go, kubernetes
Lĩnh vực
infrastructure

Hướng nghiên cứu

Bắt đầu bằng cách xác định đặc tả của TemporalWorkerDeployment và mã controller tạo ra các tài nguyên Deployment của Kubernetes. Theo dõi cách các label do hệ thống quản lý được gán và kiểm tra các test hiện có của controller, nếu có. Được xem là hoàn tất khi trường deploymentLabels được yêu cầu được chấp nhận và áp dụng vào Deployment được tạo ra mà không thay đổi các label của pod.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Is your feature request related to a problem? Please describe.

When deploying a TemporalWorkerDeployment resource, custom labels can only be applied to the pods via spec.template.metadata.labels. The generated Kubernetes Deployment resource itself only receives system-managed labels:

  • temporal.io/build-id
  • temporal.io/deployment-name
Describe the solution you'd like

Allow users to specify custom labels that should be applied to the generated Kubernetes Deployment resource (not just the pods).

This is useful for:

  • Adding deployment-level metadata (e.g., team: backend, environment: production)
  • Integration with external tools that query Deployment labels (e.g., cost allocation, monitoring dashboards)
  • Consistency with standard Kubernetes label conventions for deployments

Example

  apiVersion: temporal.io/v1alpha1
  kind: TemporalWorkerDeployment
  metadata:
    name: my-worker
  spec:
    deploymentLabels:  # New field
      team: backend
      environment: production
      cost-center: engineering
    template:
      metadata:
        labels:
          version: v1
      spec:
        containers:
          - name: worker
            image: myimage:latest
Ngôn ngữ chính
Go
Star
197
Fork
82
Merge trung bình
3 ngày 40 phút
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của temporalio/temporal-worker-controller

Tất cả issue của temporalio/temporal-worker-controller

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.