chart: Add default-logs-container annotation to controller pods
so that you can run `kubectl logs` on controller pods without the specifying the container name. It is especially useful when you want to run kubectl-logs on all ARC pods across controller-manager and github-webhook-server like: ``` kubectl -n actions-runner-system logs -l app.kubernetes.io/name=actions-runner-controller ``` That was previously impossible due to that the selector matches pods from both controller-manager and github-webhook-server and kubectl does not provide a way to specify container names for respective pods.
This commit is contained in:
		
							parent
							
								
									f3ceccd904
								
							
						
					
					
						commit
						9e356b419e
					
				|  | @ -14,6 +14,7 @@ spec: | ||||||
|     metadata: |     metadata: | ||||||
|       {{- with .Values.podAnnotations }} |       {{- with .Values.podAnnotations }} | ||||||
|       annotations: |       annotations: | ||||||
|  |         kubectl.kubernetes.io/default-logs-container: "manager" | ||||||
|         {{- toYaml . | nindent 8 }} |         {{- toYaml . | nindent 8 }} | ||||||
|       {{- end }} |       {{- end }} | ||||||
|       labels: |       labels: | ||||||
|  |  | ||||||
|  | @ -15,6 +15,7 @@ spec: | ||||||
|     metadata: |     metadata: | ||||||
|       {{- with .Values.githubWebhookServer.podAnnotations }} |       {{- with .Values.githubWebhookServer.podAnnotations }} | ||||||
|       annotations: |       annotations: | ||||||
|  |         kubectl.kubernetes.io/default-logs-container: "github-webhook-server" | ||||||
|         {{- toYaml . | nindent 8 }} |         {{- toYaml . | nindent 8 }} | ||||||
|       {{- end }} |       {{- end }} | ||||||
|       labels: |       labels: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue