43 Commits
Author SHA1 Message Date
Matt FarinaandGitHub 3e183d4d71 [stable/opa] deprecating chart (#24371)
Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-11-13 15:32:35 -05:00
Scott RigbyandGitHub fbae3eda39 [stable/opa] add repo archive notice (#24167)
Signed-off-by: Scott Rigby <scott@r6by.com>
2020-11-09 14:31:27 -08:00
flabatutandGitHub 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 CoralicandGitHub 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ácserandGitHub 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 CabrinhaandGitHub 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 BarreraandGitHub 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 EapachenandGitHub 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
GregandGitHub cfac7ad633 Adding newer cert-manager apis to OPA (#22111)
Signed-off-by: Greg Sidelinger <gate@ilive4code.net>
2020-04-26 08:41:28 -07:00
Igor BelikovandGitHub 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 VerberkandKubernetes Prow Robot 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
Mark RydstromandKubernetes Prow Robot 9d098e659b Don't add the 'enabled' key to 'securityContext' (#19571)
The template uses securityContext.enabled to set whether the securityContext should be added. This fails the validation in Helm 3 because 'enabled' isn't a valid field in io.k8s.api.core.v1.PodSecurityContext, so keep using that key for the switch to maintain back compat, but don't add it to the output.

Signed-off-by: Mark Rydstrom <mark.rydstrom@sage.com>
2019-12-17 06:35:59 -08:00
Patrick EastandKubernetes Prow Robot e85a94fd2f [stable/opa] Add Patrick East to OWNERS (#19481)
Add myself (Patrick East) to stable/opa HELM chart owners. This adds
another reviewer that is listed as an OPA maintainer:

https://github.com/open-policy-agent/opa/blob/master/MAINTAINERS.md
Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-12-11 10:45:54 -08:00
Patrick EastandKubernetes Prow Robot 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 BaileyandKubernetes Prow Robot 1d59943fc3 [stable/opa] Add ServiceMonitor (#18220)
Signed-off-by: Eric Bailey <e.bailey@sportradar.com>
2019-10-24 14:31:39 -07:00
Eric BaileyandKubernetes Prow Robot 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 BaileyandKubernetes Prow Robot 887f6b7e59 [stable/opa] Support securityContext (#18221)
Signed-off-by: Eric Bailey <e.bailey@sportradar.com>
2019-10-23 14:11:07 -07:00
Tharaka De SilvaandKubernetes Prow Robot 272e5a9aa0 Fixed the NOTES.txt to include the namespace in the port-forward command (#17333)
Signed-off-by: Tharaka De Silva <tharaka.uo@gmail.com>
2019-10-21 01:39:37 -07:00
Ondrej KucharandKubernetes Prow Robot 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 CirauquiandKubernetes Prow Robot 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-auandKubernetes Prow Robot 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-auandKubernetes Prow Robot 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
Thomas MillerandKubernetes Prow Robot 20d47208df [stable/opa] Checksum logic fix (#15985)
* Updated deployment to restart on new certs

- OPA does not use new certs when helm upgrade changes them
- Updated chart version

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

* Bumped chart version to 1.6.0

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

* Fixed bug in checksum annotation

- Checksum annotation should be using 'or' and not 'and'
- Updated chart version to 1.6.1

Signed-off-by: Thomas Miller <thomas@tlm.id.au>
2019-07-31 07:16:24 -07:00
Thomas MillerandKubernetes Prow Robot 57f800a82d Opa/conf change (#13734)
* Updated deployment to restart on new certs

- OPA does not use new certs when helm upgrade changes them
- Updated chart version

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

* Bumped chart version to 1.6.0

Signed-off-by: Thomas Miller <thomas@tlm.id.au>
2019-07-28 03:57:54 -07:00
Carlo ColumnaandKubernetes Prow Robot c6038533df Move health check probes from mgmt to opa. (#15224)
Signed-off-by: Carlo Columna <carlo.columna@xero.com>
2019-07-08 14:42:01 -07:00
Xin JinandKubernetes Prow Robot 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 RizwanandKubernetes Prow Robot 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 GravesandKubernetes Prow Robot 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 CheneyandKubernetes Prow Robot 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 LeeandKubernetes Prow Robot 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
Casey LeeandKubernetes Prow Robot 10d07e6ee0 [stable/opa] add namespace selector to OPA webhook resource and bump … (#13508)
* stable/opa:  add namespace selector to OPA webhook resource and bump version

Signed-off-by: Casey Lee <cplee@nektos.com>

* stable/opa: update namespace label to be 'opt-out' vs 'opt-in'

Signed-off-by: Casey Lee <cplee@nektos.com>
2019-05-13 18:11:10 -07:00
João MarçalandKubernetes Prow Robot 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
kfox1111andKubernetes Prow Robot 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
Adam GravesandKubernetes Prow Robot 19316e0e6e Allow empty config for OPA (#12629)
Signed-off-by: velothump <adam.graves85@gmail.com>
2019-03-28 16:31:56 -07:00
Ivo VerberkandKubernetes Prow Robot 4c9edd9ecc Separate the kube-mgmt replication arguments. (#12305)
* Separate the kube-mgmt replication arguments.

Fixes #11870

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

* Bump the patch version to indicate the replication arguments bugfix.

Signed-off-by: Ivo Verberk <iverberk@xebia.com>
2019-03-26 08:09:21 -07:00
Thomas MillerandKubernetes Prow Robot 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 MillerandKubernetes Prow Robot 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
matthopeandKubernetes Prow Robot 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 BachtelandKubernetes Prow Robot f5b7f44e3d Set readOnly on consuming containers for authz/n (#11759)
Signed-off-by: Jeff Bachtel <jeff.bachtel@gmail.com>
2019-02-26 16:05:27 -08:00
Jeff BachtelandKubernetes Prow Robot 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
kfox1111andKubernetes Prow Robot 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
kfox1111andKubernetes Prow Robot 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 SandallandKubernetes Prow Robot 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