Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
- Fix indentation for example
- Update type of verify_ssl to allow user ability to disable

Signed-off-by: Zachary Robichaud <[email protected]>
  • Loading branch information
zrobisho committed Mar 4, 2024
1 parent ff1df5a commit c3974fa
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 22 deletions.
26 changes: 15 additions & 11 deletions docs/configuration/plugins/outputs/vmware_log_intelligence.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,20 @@ For details, see [https://github.com/vmware/fluent-plugin-vmware-log-intelligenc
spec:
vmwarelogintelligence:
endpoint_url: https://data.upgrade.symphony-dev.com/le-mans/v1/streams/ingestion-pipeline-stream
verify_ssl: true
http_compress: false
headers:
Content-Type: "application/json"
Authorization: "Bearer 12345"
structure: simple
buffer:
chunk_limit_records: 300
flush_interval: 3s
retry_max_times: 3
verify_ssl: true
http_compress: false
headers:
content_type: "application/json"
authorization:
valueFrom:
secretKeyRef:
name: vmware-log-intelligence-token
key: authorization
structure: simple
buffer:
chunk_limit_records: 300
flush_interval: 3s
retry_max_times: 3
```
Expand Down Expand Up @@ -54,7 +58,7 @@ Compress http request https://github.com/vmware/fluent-plugin-vmware-log-intelli
Required headers for sending logs to VMware Log Intelligence https://github.com/vmware/fluent-plugin-vmware-log-intelligence?tab=readme-ov-file#label-3Cheaders-3E
### verify_ssl (bool, required) {#vmwarelogintelligence-verify_ssl}
### verify_ssl (*bool, required) {#vmwarelogintelligence-verify_ssl}
Verify SSL (default: true) https://github.com/vmware/fluent-plugin-vmware-log-intelligence?tab=readme-ov-file#label-verify_ssl
Expand Down
26 changes: 15 additions & 11 deletions pkg/sdk/logging/model/output/vmware_log_intelligence.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,20 @@ For details, see [https://github.com/vmware/fluent-plugin-vmware-log-intelligenc
spec:
vmwarelogintelligence:
endpoint_url: https://data.upgrade.symphony-dev.com/le-mans/v1/streams/ingestion-pipeline-stream
verify_ssl: true
http_compress: false
headers:
Content-Type: "application/json"
Authorization: "Bearer 12345"
structure: simple
buffer:
chunk_limit_records: 300
flush_interval: 3s
retry_max_times: 3
verify_ssl: true
http_compress: false
headers:
content_type: "application/json"
authorization:
valueFrom:
secretKeyRef:
name: vmware-log-intelligence-token
key: authorization
structure: simple
buffer:
chunk_limit_records: 300
flush_interval: 3s
retry_max_times: 3
```
*/
type _docVMWareLogIntelligence interface{} //nolint:deadcode,unused
Expand All @@ -58,7 +62,7 @@ type VMWareLogIntelligenceOutput struct {
// Log Intelligence endpoint to send logs to https://github.com/vmware/fluent-plugin-vmware-log-intelligence?tab=readme-ov-file#label-endpoint_url
EndpointURL string `json:"endpoint_url"`
// Verify SSL (default: true) https://github.com/vmware/fluent-plugin-vmware-log-intelligence?tab=readme-ov-file#label-verify_ssl
VerifySSL bool `json:"verify_ssl" plugin:"default:true"`
VerifySSL *bool `json:"verify_ssl" plugin:"default:true"`
// Compress http request https://github.com/vmware/fluent-plugin-vmware-log-intelligence?tab=readme-ov-file#label-http_compress
HTTPCompress *bool `json:"http_compress,omitempty"`
// Required headers for sending logs to VMware Log Intelligence https://github.com/vmware/fluent-plugin-vmware-log-intelligence?tab=readme-ov-file#label-3Cheaders-3E
Expand Down
5 changes: 5 additions & 0 deletions pkg/sdk/logging/model/output/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c3974fa

Please sign in to comment.