Skip to content
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

feat: no cgo build #238

Merged
merged 2 commits into from
Dec 15, 2020
Merged

feat: no cgo build #238

merged 2 commits into from
Dec 15, 2020

Conversation

diafour
Copy link
Contributor

@diafour diafour commented Dec 15, 2020

Overview

flant/libjq-go is required only if cgo is enabled.

What this PR does / why we need it

Build with CGO_ENABLED=0 is not require libjq-go anymore, so it is possible to use various parts of the shell-operator in projects that don't require jqFilter. For example, Kubernetes client in pkg/kube or Prometheus client in pkg/metric_storage or Monitors with custom FilterFunc in pkg/kube_events_manager.

JQ_EXEC=yes environment variable still can be used to force /usr/bin/jq execution if the shell-operator is built with cgo enabled.

Special notes for your reviewer

Does this PR introduce a user-facing change?

NONE

@diafour diafour added the run/tests Run tests on full matrix of k8s versions label Dec 15, 2020
@github-actions github-actions bot removed the run/tests Run tests on full matrix of k8s versions label Dec 15, 2020
@diafour diafour merged commit 7c691cf into master Dec 15, 2020
@diafour diafour deleted the feat_no_cgo_build branch December 15, 2020 17:55
@diafour diafour added this to the 1.0.0-rc.1 milestone Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant