Commit Graph
31 Commits
Author SHA1 Message Date
Patrick East 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 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
Tharaka De Silva 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 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
Thomas Miller 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 Miller 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 Columna 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 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
Casey Lee 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ç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
Adam Graves 19316e0e6e Allow empty config for OPA (#12629)
Signed-off-by: velothump <adam.graves85@gmail.com>
2019-03-28 16:31:56 -07:00
Ivo Verberk 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 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 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 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