Skip to content

Commit aed33b7

Browse files
committed
remove leftovers
1 parent 0afa1e2 commit aed33b7

File tree

3 files changed

+1
-136
lines changed

3 files changed

+1
-136
lines changed

charts/gitops-runtime/templates/_components/event-reporters/_helpers.tpl

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -97,55 +97,4 @@ Create the name of the service account to use
9797
{{- else }}
9898
{{- default "default" .Values.workflow.serviceAccount.name }}
9999
{{- end }}
100-
{{- end }}
101-
102-
{{/*
103-
Create a single event-source sensor http trigger
104-
assumes the name, condition and payload.dependencyName are identical
105-
*/}}
106-
{{- define "event-reporters.http.trigger" -}}
107-
{{- $url := (printf "%s%s" .Values.global.codefresh.url .Values.global.codefresh.apiEventsPath | quote) -}}
108-
- template:
109-
name: {{ .name }}
110-
conditions: {{ .name }}
111-
http:
112-
method: POST
113-
url: {{ $url }}
114-
{{- if or .Values.global.codefresh.tls.caCerts.secret.create .Values.global.codefresh.tls.caCerts.secretKeyRef}}
115-
tls:
116-
caCertSecret:
117-
name: {{ .Values.global.codefresh.tls.caCerts.secret.create | ternary "codefresh-tls-certs" .Values.global.codefresh.tls.caCerts.secretKeyRef.name }}
118-
key: {{ .Values.global.codefresh.tls.caCerts.secret.create | ternary (default "ca-bundle.crt" .Values.global.codefresh.tls.caCerts.secret.key) .Values.global.codefresh.tls.caCerts.secretKeyRef.key }}
119-
{{- end }}
120-
headers:
121-
Content-Type: application/json
122-
secureHeaders:
123-
- name: Authorization
124-
valueFrom:
125-
secretKeyRef:
126-
key: token
127-
name: codefresh-token
128-
payload:
129-
- dest: {{ .payloadDest }}
130-
src:
131-
dataKey: body
132-
dependencyName: {{ .name }}
133-
{{- if .retryStrategy }}
134-
retryStrategy:
135-
{{- .retryStrategy | toYaml | nindent 4 }}
136-
{{- end }}
137-
{{- end -}}
138-
139-
{{/* Logging trigger for the sensor - gets sensor.logging dict */}}
140-
{{- define "event-reporters.log.trigger" -}}
141-
{{- if .enabled }}
142-
- template:
143-
name: log-trigger
144-
{{- if gt (int .intervalSeconds) 0 }}
145-
log:
146-
intervalSeconds: {{ .intervalSeconds }}
147-
{{- else }}
148-
log: {}
149-
{{- end }}
150-
{{- end }}
151-
{{- end }}
100+
{{- end }}

charts/gitops-runtime/tests/values/subcharts-constraints-values.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,6 @@ internal-router:
2525
nodeSelector: *nodeSelector
2626
tolerations: *tolerations
2727

28-
event-reporters:
29-
rollout:
30-
eventSource:
31-
nodeSelector: *nodeSelector
32-
tolerations: *tolerations
33-
sensor:
34-
nodeSelector: *nodeSelector
35-
tolerations: *tolerations
36-
workflow:
37-
eventSource:
38-
nodeSelector: *nodeSelector
39-
tolerations: *tolerations
40-
sensor:
41-
nodeSelector: *nodeSelector
42-
tolerations: *tolerations
43-
4428
installer:
4529
nodeSelector: *nodeSelector
4630
tolerations: *tolerations

charts/gitops-runtime/values.yaml

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -330,74 +330,6 @@ argo-rollouts:
330330
controller:
331331
replicas: 1
332332
installCRDs: true
333-
334-
#-----------------------------------------------------------------------------------------------------------------------
335-
# Event reporters
336-
#-----------------------------------------------------------------------------------------------------------------------
337-
event-reporters:
338-
rollout:
339-
serviceAccount:
340-
create: true
341-
eventSource:
342-
replicas: 1
343-
resources: {}
344-
tolerations: []
345-
nodeSelector: {}
346-
affinity: {}
347-
sensor:
348-
# -- Set to true to enable logging. Set intervalSeconds to add logging interval to moderate log flow.
349-
logging:
350-
enabled: false
351-
intervalSeconds: 0
352-
# -- Retry strategy for events sent to Codefresh
353-
retryStrategy:
354-
# -- Number of retries
355-
steps: 3
356-
# -- The initial duration, use strings like "2s", "1m"
357-
duration: 0
358-
# -- Duration is multiplied by factor each retry, if factor is not zero and steps limit has not been reached. Should not be negative
359-
factor: 1.0
360-
# -- The sleep between each retry is the duration plus an additional amount chosen uniformly at random from the interval between zero and `jitter * duration`.
361-
jitter: 1
362-
replicas: 1
363-
resources: {}
364-
# -- Environment variables for sensor pods - add DEBUG_LOG: "true" to add debug level logs
365-
env: {}
366-
tolerations: []
367-
nodeSelector: {}
368-
affinity: {}
369-
workflow:
370-
serviceAccount:
371-
create: true
372-
eventSource:
373-
replicas: 1
374-
resources: {}
375-
tolerations: []
376-
nodeSelector: {}
377-
affinity: {}
378-
sensor:
379-
# -- Set to true to enable logging. Set intervalSeconds to add logging interval to moderate log flow.
380-
logging:
381-
enabled: false
382-
intervalSeconds: 0
383-
# -- Retry strategy for events sent to Codefresh
384-
retryStrategy:
385-
# -- Number of retries
386-
steps: 3
387-
# -- The initial duration, use strings like "2s", "1m"
388-
duration: 0
389-
# -- Duration is multiplied by factor each retry, if factor is not zero and steps limit has not been reached. Should not be negative
390-
factor: 1.0
391-
# -- The sleep between each retry is the duration plus an additional amount chosen uniformly at random from the interval between zero and `jitter * duration`.
392-
jitter: 1
393-
replicas: 1
394-
resources: {}
395-
# -- Environment variables for sensor pods - add DEBUG_LOG: "true" to add debug level logs
396-
env: {}
397-
tolerations: []
398-
nodeSelector: {}
399-
affinity: {}
400-
401333
#-----------------------------------------------------------------------------------------------------------------------
402334
# Internal router
403335
#-----------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)