-
Notifications
You must be signed in to change notification settings - Fork 16
HYPERFLEET-1108 - feat: Add e2e.hyperfleet.io/run-id label for e2e-gcp environment, label resources created by adapters #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -24,14 +24,20 @@ broker: | |||||||||||||||||
| rabbitmq: | ||||||||||||||||||
| url: {{ env "RABBITMQ_URL" | default "amqp://guest:guest@rabbitmq:5672" }} | ||||||||||||||||||
| {{ end }} | ||||||||||||||||||
|
|
||||||||||||||||||
| {{- if hasKey .Values "labels" }} | ||||||||||||||||||
| labels: | ||||||||||||||||||
| {{- toYaml .Values.labels | nindent 2 }} | ||||||||||||||||||
| {{- end }} | ||||||||||||||||||
|
|
||||||||||||||||||
| env: | ||||||||||||||||||
| - name: SIMULATE_RESULT | ||||||||||||||||||
| value: success | ||||||||||||||||||
| - name: NAMESPACE | ||||||||||||||||||
| valueFrom: | ||||||||||||||||||
| fieldRef: | ||||||||||||||||||
| fieldPath: metadata.namespace | ||||||||||||||||||
| {{- if and (hasKey .Values "runId") .Values.runId }} | ||||||||||||||||||
| {{- if hasKey .Values "runId" }} | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need the hasKey to prevent issues. Addressed this yesterday in the first pr. |
||||||||||||||||||
| - name: RUN_ID | ||||||||||||||||||
| value: {{ .Values.runId | quote }} | ||||||||||||||||||
| {{- end }} | ||||||||||||||||||
|
Comment on lines
+40
to
43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win CWE-703:
Fix- {{- if hasKey .Values "runId" }}
+ {{- if and (hasKey .Values "runId") .Values.runId }}
- name: RUN_ID
value: {{ .Values.runId | quote }}
{{- end }}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why moving it?