1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 annotations:
5 controller-gen.kubebuilder.io/version: v0.16.1
6 labels:
7 app.kubernetes.io/component: notification-controller
8 app.kubernetes.io/part-of: flux
9 name: alerts.notification.toolkit.fluxcd.io
10spec:
11 group: notification.toolkit.fluxcd.io
12 names:
13 kind: Alert
14 listKind: AlertList
15 plural: alerts
16 singular: alert
17 scope: Namespaced
18 versions:
19 - additionalPrinterColumns:
20 - jsonPath: .metadata.creationTimestamp
21 name: Age
22 type: date
23 - jsonPath: .status.conditions[?(@.type=="Ready")].status
24 name: Ready
25 type: string
26 - jsonPath: .status.conditions[?(@.type=="Ready")].message
27 name: Status
28 type: string
29 deprecated: true
30 deprecationWarning: v1beta1 Alert is deprecated, upgrade to v1beta3
31 name: v1beta1
32 schema:
33 openAPIV3Schema:
34 description: Alert is the Schema for the alerts API
35 properties:
36 apiVersion:
37 description: |-
38 APIVersion defines the versioned schema of this representation of an object.
39 Servers should convert recognized schemas to the latest internal value, and
40 may reject unrecognized values.
41 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
42 type: string
43 kind:
44 description: |-
45 Kind is a string value representing the REST resource this object represents.
46 Servers may infer this from the endpoint the client submits requests to.
47 Cannot be updated.
48 In CamelCase.
49 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
50 type: string
51 metadata:
52 type: object
53 spec:
54 description: AlertSpec defines an alerting rule for events involving a
55 list of objects
56 properties:
57 eventSeverity:
58 default: info
59 description: |-
60 Filter events based on severity, defaults to ('info').
61 If set to 'info' no events will be filtered.
62 enum:
63 - info
64 - error
65 type: string
66 eventSources:
67 description: Filter events based on the involved objects.
68 items:
69 description: |-
70 CrossNamespaceObjectReference contains enough information to let you locate the
71 typed referenced object at cluster level
72 properties:
73 apiVersion:
74 description: API version of the referent
75 type: string
76 kind:
77 description: Kind of the referent
78 enum:
79 - Bucket
80 - GitRepository
81 - Kustomization
82 - HelmRelease
83 - HelmChart
84 - HelmRepository
85 - ImageRepository
86 - ImagePolicy
87 - ImageUpdateAutomation
88 - OCIRepository
89 type: string
90 matchLabels:
91 additionalProperties:
92 type: string
93 description: |-
94 MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
95 map is equivalent to an element of matchExpressions, whose key field is "key", the
96 operator is "In", and the values array contains only "value". The requirements are ANDed.
97 type: object
98 name:
99 description: Name of the referent
100 maxLength: 53
101 minLength: 1
102 type: string
103 namespace:
104 description: Namespace of the referent
105 maxLength: 53
106 minLength: 1
107 type: string
108 required:
109 - kind
110 - name
111 type: object
112 type: array
113 exclusionList:
114 description: A list of Golang regular expressions to be used for excluding
115 messages.
116 items:
117 type: string
118 type: array
119 providerRef:
120 description: Send events using this provider.
121 properties:
122 name:
123 description: Name of the referent.
124 type: string
125 required:
126 - name
127 type: object
128 summary:
129 description: Short description of the impact and affected cluster.
130 type: string
131 suspend:
132 description: |-
133 This flag tells the controller to suspend subsequent events dispatching.
134 Defaults to false.
135 type: boolean
136 required:
137 - eventSources
138 - providerRef
139 type: object
140 status:
141 default:
142 observedGeneration: -1
143 description: AlertStatus defines the observed state of Alert
144 properties:
145 conditions:
146 items:
147 description: Condition contains details for one aspect of the current
148 state of this API Resource.
149 properties:
150 lastTransitionTime:
151 description: |-
152 lastTransitionTime is the last time the condition transitioned from one status to another.
153 This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
154 format: date-time
155 type: string
156 message:
157 description: |-
158 message is a human readable message indicating details about the transition.
159 This may be an empty string.
160 maxLength: 32768
161 type: string
162 observedGeneration:
163 description: |-
164 observedGeneration represents the .metadata.generation that the condition was set based upon.
165 For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
166 with respect to the current state of the instance.
167 format: int64
168 minimum: 0
169 type: integer
170 reason:
171 description: |-
172 reason contains a programmatic identifier indicating the reason for the condition's last transition.
173 Producers of specific condition types may define expected values and meanings for this field,
174 and whether the values are considered a guaranteed API.
175 The value should be a CamelCase string.
176 This field may not be empty.
177 maxLength: 1024
178 minLength: 1
179 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
180 type: string
181 status:
182 description: status of the condition, one of True, False, Unknown.
183 enum:
184 - "True"
185 - "False"
186 - Unknown
187 type: string
188 type:
189 description: type of condition in CamelCase or in foo.example.com/CamelCase.
190 maxLength: 316
191 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
192 type: string
193 required:
194 - lastTransitionTime
195 - message
196 - reason
197 - status
198 - type
199 type: object
200 type: array
201 observedGeneration:
202 description: ObservedGeneration is the last observed generation.
203 format: int64
204 type: integer
205 type: object
206 type: object
207 served: true
208 storage: false
209 subresources:
210 status: {}
211 - additionalPrinterColumns:
212 - jsonPath: .metadata.creationTimestamp
213 name: Age
214 type: date
215 - jsonPath: .status.conditions[?(@.type=="Ready")].status
216 name: Ready
217 type: string
218 - jsonPath: .status.conditions[?(@.type=="Ready")].message
219 name: Status
220 type: string
221 deprecated: true
222 deprecationWarning: v1beta2 Alert is deprecated, upgrade to v1beta3
223 name: v1beta2
224 schema:
225 openAPIV3Schema:
226 description: Alert is the Schema for the alerts API
227 properties:
228 apiVersion:
229 description: |-
230 APIVersion defines the versioned schema of this representation of an object.
231 Servers should convert recognized schemas to the latest internal value, and
232 may reject unrecognized values.
233 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
234 type: string
235 kind:
236 description: |-
237 Kind is a string value representing the REST resource this object represents.
238 Servers may infer this from the endpoint the client submits requests to.
239 Cannot be updated.
240 In CamelCase.
241 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
242 type: string
243 metadata:
244 type: object
245 spec:
246 description: AlertSpec defines an alerting rule for events involving a
247 list of objects.
248 properties:
249 eventMetadata:
250 additionalProperties:
251 type: string
252 description: |-
253 EventMetadata is an optional field for adding metadata to events dispatched by the
254 controller. This can be used for enhancing the context of the event. If a field
255 would override one already present on the original event as generated by the emitter,
256 then the override doesn't happen, i.e. the original value is preserved, and an info
257 log is printed.
258 type: object
259 eventSeverity:
260 default: info
261 description: |-
262 EventSeverity specifies how to filter events based on severity.
263 If set to 'info' no events will be filtered.
264 enum:
265 - info
266 - error
267 type: string
268 eventSources:
269 description: |-
270 EventSources specifies how to filter events based
271 on the involved object kind, name and namespace.
272 items:
273 description: |-
274 CrossNamespaceObjectReference contains enough information to let you locate the
275 typed referenced object at cluster level
276 properties:
277 apiVersion:
278 description: API version of the referent
279 type: string
280 kind:
281 description: Kind of the referent
282 enum:
283 - Bucket
284 - GitRepository
285 - Kustomization
286 - HelmRelease
287 - HelmChart
288 - HelmRepository
289 - ImageRepository
290 - ImagePolicy
291 - ImageUpdateAutomation
292 - OCIRepository
293 type: string
294 matchLabels:
295 additionalProperties:
296 type: string
297 description: |-
298 MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
299 map is equivalent to an element of matchExpressions, whose key field is "key", the
300 operator is "In", and the values array contains only "value". The requirements are ANDed.
301 MatchLabels requires the name to be set to `*`.
302 type: object
303 name:
304 description: |-
305 Name of the referent
306 If multiple resources are targeted `*` may be set.
307 maxLength: 53
308 minLength: 1
309 type: string
310 namespace:
311 description: Namespace of the referent
312 maxLength: 53
313 minLength: 1
314 type: string
315 required:
316 - kind
317 - name
318 type: object
319 type: array
320 exclusionList:
321 description: |-
322 ExclusionList specifies a list of Golang regular expressions
323 to be used for excluding messages.
324 items:
325 type: string
326 type: array
327 inclusionList:
328 description: |-
329 InclusionList specifies a list of Golang regular expressions
330 to be used for including messages.
331 items:
332 type: string
333 type: array
334 providerRef:
335 description: ProviderRef specifies which Provider this Alert should
336 use.
337 properties:
338 name:
339 description: Name of the referent.
340 type: string
341 required:
342 - name
343 type: object
344 summary:
345 description: Summary holds a short description of the impact and affected
346 cluster.
347 maxLength: 255
348 type: string
349 suspend:
350 description: |-
351 Suspend tells the controller to suspend subsequent
352 events handling for this Alert.
353 type: boolean
354 required:
355 - eventSources
356 - providerRef
357 type: object
358 status:
359 default:
360 observedGeneration: -1
361 description: AlertStatus defines the observed state of the Alert.
362 properties:
363 conditions:
364 description: Conditions holds the conditions for the Alert.
365 items:
366 description: Condition contains details for one aspect of the current
367 state of this API Resource.
368 properties:
369 lastTransitionTime:
370 description: |-
371 lastTransitionTime is the last time the condition transitioned from one status to another.
372 This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
373 format: date-time
374 type: string
375 message:
376 description: |-
377 message is a human readable message indicating details about the transition.
378 This may be an empty string.
379 maxLength: 32768
380 type: string
381 observedGeneration:
382 description: |-
383 observedGeneration represents the .metadata.generation that the condition was set based upon.
384 For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
385 with respect to the current state of the instance.
386 format: int64
387 minimum: 0
388 type: integer
389 reason:
390 description: |-
391 reason contains a programmatic identifier indicating the reason for the condition's last transition.
392 Producers of specific condition types may define expected values and meanings for this field,
393 and whether the values are considered a guaranteed API.
394 The value should be a CamelCase string.
395 This field may not be empty.
396 maxLength: 1024
397 minLength: 1
398 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
399 type: string
400 status:
401 description: status of the condition, one of True, False, Unknown.
402 enum:
403 - "True"
404 - "False"
405 - Unknown
406 type: string
407 type:
408 description: type of condition in CamelCase or in foo.example.com/CamelCase.
409 maxLength: 316
410 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
411 type: string
412 required:
413 - lastTransitionTime
414 - message
415 - reason
416 - status
417 - type
418 type: object
419 type: array
420 lastHandledReconcileAt:
421 description: |-
422 LastHandledReconcileAt holds the value of the most recent
423 reconcile request value, so a change of the annotation value
424 can be detected.
425 type: string
426 observedGeneration:
427 description: ObservedGeneration is the last observed generation.
428 format: int64
429 type: integer
430 type: object
431 type: object
432 served: true
433 storage: false
434 subresources:
435 status: {}
436 - additionalPrinterColumns:
437 - jsonPath: .metadata.creationTimestamp
438 name: Age
439 type: date
440 name: v1beta3
441 schema:
442 openAPIV3Schema:
443 description: Alert is the Schema for the alerts API
444 properties:
445 apiVersion:
446 description: |-
447 APIVersion defines the versioned schema of this representation of an object.
448 Servers should convert recognized schemas to the latest internal value, and
449 may reject unrecognized values.
450 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
451 type: string
452 kind:
453 description: |-
454 Kind is a string value representing the REST resource this object represents.
455 Servers may infer this from the endpoint the client submits requests to.
456 Cannot be updated.
457 In CamelCase.
458 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
459 type: string
460 metadata:
461 type: object
462 spec:
463 description: AlertSpec defines an alerting rule for events involving a
464 list of objects.
465 properties:
466 eventMetadata:
467 additionalProperties:
468 type: string
469 description: |-
470 EventMetadata is an optional field for adding metadata to events dispatched by the
471 controller. This can be used for enhancing the context of the event. If a field
472 would override one already present on the original event as generated by the emitter,
473 then the override doesn't happen, i.e. the original value is preserved, and an info
474 log is printed.
475 type: object
476 eventSeverity:
477 default: info
478 description: |-
479 EventSeverity specifies how to filter events based on severity.
480 If set to 'info' no events will be filtered.
481 enum:
482 - info
483 - error
484 type: string
485 eventSources:
486 description: |-
487 EventSources specifies how to filter events based
488 on the involved object kind, name and namespace.
489 items:
490 description: |-
491 CrossNamespaceObjectReference contains enough information to let you locate the
492 typed referenced object at cluster level
493 properties:
494 apiVersion:
495 description: API version of the referent
496 type: string
497 kind:
498 description: Kind of the referent
499 enum:
500 - Bucket
501 - GitRepository
502 - Kustomization
503 - HelmRelease
504 - HelmChart
505 - HelmRepository
506 - ImageRepository
507 - ImagePolicy
508 - ImageUpdateAutomation
509 - OCIRepository
510 type: string
511 matchLabels:
512 additionalProperties:
513 type: string
514 description: |-
515 MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
516 map is equivalent to an element of matchExpressions, whose key field is "key", the
517 operator is "In", and the values array contains only "value". The requirements are ANDed.
518 MatchLabels requires the name to be set to `*`.
519 type: object
520 name:
521 description: |-
522 Name of the referent
523 If multiple resources are targeted `*` may be set.
524 maxLength: 53
525 minLength: 1
526 type: string
527 namespace:
528 description: Namespace of the referent
529 maxLength: 53
530 minLength: 1
531 type: string
532 required:
533 - kind
534 - name
535 type: object
536 type: array
537 exclusionList:
538 description: |-
539 ExclusionList specifies a list of Golang regular expressions
540 to be used for excluding messages.
541 items:
542 type: string
543 type: array
544 inclusionList:
545 description: |-
546 InclusionList specifies a list of Golang regular expressions
547 to be used for including messages.
548 items:
549 type: string
550 type: array
551 providerRef:
552 description: ProviderRef specifies which Provider this Alert should
553 use.
554 properties:
555 name:
556 description: Name of the referent.
557 type: string
558 required:
559 - name
560 type: object
561 summary:
562 description: Summary holds a short description of the impact and affected
563 cluster.
564 maxLength: 255
565 type: string
566 suspend:
567 description: |-
568 Suspend tells the controller to suspend subsequent
569 events handling for this Alert.
570 type: boolean
571 required:
572 - eventSources
573 - providerRef
574 type: object
575 type: object
576 served: true
577 storage: true
578 subresources: {}
579---
580apiVersion: apiextensions.k8s.io/v1
581kind: CustomResourceDefinition
582metadata:
583 annotations:
584 controller-gen.kubebuilder.io/version: v0.16.1
585 labels:
586 app.kubernetes.io/component: notification-controller
587 app.kubernetes.io/part-of: flux
588 name: providers.notification.toolkit.fluxcd.io
589spec:
590 group: notification.toolkit.fluxcd.io
591 names:
592 kind: Provider
593 listKind: ProviderList
594 plural: providers
595 singular: provider
596 scope: Namespaced
597 versions:
598 - additionalPrinterColumns:
599 - jsonPath: .metadata.creationTimestamp
600 name: Age
601 type: date
602 - jsonPath: .status.conditions[?(@.type=="Ready")].status
603 name: Ready
604 type: string
605 - jsonPath: .status.conditions[?(@.type=="Ready")].message
606 name: Status
607 type: string
608 deprecated: true
609 deprecationWarning: v1beta1 Provider is deprecated, upgrade to v1beta3
610 name: v1beta1
611 schema:
612 openAPIV3Schema:
613 description: Provider is the Schema for the providers API
614 properties:
615 apiVersion:
616 description: |-
617 APIVersion defines the versioned schema of this representation of an object.
618 Servers should convert recognized schemas to the latest internal value, and
619 may reject unrecognized values.
620 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
621 type: string
622 kind:
623 description: |-
624 Kind is a string value representing the REST resource this object represents.
625 Servers may infer this from the endpoint the client submits requests to.
626 Cannot be updated.
627 In CamelCase.
628 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
629 type: string
630 metadata:
631 type: object
632 spec:
633 description: ProviderSpec defines the desired state of Provider
634 properties:
635 address:
636 description: HTTP/S webhook address of this provider
637 pattern: ^(http|https)://
638 type: string
639 certSecretRef:
640 description: |-
641 CertSecretRef can be given the name of a secret containing
642 a PEM-encoded CA certificate (`caFile`)
643 properties:
644 name:
645 description: Name of the referent.
646 type: string
647 required:
648 - name
649 type: object
650 channel:
651 description: Alert channel for this provider
652 type: string
653 proxy:
654 description: HTTP/S address of the proxy
655 pattern: ^(http|https)://
656 type: string
657 secretRef:
658 description: |-
659 Secret reference containing the provider webhook URL
660 using "address" as data key
661 properties:
662 name:
663 description: Name of the referent.
664 type: string
665 required:
666 - name
667 type: object
668 suspend:
669 description: |-
670 This flag tells the controller to suspend subsequent events handling.
671 Defaults to false.
672 type: boolean
673 timeout:
674 description: Timeout for sending alerts to the provider.
675 pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$
676 type: string
677 type:
678 description: Type of provider
679 enum:
680 - slack
681 - discord
682 - msteams
683 - rocket
684 - generic
685 - generic-hmac
686 - github
687 - gitlab
688 - bitbucket
689 - azuredevops
690 - googlechat
691 - webex
692 - sentry
693 - azureeventhub
694 - telegram
695 - lark
696 - matrix
697 - opsgenie
698 - alertmanager
699 - grafana
700 - githubdispatch
701 type: string
702 username:
703 description: Bot username for this provider
704 type: string
705 required:
706 - type
707 type: object
708 status:
709 default:
710 observedGeneration: -1
711 description: ProviderStatus defines the observed state of Provider
712 properties:
713 conditions:
714 items:
715 description: Condition contains details for one aspect of the current
716 state of this API Resource.
717 properties:
718 lastTransitionTime:
719 description: |-
720 lastTransitionTime is the last time the condition transitioned from one status to another.
721 This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
722 format: date-time
723 type: string
724 message:
725 description: |-
726 message is a human readable message indicating details about the transition.
727 This may be an empty string.
728 maxLength: 32768
729 type: string
730 observedGeneration:
731 description: |-
732 observedGeneration represents the .metadata.generation that the condition was set based upon.
733 For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
734 with respect to the current state of the instance.
735 format: int64
736 minimum: 0
737 type: integer
738 reason:
739 description: |-
740 reason contains a programmatic identifier indicating the reason for the condition's last transition.
741 Producers of specific condition types may define expected values and meanings for this field,
742 and whether the values are considered a guaranteed API.
743 The value should be a CamelCase string.
744 This field may not be empty.
745 maxLength: 1024
746 minLength: 1
747 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
748 type: string
749 status:
750 description: status of the condition, one of True, False, Unknown.
751 enum:
752 - "True"
753 - "False"
754 - Unknown
755 type: string
756 type:
757 description: type of condition in CamelCase or in foo.example.com/CamelCase.
758 maxLength: 316
759 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
760 type: string
761 required:
762 - lastTransitionTime
763 - message
764 - reason
765 - status
766 - type
767 type: object
768 type: array
769 observedGeneration:
770 description: ObservedGeneration is the last reconciled generation.
771 format: int64
772 type: integer
773 type: object
774 type: object
775 served: true
776 storage: false
777 subresources:
778 status: {}
779 - additionalPrinterColumns:
780 - jsonPath: .metadata.creationTimestamp
781 name: Age
782 type: date
783 - jsonPath: .status.conditions[?(@.type=="Ready")].status
784 name: Ready
785 type: string
786 - jsonPath: .status.conditions[?(@.type=="Ready")].message
787 name: Status
788 type: string
789 deprecated: true
790 deprecationWarning: v1beta2 Provider is deprecated, upgrade to v1beta3
791 name: v1beta2
792 schema:
793 openAPIV3Schema:
794 description: Provider is the Schema for the providers API.
795 properties:
796 apiVersion:
797 description: |-
798 APIVersion defines the versioned schema of this representation of an object.
799 Servers should convert recognized schemas to the latest internal value, and
800 may reject unrecognized values.
801 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
802 type: string
803 kind:
804 description: |-
805 Kind is a string value representing the REST resource this object represents.
806 Servers may infer this from the endpoint the client submits requests to.
807 Cannot be updated.
808 In CamelCase.
809 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
810 type: string
811 metadata:
812 type: object
813 spec:
814 description: ProviderSpec defines the desired state of the Provider.
815 properties:
816 address:
817 description: |-
818 Address specifies the endpoint, in a generic sense, to where alerts are sent.
819 What kind of endpoint depends on the specific Provider type being used.
820 For the generic Provider, for example, this is an HTTP/S address.
821 For other Provider types this could be a project ID or a namespace.
822 maxLength: 2048
823 type: string
824 certSecretRef:
825 description: |-
826 CertSecretRef specifies the Secret containing
827 a PEM-encoded CA certificate (in the `ca.crt` key).
828
829 Note: Support for the `caFile` key has
830 been deprecated.
831 properties:
832 name:
833 description: Name of the referent.
834 type: string
835 required:
836 - name
837 type: object
838 channel:
839 description: Channel specifies the destination channel where events
840 should be posted.
841 maxLength: 2048
842 type: string
843 interval:
844 description: Interval at which to reconcile the Provider with its
845 Secret references.
846 pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
847 type: string
848 proxy:
849 description: Proxy the HTTP/S address of the proxy server.
850 maxLength: 2048
851 pattern: ^(http|https)://.*$
852 type: string
853 secretRef:
854 description: |-
855 SecretRef specifies the Secret containing the authentication
856 credentials for this Provider.
857 properties:
858 name:
859 description: Name of the referent.
860 type: string
861 required:
862 - name
863 type: object
864 suspend:
865 description: |-
866 Suspend tells the controller to suspend subsequent
867 events handling for this Provider.
868 type: boolean
869 timeout:
870 description: Timeout for sending alerts to the Provider.
871 pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$
872 type: string
873 type:
874 description: Type specifies which Provider implementation to use.
875 enum:
876 - slack
877 - discord
878 - msteams
879 - rocket
880 - generic
881 - generic-hmac
882 - github
883 - gitlab
884 - gitea
885 - bitbucketserver
886 - bitbucket
887 - azuredevops
888 - googlechat
889 - googlepubsub
890 - webex
891 - sentry
892 - azureeventhub
893 - telegram
894 - lark
895 - matrix
896 - opsgenie
897 - alertmanager
898 - grafana
899 - githubdispatch
900 - pagerduty
901 - datadog
902 type: string
903 username:
904 description: Username specifies the name under which events are posted.
905 maxLength: 2048
906 type: string
907 required:
908 - type
909 type: object
910 status:
911 default:
912 observedGeneration: -1
913 description: ProviderStatus defines the observed state of the Provider.
914 properties:
915 conditions:
916 description: Conditions holds the conditions for the Provider.
917 items:
918 description: Condition contains details for one aspect of the current
919 state of this API Resource.
920 properties:
921 lastTransitionTime:
922 description: |-
923 lastTransitionTime is the last time the condition transitioned from one status to another.
924 This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
925 format: date-time
926 type: string
927 message:
928 description: |-
929 message is a human readable message indicating details about the transition.
930 This may be an empty string.
931 maxLength: 32768
932 type: string
933 observedGeneration:
934 description: |-
935 observedGeneration represents the .metadata.generation that the condition was set based upon.
936 For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
937 with respect to the current state of the instance.
938 format: int64
939 minimum: 0
940 type: integer
941 reason:
942 description: |-
943 reason contains a programmatic identifier indicating the reason for the condition's last transition.
944 Producers of specific condition types may define expected values and meanings for this field,
945 and whether the values are considered a guaranteed API.
946 The value should be a CamelCase string.
947 This field may not be empty.
948 maxLength: 1024
949 minLength: 1
950 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
951 type: string
952 status:
953 description: status of the condition, one of True, False, Unknown.
954 enum:
955 - "True"
956 - "False"
957 - Unknown
958 type: string
959 type:
960 description: type of condition in CamelCase or in foo.example.com/CamelCase.
961 maxLength: 316
962 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
963 type: string
964 required:
965 - lastTransitionTime
966 - message
967 - reason
968 - status
969 - type
970 type: object
971 type: array
972 lastHandledReconcileAt:
973 description: |-
974 LastHandledReconcileAt holds the value of the most recent
975 reconcile request value, so a change of the annotation value
976 can be detected.
977 type: string
978 observedGeneration:
979 description: ObservedGeneration is the last reconciled generation.
980 format: int64
981 type: integer
982 type: object
983 type: object
984 served: true
985 storage: false
986 subresources:
987 status: {}
988 - additionalPrinterColumns:
989 - jsonPath: .metadata.creationTimestamp
990 name: Age
991 type: date
992 name: v1beta3
993 schema:
994 openAPIV3Schema:
995 description: Provider is the Schema for the providers API
996 properties:
997 apiVersion:
998 description: |-
999 APIVersion defines the versioned schema of this representation of an object.
1000 Servers should convert recognized schemas to the latest internal value, and
1001 may reject unrecognized values.
1002 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1003 type: string
1004 kind:
1005 description: |-
1006 Kind is a string value representing the REST resource this object represents.
1007 Servers may infer this from the endpoint the client submits requests to.
1008 Cannot be updated.
1009 In CamelCase.
1010 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1011 type: string
1012 metadata:
1013 type: object
1014 spec:
1015 description: ProviderSpec defines the desired state of the Provider.
1016 properties:
1017 address:
1018 description: |-
1019 Address specifies the endpoint, in a generic sense, to where alerts are sent.
1020 What kind of endpoint depends on the specific Provider type being used.
1021 For the generic Provider, for example, this is an HTTP/S address.
1022 For other Provider types this could be a project ID or a namespace.
1023 maxLength: 2048
1024 type: string
1025 certSecretRef:
1026 description: |-
1027 CertSecretRef specifies the Secret containing
1028 a PEM-encoded CA certificate (in the `ca.crt` key).
1029
1030 Note: Support for the `caFile` key has
1031 been deprecated.
1032 properties:
1033 name:
1034 description: Name of the referent.
1035 type: string
1036 required:
1037 - name
1038 type: object
1039 channel:
1040 description: Channel specifies the destination channel where events
1041 should be posted.
1042 maxLength: 2048
1043 type: string
1044 interval:
1045 description: |-
1046 Interval at which to reconcile the Provider with its Secret references.
1047 Deprecated and not used in v1beta3.
1048 pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
1049 type: string
1050 proxy:
1051 description: Proxy the HTTP/S address of the proxy server.
1052 maxLength: 2048
1053 pattern: ^(http|https)://.*$
1054 type: string
1055 secretRef:
1056 description: |-
1057 SecretRef specifies the Secret containing the authentication
1058 credentials for this Provider.
1059 properties:
1060 name:
1061 description: Name of the referent.
1062 type: string
1063 required:
1064 - name
1065 type: object
1066 suspend:
1067 description: |-
1068 Suspend tells the controller to suspend subsequent
1069 events handling for this Provider.
1070 type: boolean
1071 timeout:
1072 description: Timeout for sending alerts to the Provider.
1073 pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m))+$
1074 type: string
1075 type:
1076 description: Type specifies which Provider implementation to use.
1077 enum:
1078 - slack
1079 - discord
1080 - msteams
1081 - rocket
1082 - generic
1083 - generic-hmac
1084 - github
1085 - gitlab
1086 - gitea
1087 - bitbucketserver
1088 - bitbucket
1089 - azuredevops
1090 - googlechat
1091 - googlepubsub
1092 - webex
1093 - sentry
1094 - azureeventhub
1095 - telegram
1096 - lark
1097 - matrix
1098 - opsgenie
1099 - alertmanager
1100 - grafana
1101 - githubdispatch
1102 - pagerduty
1103 - datadog
1104 - nats
1105 type: string
1106 username:
1107 description: Username specifies the name under which events are posted.
1108 maxLength: 2048
1109 type: string
1110 required:
1111 - type
1112 type: object
1113 type: object
1114 served: true
1115 storage: true
1116 subresources: {}
1117---
1118apiVersion: apiextensions.k8s.io/v1
1119kind: CustomResourceDefinition
1120metadata:
1121 annotations:
1122 controller-gen.kubebuilder.io/version: v0.16.1
1123 labels:
1124 app.kubernetes.io/component: notification-controller
1125 app.kubernetes.io/part-of: flux
1126 name: receivers.notification.toolkit.fluxcd.io
1127spec:
1128 group: notification.toolkit.fluxcd.io
1129 names:
1130 kind: Receiver
1131 listKind: ReceiverList
1132 plural: receivers
1133 singular: receiver
1134 scope: Namespaced
1135 versions:
1136 - additionalPrinterColumns:
1137 - jsonPath: .metadata.creationTimestamp
1138 name: Age
1139 type: date
1140 - jsonPath: .status.conditions[?(@.type=="Ready")].status
1141 name: Ready
1142 type: string
1143 - jsonPath: .status.conditions[?(@.type=="Ready")].message
1144 name: Status
1145 type: string
1146 name: v1
1147 schema:
1148 openAPIV3Schema:
1149 description: Receiver is the Schema for the receivers API.
1150 properties:
1151 apiVersion:
1152 description: |-
1153 APIVersion defines the versioned schema of this representation of an object.
1154 Servers should convert recognized schemas to the latest internal value, and
1155 may reject unrecognized values.
1156 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1157 type: string
1158 kind:
1159 description: |-
1160 Kind is a string value representing the REST resource this object represents.
1161 Servers may infer this from the endpoint the client submits requests to.
1162 Cannot be updated.
1163 In CamelCase.
1164 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1165 type: string
1166 metadata:
1167 type: object
1168 spec:
1169 description: ReceiverSpec defines the desired state of the Receiver.
1170 properties:
1171 events:
1172 description: |-
1173 Events specifies the list of event types to handle,
1174 e.g. 'push' for GitHub or 'Push Hook' for GitLab.
1175 items:
1176 type: string
1177 type: array
1178 interval:
1179 default: 10m
1180 description: Interval at which to reconcile the Receiver with its
1181 Secret references.
1182 pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
1183 type: string
1184 resources:
1185 description: A list of resources to be notified about changes.
1186 items:
1187 description: |-
1188 CrossNamespaceObjectReference contains enough information to let you locate the
1189 typed referenced object at cluster level
1190 properties:
1191 apiVersion:
1192 description: API version of the referent
1193 type: string
1194 kind:
1195 description: Kind of the referent
1196 enum:
1197 - Bucket
1198 - GitRepository
1199 - Kustomization
1200 - HelmRelease
1201 - HelmChart
1202 - HelmRepository
1203 - ImageRepository
1204 - ImagePolicy
1205 - ImageUpdateAutomation
1206 - OCIRepository
1207 type: string
1208 matchLabels:
1209 additionalProperties:
1210 type: string
1211 description: |-
1212 MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1213 map is equivalent to an element of matchExpressions, whose key field is "key", the
1214 operator is "In", and the values array contains only "value". The requirements are ANDed.
1215 MatchLabels requires the name to be set to `*`.
1216 type: object
1217 name:
1218 description: |-
1219 Name of the referent
1220 If multiple resources are targeted `*` may be set.
1221 maxLength: 53
1222 minLength: 1
1223 type: string
1224 namespace:
1225 description: Namespace of the referent
1226 maxLength: 53
1227 minLength: 1
1228 type: string
1229 required:
1230 - kind
1231 - name
1232 type: object
1233 type: array
1234 secretRef:
1235 description: |-
1236 SecretRef specifies the Secret containing the token used
1237 to validate the payload authenticity.
1238 properties:
1239 name:
1240 description: Name of the referent.
1241 type: string
1242 required:
1243 - name
1244 type: object
1245 suspend:
1246 description: |-
1247 Suspend tells the controller to suspend subsequent
1248 events handling for this receiver.
1249 type: boolean
1250 type:
1251 description: |-
1252 Type of webhook sender, used to determine
1253 the validation procedure and payload deserialization.
1254 enum:
1255 - generic
1256 - generic-hmac
1257 - github
1258 - gitlab
1259 - bitbucket
1260 - harbor
1261 - dockerhub
1262 - quay
1263 - gcr
1264 - nexus
1265 - acr
1266 - cdevents
1267 type: string
1268 required:
1269 - resources
1270 - secretRef
1271 - type
1272 type: object
1273 status:
1274 default:
1275 observedGeneration: -1
1276 description: ReceiverStatus defines the observed state of the Receiver.
1277 properties:
1278 conditions:
1279 description: Conditions holds the conditions for the Receiver.
1280 items:
1281 description: Condition contains details for one aspect of the current
1282 state of this API Resource.
1283 properties:
1284 lastTransitionTime:
1285 description: |-
1286 lastTransitionTime is the last time the condition transitioned from one status to another.
1287 This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
1288 format: date-time
1289 type: string
1290 message:
1291 description: |-
1292 message is a human readable message indicating details about the transition.
1293 This may be an empty string.
1294 maxLength: 32768
1295 type: string
1296 observedGeneration:
1297 description: |-
1298 observedGeneration represents the .metadata.generation that the condition was set based upon.
1299 For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
1300 with respect to the current state of the instance.
1301 format: int64
1302 minimum: 0
1303 type: integer
1304 reason:
1305 description: |-
1306 reason contains a programmatic identifier indicating the reason for the condition's last transition.
1307 Producers of specific condition types may define expected values and meanings for this field,
1308 and whether the values are considered a guaranteed API.
1309 The value should be a CamelCase string.
1310 This field may not be empty.
1311 maxLength: 1024
1312 minLength: 1
1313 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
1314 type: string
1315 status:
1316 description: status of the condition, one of True, False, Unknown.
1317 enum:
1318 - "True"
1319 - "False"
1320 - Unknown
1321 type: string
1322 type:
1323 description: type of condition in CamelCase or in foo.example.com/CamelCase.
1324 maxLength: 316
1325 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
1326 type: string
1327 required:
1328 - lastTransitionTime
1329 - message
1330 - reason
1331 - status
1332 - type
1333 type: object
1334 type: array
1335 lastHandledReconcileAt:
1336 description: |-
1337 LastHandledReconcileAt holds the value of the most recent
1338 reconcile request value, so a change of the annotation value
1339 can be detected.
1340 type: string
1341 observedGeneration:
1342 description: ObservedGeneration is the last observed generation of
1343 the Receiver object.
1344 format: int64
1345 type: integer
1346 webhookPath:
1347 description: |-
1348 WebhookPath is the generated incoming webhook address in the format
1349 of '/hook/sha256sum(token+name+namespace)'.
1350 type: string
1351 type: object
1352 type: object
1353 served: true
1354 storage: true
1355 subresources:
1356 status: {}
1357 - additionalPrinterColumns:
1358 - jsonPath: .metadata.creationTimestamp
1359 name: Age
1360 type: date
1361 - jsonPath: .status.conditions[?(@.type=="Ready")].status
1362 name: Ready
1363 type: string
1364 - jsonPath: .status.conditions[?(@.type=="Ready")].message
1365 name: Status
1366 type: string
1367 deprecated: true
1368 deprecationWarning: v1beta1 Receiver is deprecated, upgrade to v1
1369 name: v1beta1
1370 schema:
1371 openAPIV3Schema:
1372 description: Receiver is the Schema for the receivers API
1373 properties:
1374 apiVersion:
1375 description: |-
1376 APIVersion defines the versioned schema of this representation of an object.
1377 Servers should convert recognized schemas to the latest internal value, and
1378 may reject unrecognized values.
1379 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1380 type: string
1381 kind:
1382 description: |-
1383 Kind is a string value representing the REST resource this object represents.
1384 Servers may infer this from the endpoint the client submits requests to.
1385 Cannot be updated.
1386 In CamelCase.
1387 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1388 type: string
1389 metadata:
1390 type: object
1391 spec:
1392 description: ReceiverSpec defines the desired state of Receiver
1393 properties:
1394 events:
1395 description: |-
1396 A list of events to handle,
1397 e.g. 'push' for GitHub or 'Push Hook' for GitLab.
1398 items:
1399 type: string
1400 type: array
1401 resources:
1402 description: A list of resources to be notified about changes.
1403 items:
1404 description: |-
1405 CrossNamespaceObjectReference contains enough information to let you locate the
1406 typed referenced object at cluster level
1407 properties:
1408 apiVersion:
1409 description: API version of the referent
1410 type: string
1411 kind:
1412 description: Kind of the referent
1413 enum:
1414 - Bucket
1415 - GitRepository
1416 - Kustomization
1417 - HelmRelease
1418 - HelmChart
1419 - HelmRepository
1420 - ImageRepository
1421 - ImagePolicy
1422 - ImageUpdateAutomation
1423 - OCIRepository
1424 type: string
1425 matchLabels:
1426 additionalProperties:
1427 type: string
1428 description: |-
1429 MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1430 map is equivalent to an element of matchExpressions, whose key field is "key", the
1431 operator is "In", and the values array contains only "value". The requirements are ANDed.
1432 type: object
1433 name:
1434 description: Name of the referent
1435 maxLength: 53
1436 minLength: 1
1437 type: string
1438 namespace:
1439 description: Namespace of the referent
1440 maxLength: 53
1441 minLength: 1
1442 type: string
1443 required:
1444 - kind
1445 - name
1446 type: object
1447 type: array
1448 secretRef:
1449 description: |-
1450 Secret reference containing the token used
1451 to validate the payload authenticity
1452 properties:
1453 name:
1454 description: Name of the referent.
1455 type: string
1456 required:
1457 - name
1458 type: object
1459 suspend:
1460 description: |-
1461 This flag tells the controller to suspend subsequent events handling.
1462 Defaults to false.
1463 type: boolean
1464 type:
1465 description: |-
1466 Type of webhook sender, used to determine
1467 the validation procedure and payload deserialization.
1468 enum:
1469 - generic
1470 - generic-hmac
1471 - github
1472 - gitlab
1473 - bitbucket
1474 - harbor
1475 - dockerhub
1476 - quay
1477 - gcr
1478 - nexus
1479 - acr
1480 type: string
1481 required:
1482 - resources
1483 - secretRef
1484 - type
1485 type: object
1486 status:
1487 default:
1488 observedGeneration: -1
1489 description: ReceiverStatus defines the observed state of Receiver
1490 properties:
1491 conditions:
1492 items:
1493 description: Condition contains details for one aspect of the current
1494 state of this API Resource.
1495 properties:
1496 lastTransitionTime:
1497 description: |-
1498 lastTransitionTime is the last time the condition transitioned from one status to another.
1499 This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
1500 format: date-time
1501 type: string
1502 message:
1503 description: |-
1504 message is a human readable message indicating details about the transition.
1505 This may be an empty string.
1506 maxLength: 32768
1507 type: string
1508 observedGeneration:
1509 description: |-
1510 observedGeneration represents the .metadata.generation that the condition was set based upon.
1511 For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
1512 with respect to the current state of the instance.
1513 format: int64
1514 minimum: 0
1515 type: integer
1516 reason:
1517 description: |-
1518 reason contains a programmatic identifier indicating the reason for the condition's last transition.
1519 Producers of specific condition types may define expected values and meanings for this field,
1520 and whether the values are considered a guaranteed API.
1521 The value should be a CamelCase string.
1522 This field may not be empty.
1523 maxLength: 1024
1524 minLength: 1
1525 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
1526 type: string
1527 status:
1528 description: status of the condition, one of True, False, Unknown.
1529 enum:
1530 - "True"
1531 - "False"
1532 - Unknown
1533 type: string
1534 type:
1535 description: type of condition in CamelCase or in foo.example.com/CamelCase.
1536 maxLength: 316
1537 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
1538 type: string
1539 required:
1540 - lastTransitionTime
1541 - message
1542 - reason
1543 - status
1544 - type
1545 type: object
1546 type: array
1547 observedGeneration:
1548 description: ObservedGeneration is the last observed generation.
1549 format: int64
1550 type: integer
1551 url:
1552 description: |-
1553 Generated webhook URL in the format
1554 of '/hook/sha256sum(token+name+namespace)'.
1555 type: string
1556 type: object
1557 type: object
1558 served: true
1559 storage: false
1560 subresources:
1561 status: {}
1562 - additionalPrinterColumns:
1563 - jsonPath: .metadata.creationTimestamp
1564 name: Age
1565 type: date
1566 - jsonPath: .status.conditions[?(@.type=="Ready")].status
1567 name: Ready
1568 type: string
1569 - jsonPath: .status.conditions[?(@.type=="Ready")].message
1570 name: Status
1571 type: string
1572 deprecated: true
1573 deprecationWarning: v1beta2 Receiver is deprecated, upgrade to v1
1574 name: v1beta2
1575 schema:
1576 openAPIV3Schema:
1577 description: Receiver is the Schema for the receivers API.
1578 properties:
1579 apiVersion:
1580 description: |-
1581 APIVersion defines the versioned schema of this representation of an object.
1582 Servers should convert recognized schemas to the latest internal value, and
1583 may reject unrecognized values.
1584 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1585 type: string
1586 kind:
1587 description: |-
1588 Kind is a string value representing the REST resource this object represents.
1589 Servers may infer this from the endpoint the client submits requests to.
1590 Cannot be updated.
1591 In CamelCase.
1592 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1593 type: string
1594 metadata:
1595 type: object
1596 spec:
1597 description: ReceiverSpec defines the desired state of the Receiver.
1598 properties:
1599 events:
1600 description: |-
1601 Events specifies the list of event types to handle,
1602 e.g. 'push' for GitHub or 'Push Hook' for GitLab.
1603 items:
1604 type: string
1605 type: array
1606 interval:
1607 description: Interval at which to reconcile the Receiver with its
1608 Secret references.
1609 pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
1610 type: string
1611 resources:
1612 description: A list of resources to be notified about changes.
1613 items:
1614 description: |-
1615 CrossNamespaceObjectReference contains enough information to let you locate the
1616 typed referenced object at cluster level
1617 properties:
1618 apiVersion:
1619 description: API version of the referent
1620 type: string
1621 kind:
1622 description: Kind of the referent
1623 enum:
1624 - Bucket
1625 - GitRepository
1626 - Kustomization
1627 - HelmRelease
1628 - HelmChart
1629 - HelmRepository
1630 - ImageRepository
1631 - ImagePolicy
1632 - ImageUpdateAutomation
1633 - OCIRepository
1634 type: string
1635 matchLabels:
1636 additionalProperties:
1637 type: string
1638 description: |-
1639 MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
1640 map is equivalent to an element of matchExpressions, whose key field is "key", the
1641 operator is "In", and the values array contains only "value". The requirements are ANDed.
1642 MatchLabels requires the name to be set to `*`.
1643 type: object
1644 name:
1645 description: |-
1646 Name of the referent
1647 If multiple resources are targeted `*` may be set.
1648 maxLength: 53
1649 minLength: 1
1650 type: string
1651 namespace:
1652 description: Namespace of the referent
1653 maxLength: 53
1654 minLength: 1
1655 type: string
1656 required:
1657 - kind
1658 - name
1659 type: object
1660 type: array
1661 secretRef:
1662 description: |-
1663 SecretRef specifies the Secret containing the token used
1664 to validate the payload authenticity.
1665 properties:
1666 name:
1667 description: Name of the referent.
1668 type: string
1669 required:
1670 - name
1671 type: object
1672 suspend:
1673 description: |-
1674 Suspend tells the controller to suspend subsequent
1675 events handling for this receiver.
1676 type: boolean
1677 type:
1678 description: |-
1679 Type of webhook sender, used to determine
1680 the validation procedure and payload deserialization.
1681 enum:
1682 - generic
1683 - generic-hmac
1684 - github
1685 - gitlab
1686 - bitbucket
1687 - harbor
1688 - dockerhub
1689 - quay
1690 - gcr
1691 - nexus
1692 - acr
1693 type: string
1694 required:
1695 - resources
1696 - secretRef
1697 - type
1698 type: object
1699 status:
1700 default:
1701 observedGeneration: -1
1702 description: ReceiverStatus defines the observed state of the Receiver.
1703 properties:
1704 conditions:
1705 description: Conditions holds the conditions for the Receiver.
1706 items:
1707 description: Condition contains details for one aspect of the current
1708 state of this API Resource.
1709 properties:
1710 lastTransitionTime:
1711 description: |-
1712 lastTransitionTime is the last time the condition transitioned from one status to another.
1713 This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
1714 format: date-time
1715 type: string
1716 message:
1717 description: |-
1718 message is a human readable message indicating details about the transition.
1719 This may be an empty string.
1720 maxLength: 32768
1721 type: string
1722 observedGeneration:
1723 description: |-
1724 observedGeneration represents the .metadata.generation that the condition was set based upon.
1725 For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
1726 with respect to the current state of the instance.
1727 format: int64
1728 minimum: 0
1729 type: integer
1730 reason:
1731 description: |-
1732 reason contains a programmatic identifier indicating the reason for the condition's last transition.
1733 Producers of specific condition types may define expected values and meanings for this field,
1734 and whether the values are considered a guaranteed API.
1735 The value should be a CamelCase string.
1736 This field may not be empty.
1737 maxLength: 1024
1738 minLength: 1
1739 pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
1740 type: string
1741 status:
1742 description: status of the condition, one of True, False, Unknown.
1743 enum:
1744 - "True"
1745 - "False"
1746 - Unknown
1747 type: string
1748 type:
1749 description: type of condition in CamelCase or in foo.example.com/CamelCase.
1750 maxLength: 316
1751 pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
1752 type: string
1753 required:
1754 - lastTransitionTime
1755 - message
1756 - reason
1757 - status
1758 - type
1759 type: object
1760 type: array
1761 lastHandledReconcileAt:
1762 description: |-
1763 LastHandledReconcileAt holds the value of the most recent
1764 reconcile request value, so a change of the annotation value
1765 can be detected.
1766 type: string
1767 observedGeneration:
1768 description: ObservedGeneration is the last observed generation of
1769 the Receiver object.
1770 format: int64
1771 type: integer
1772 url:
1773 description: |-
1774 URL is the generated incoming webhook address in the format
1775 of '/hook/sha256sum(token+name+namespace)'.
1776 Deprecated: Replaced by WebhookPath.
1777 type: string
1778 webhookPath:
1779 description: |-
1780 WebhookPath is the generated incoming webhook address in the format
1781 of '/hook/sha256sum(token+name+namespace)'.
1782 type: string
1783 type: object
1784 type: object
1785 served: true
1786 storage: false
1787 subresources:
1788 status: {}
1789---
1790apiVersion: v1
1791kind: ServiceAccount
1792metadata:
1793 labels:
1794 app.kubernetes.io/component: notification-controller
1795 app.kubernetes.io/part-of: flux
1796 name: notification-controller
1797---
1798apiVersion: v1
1799kind: Service
1800metadata:
1801 labels:
1802 app.kubernetes.io/component: notification-controller
1803 app.kubernetes.io/part-of: flux
1804 control-plane: controller
1805 name: notification-controller
1806spec:
1807 ports:
1808 - name: http
1809 port: 80
1810 protocol: TCP
1811 targetPort: http
1812 selector:
1813 app: notification-controller
1814 type: ClusterIP
1815---
1816apiVersion: v1
1817kind: Service
1818metadata:
1819 labels:
1820 app.kubernetes.io/component: notification-controller
1821 app.kubernetes.io/part-of: flux
1822 control-plane: controller
1823 name: webhook-receiver
1824spec:
1825 ports:
1826 - name: http
1827 port: 80
1828 protocol: TCP
1829 targetPort: http-webhook
1830 selector:
1831 app: notification-controller
1832 type: ClusterIP
1833---
1834apiVersion: apps/v1
1835kind: Deployment
1836metadata:
1837 labels:
1838 app.kubernetes.io/component: notification-controller
1839 app.kubernetes.io/part-of: flux
1840 control-plane: controller
1841 name: notification-controller
1842spec:
1843 replicas: 1
1844 selector:
1845 matchLabels:
1846 app: notification-controller
1847 template:
1848 metadata:
1849 annotations:
1850 prometheus.io/port: "8080"
1851 prometheus.io/scrape: "true"
1852 labels:
1853 app: notification-controller
1854 spec:
1855 containers:
1856 - args:
1857 - --watch-all-namespaces
1858 - --log-level=info
1859 - --log-encoding=json
1860 - --enable-leader-election
1861 env:
1862 - name: RUNTIME_NAMESPACE
1863 valueFrom:
1864 fieldRef:
1865 fieldPath: metadata.namespace
1866 - name: GOMAXPROCS
1867 valueFrom:
1868 resourceFieldRef:
1869 containerName: manager
1870 resource: limits.cpu
1871 - name: GOMEMLIMIT
1872 valueFrom:
1873 resourceFieldRef:
1874 containerName: manager
1875 resource: limits.memory
1876 image: fluxcd/notification-controller:v1.4.0
1877 imagePullPolicy: IfNotPresent
1878 livenessProbe:
1879 httpGet:
1880 path: /healthz
1881 port: healthz
1882 name: manager
1883 ports:
1884 - containerPort: 9090
1885 name: http
1886 protocol: TCP
1887 - containerPort: 9292
1888 name: http-webhook
1889 protocol: TCP
1890 - containerPort: 8080
1891 name: http-prom
1892 protocol: TCP
1893 - containerPort: 9440
1894 name: healthz
1895 protocol: TCP
1896 readinessProbe:
1897 httpGet:
1898 path: /readyz
1899 port: healthz
1900 resources:
1901 limits:
1902 cpu: 1000m
1903 memory: 1Gi
1904 requests:
1905 cpu: 100m
1906 memory: 64Mi
1907 securityContext:
1908 allowPrivilegeEscalation: false
1909 capabilities:
1910 drop:
1911 - ALL
1912 readOnlyRootFilesystem: true
1913 runAsNonRoot: true
1914 seccompProfile:
1915 type: RuntimeDefault
1916 volumeMounts:
1917 - mountPath: /tmp
1918 name: temp
1919 securityContext:
1920 fsGroup: 1337
1921 serviceAccountName: notification-controller
1922 terminationGracePeriodSeconds: 10
1923 volumes:
1924 - emptyDir: {}
1925 name: temp
View as plain text