Skip to content

Commit

Permalink
operator/ingress: Add logging API
Browse files Browse the repository at this point in the history
This commit implements NE-284.

https://issues.redhat.com/browse/NE-284

* operator/v1/types_ingress.go (IngressControllerSpec): Add Logging field
with the new IngressControllerLogging type.
(LoggingDestinationType): New type.
(ContainerLoggingDestinationType, SyslogLoggingDestinationType): New
constants to identify types of destinations for log messages.
(ContainerLoggingSidecarContainerName): New constant.
(SyslogLoggingDestinationParameters): New type.  Describe a syslog endpoint
and facility.
(ContainerLoggingDestinationParameters): New type.  Empty for now.
(LoggingDestination): New type.  Describe a destination for log messages
using LoggingDestinationType, SyslogLoggingDestinationParameters, and
ContainerLoggingDestinationParameters.
(AccessLogging): New type.  Describe how client requests are logged, using
LoggingDestination.
(IngressControllerLogging): New type.  Describe what should be logged
where, using AccessLogging.  For now, other types of logging cannot be
specified.
* operator/v1/0000_50_ingress-operator_00-custom-resource-definition.yaml:
Rename...
* operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml:
...to this.  The file name must end in .crd.yaml so it can be patched.
* operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml-merge-patch:
New file.  Patch the validation of the
spec.logging.access.destination.syslog.address field to require its value
to be either ipv4 or ipv6
* operator/v1/zz_generated.deepcopy.go:
* operator/v1/zz_generated.swagger_doc_generated.go: Regenerate.
  • Loading branch information
Miciah committed Apr 14, 2020
1 parent 2cf49d0 commit 1fc310b
Show file tree
Hide file tree
Showing 5 changed files with 481 additions and 73 deletions.

0 comments on commit 1fc310b

Please sign in to comment.