30 Commits
Author SHA1 Message Date
flabatut fa28e30460 [stable/opa] Fix prometheus servicemonitor discovery configuration (#23668)
* servicemonitor.yaml: fixed servicemonitor.specselector.matchLabels.app value which must match with service.metadata.labels.app
* servicemonitor.yaml: fixed servicemonitor.metadata.labels.release overide support which  might be required for prometheus operator servicemonitorselector matchlabels criteria
* servicemonitor.yaml: replaced hardcoded listening targetPort in favor of service port name reference
* service.yaml: Added service port declaration for prometheus port exposed by container
* deployment.yaml: added support for custom prometheus/mgmt port
* deployment.yaml: added container ports declarations for default port exposed (https) and additional port used by prometheus/mgmt (http)
* values.yaml: added support for custom prometheus/mgmt port

Signed-off-by: Franck Labatut <flabatut@gmail.com>
2020-09-02 16:29:40 -07:00
Armin Coralic 8001bd4767 [stable/opa] Adding imagePullSecret to OPA (#23621)
* Adding imagePullSecret to OPA

Signed-off-by: Armin <armin@coralic.nl>

* OPA update chart version

Signed-off-by: Armin <armin@coralic.nl>
2020-08-27 00:01:02 -07:00
Nándor István Krácser fd816f5dac opa: add extraArgs to opa container (#23556)
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
2020-08-17 13:03:30 -07:00
Scott Cabrinha b51616ae2b allow hostNetwork setting on OPA pod (#23430)
Signed-off-by: Scott Cabrinha <cabrinhascott@gmail.com>
2020-08-03 11:19:40 -07:00
Ángel Barrera 362e0bb43f [stable/opa] Add extra{containers,ports,volumes} to OPA deployment (#23190)
* Add extra-{containers,ports,volumes} to OPA stable chart

Signed-off-by: Ángel Barrera Sánchez <angel@sighup.io>

* Bump OPA chart version

Signed-off-by: Ángel Barrera Sánchez <angel@sighup.io>

* Update stable/opa chart documentation

Signed-off-by: Ángel Barrera Sánchez <angel@sighup.io>
2020-07-15 06:52:39 -07:00
Ahil Mathew Eapachen 6e33d87bcc Updating documentation. (#22501)
The documentation changes will inform user that there is a way to disable opa from loading default policies.
Fixes https://github.com/open-policy-agent/opa/issues/2410
Signed-off-by
Author:    Ahil Mathew Eapachen <ahil1232@gmail.com>
Date:      Mon May 25 11:27:02 2020 +1200

Signed-off-by: Ahil Mathew Eapachen <ahil1232@gmail.com>

Bumped up chart version

Incorporated PR comments
2020-05-27 05:28:40 -07:00
Igor Belikov c244f9aefd [stable/opa] Add affinity settings to OPA deployment (#20628)
Signed-off-by: Igor Belikov <mail@igorbelikov.com>
2020-02-11 14:42:08 -08:00
Ivo Verberk 415a647179 [stable/opa] allow data loading configuration in kube-mgmt. (#19564)
* [stable/opa] allow data loading configuration in kube-mgmt.

Signed-off-by: Ivo Verberk <iverberk@xebia.com>

* [stable/opa] bump chart version to 1.13.2

Signed-off-by: Ivo Verberk <iverberk@xebia.com>

* [stable/opa] update README to describe kube-mgmt config.

Signed-off-by: Ivo Verberk <iverberk@xebia.com>

* [stable/opa] bump chart version.

Signed-off-by: Ivo Verberk <iverberk@xebia.com>
2019-12-22 07:05:33 -08:00
Patrick East 9c81fa73fc [stable/opa] Fix default OPA values.yaml and update to latest (#19480)
* [stable/opa] Fix default opa config.yaml

Historically opa by default is configured to download a bundle file
with default values.yaml options to allow for it to work with only
`helm install`. At some point this changed to not include the default
configuration which effectively breaks the defaults (and invalidates
the README that explains how to customize the policies further).

This change restores the config and updates it to the latest style of
bundle configuration using the `bundles` keyword.

Signed-off-by: Patrick East <east.patrick@gmail.com>

* [stable/opa] Update OPA and kube-mgmt versions

Bumping the versions of OPA and kube-mgmt to the latest and greatest.

The newer versions include bug fixes, performance enhancements, and
features that users should have.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-12-09 16:53:29 -08:00
Eric Bailey 1d59943fc3 [stable/opa] Add ServiceMonitor (#18220)
Signed-off-by: Eric Bailey <e.bailey@sportradar.com>
2019-10-24 14:31:39 -07:00
Eric Bailey b8748a4fce [stable/opa] Parameterize deployment strategy (#18222)
Signed-off-by: Eric Bailey <e.bailey@sportradar.com>
2019-10-24 08:51:12 -07:00
Eric Bailey 887f6b7e59 [stable/opa] Support securityContext (#18221)
Signed-off-by: Eric Bailey <e.bailey@sportradar.com>
2019-10-23 14:11:07 -07:00
Ondrej Kuchar 181fee93e2 [stable/opa] add timeout for a webhook call in seconds (#17960)
* add timeout for a webhook call in seconds

Signed-off-by: Ondrej Kuchar <ondrej.kuchar@pan-net.eu>

* syntax fix

Signed-off-by: Ondrej Kuchar <ondrej.kuchar@pan-net.eu>
2019-10-15 06:51:53 -07:00
Marc Cirauqui efd98f2d23 [stable/opa] OPA updates. (#17947)
* OPA updates.

This PR includes:

- Update OPA and `kube-mgmt` versions.

OPA version is not even listed in OPA website. Updates to latest 0.14.1.
Due to this update, change the `--insecure-addr` param as it's deprecated
in favor of `--addr`.

- Remove invalid bundle config from OPA.

OPA [documentation](https://www.openpolicyagent.org/docs/latest/management/#bundle-file-format)
specifies that bundles need to be gzipped tarballs, whereas the url specified
in the `values.yaml` produces a 404, making OPA download an HTML file.

Signed-off-by: Marc Cirauqui <mcirauqui@gmail.com>

* Change default values for OPA config

Signed-off-by: Marc Cirauqui <mcirauqui@gmail.com>
2019-10-14 08:28:38 -07:00
bruce-au e1a4f5fc37 Adding ability to define additional bootstrap policies loaded upon OPA startup, in addition to the authz policy. (#16332)
Signed-off-by: Bruce Yu <bruce@autonomic.ai>
2019-08-14 10:28:25 -07:00
bruce-au 588c8602be Adding the ability to add annotations to the template spec. Added a (#16299)
prometheus flag to allow for exposing endpoints that enable metric
scraping.

Signed-off-by: Bruce Yu <bruce@autonomic.ai>
2019-08-13 14:22:23 -07:00
Xin Jin 0d0646bd4e stable/opa: Fix OPA installation script with the right authz rego. (#15222)
Signed-off-by: Xin Jin <xin@styra.com>
2019-07-06 18:52:33 -07:00
Ali Rizwan d38ffd4f1f [stable/opa] Added a namespace selector config to admission controller (#14518)
Making the namespace selector configurable allows for more flexibility.
e.g. we want to enable it for only 1 namespace.

Signed-off-by: Ali Rizwan <ari@hellofresh.com>
2019-06-05 08:39:55 -07:00
Adam Graves 4839a9816f [stable/opa] Add sideEffects to webhook config (#14444)
Signed-off-by: Adam Graves <adam.graves85@gmail.com>
2019-06-05 07:21:55 -07:00
Adam Cheney dd4023fee9 [stable/opa] add priorityClass (#14297)
* [stable/opa] add priorityClass

Signed-off-by: Adam Cheney <adam.cheney@xero.com>

* [stable/opa] fix indenting in values.yaml

Signed-off-by: Adam Cheney <adam.cheney@xero.com>

* [stable/opa] better indenting in deployment template

Signed-off-by: Adam Cheney <adam.cheney@xero.com>
2019-05-30 11:46:27 -07:00
Casey Lee 9ae11f4071 stable/opa: fix liveness/readiness probes - indentation of periodSeconds and initialDelaySeconds is incorrect (#14291)
Signed-off-by: Casey Lee <cplee@nektos.com>
2019-05-29 14:30:21 -07:00
João Marçal d7c5001685 Extra chart configs (#13274)
* Added option to provide a different port instead of 443

Signed-off-by: Joao Marcal <joao.marcal12@gmail.com>

* Fixed a bug introduced in the last commit and added some helpfull comments
to values.yaml

Signed-off-by: Joao Marcal <joao.marcal12@gmail.com>

* Removed trailing space

Signed-off-by: Joao Marcal <joao.marcal12@gmail.com>
2019-04-25 08:22:47 -07:00
kfox1111 5509fc6141 Cert-manager support in opa chart (#13265)
Add support automatic provisioning of webhook certs via cert-manager
in opa chart.

Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
2019-04-24 15:00:48 -07:00
Thomas Miller fa54225969 Adds PodDisruptionBudget to OPA (#11922)
* Adds PodDisruptionBudget to OPA

- Defaults to off with a default min value of 1

Signed-off-by: Thomas Miller <thomas@tlm.id.au>

* Fixed linting issue in values

Signed-off-by: Thomas Miller <thomas@tlm.id.au>

* Fixed default values docs in README

Signed-off-by: Thomas Miller <thomas@tlm.id.au>
2019-03-08 08:23:28 -08:00
Thomas Miller dc09ebad57 Adds resource limits for containers in deploy (#11886)
* Adds resource limits for containers in deploy

Signed-off-by: Thomas Miller <thomas@tlm.id.au>

* Updated README and bumped chart.

- README with new variables
- Bumped chart version

Signed-off-by: Thomas Miller <thomas@tlm.id.au>
2019-03-04 15:38:55 -08:00
matthope 7b1a5f281c [opa] Able to specify log level and log format (#11477)
* [opa] Able to specify log level and log format

Signed-off-by: Matt Hope <matt.hope@fairfaxmedia.com.au>

* Update stable/opa/Chart.yaml

Signed-off-by: Matt Hope <matt.hope@fairfaxmedia.com.au>
2019-03-04 09:33:45 -08:00
Jeff Bachtel 6c75d84e73 Update to latest opa image release (#11756)
Signed-off-by: Jeff Bachtel <jeff.bachtel@gmail.com>
2019-02-26 13:16:29 -08:00
kfox1111 33d98eaa3e Add kube-mgmt to OPA (#10860)
* Initial attempt at adding kube-mgmt to the chart

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Updated to add auth/imagePullPolicy/rbac

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Fix linting issues

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Update kube-mgmt image to 0.8.

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Add the ability to turn off authz

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Add note about authz.

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Add in fixes from tsandall

Signed-off-by: Kevin Fox <kevin@efox.cc>
2019-02-26 09:37:20 -08:00
kfox1111 fa5797b0a0 Add a kubectl proxy to allow rego to make kubernetes sars (#10490)
* Add a kubectl proxy to allow rego to make kubernetes subject access reviews.

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Bumped the wrong version.

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Fix lint.

Signed-off-by: Kevin Fox <kevin@efox.cc>

* Update based on feedback.

Update based on feedback by tsandall and timothyhinrichs.
Added OWNERS too for ease of management.

Signed-off-by: Kevin Fox <kevin@efox.cc>
2019-01-22 22:33:42 -08:00
Torin Sandall 44981ee444 Add Open Policy Agent chart (#8915)
* Add Open Policy Agent chart

Signed-off-by: Torin Sandall <torinsandall@gmail.com>

* Update chart with example to kick the tires

Signed-off-by: Torin Sandall <torinsandall@gmail.com>

* Update chart per review feedback

- Set app version to OPA vresion per convention
- Prefer user facing chart name to local in install guide
- Refactor standard labels into helper template

Signed-off-by: Torin Sandall <torinsandall@gmail.com>

* Add configuration table to README

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-12-18 12:48:16 -08:00