Commit Graph

11 Commits

Author SHA1 Message Date
Torin Sandall 6c7376ca3d docs: Update kubernetes tutorial to refer to latest kube-mgmt release
The tutorial had not been updated to refer to the latest version which
has an important fixes to improve performance and consistency.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2020-07-07 15:19:05 -04:00
Gaga Pan 0825b9a59e docs/content: fix kubernetes admission controller tutorial
fixes: #2467

Signed-off-by: Gaga Pan <gaga5lala1013@gmail.com>
2020-06-26 11:37:32 -07:00
Torin Sandall 6e0fb39177 docs: Update tutorial with note about consistency
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2020-02-10 16:40:06 -05:00
Patrick East c26db82d33 server: Update health check to use plugin status
The health check now supports a `?plugin` option which will make the
response depend on whether or not all configured plugins are in an OK
state.

The `bundle` parameter will now use the bundle *and* discovery plugin
statuses to determine if the bundles are ready. This corrects an issue
where discovery bundles, and bundles defined by the discovery dynamic
config, were not included with `/health?bundle=true` checks.

The URL parameter parsing has also changed to allow for omitting the
value for the `bundle` option. It will default to `true` so that
`/health?bundle=true` can be shortened to `/health?bundle`.

Fixes: #2010
Fixes: #2015
Signed-off-by: Patrick East <east.patrick@gmail.com>
2020-02-07 09:49:41 -05:00
Torin Sandall 05211c414a docs: Fix Deployment manifest in ingress-conflict tutorial
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2020-01-29 14:51:28 -08:00
Dr Nic Williams ca18a956c5 Filename .rego suffix expected
The *bold* strings are consistently the filename to be created in the tutorial, except for the one fixed in this PR.

Signed-off-by: Dr Nic Williams <drnicwilliams@gmail.com>
2020-01-21 10:14:55 -05:00
Lawrence Gripper 54645811f9 Add note for more recent Kubernetes versions
Signed-off-by: Lawrence Gripper <info@grippers.co.uk>
2020-01-13 11:27:29 -08:00
Tim Hinrichs bf255ccf64 docs: Clarify kube-mgmt/Gatekeeper K8s docs
Previously the docs detailing the OPA-k8s integration only distinguished
between v1 (kube-mgmt) and v3 (gatekeeper) in the introduction page.
The debugging, primer, and tutorial pages did not explicitly state
which version they were detailing.

This change clarifies that those pages refer to the kube-mgmt
version and provide a pointer to the Gatekeeper readme.

Signed-off-by: Tim Hinrichs <tim@styra.com>
2019-10-17 07:46:22 -07:00
Tim Hinrichs 6760303a47 docs: Reorganize the docs navigation
The docs have grown organically and it was time for a reorganization, specifically
helping people understand at a single glance the information
that is available in the docs.

The new docs are organized as follows:
- Core docs (policy and data)
- Use-case specific docs
- Operations
- Support

As part of the reorganization, several files were renamed and/or combined.

Also made an editing pass over what was previously the user-attribute docs
and generalized them to focus on data-replication, an issue that is
now promoted to the core docs.  As part of that, updated the images
and removed the old ones; new image sources are in google slides.

Tweaked the navigation bar to give more space on the left-hand column
so that more of the topics are visible without scrolling.

Signed-off-by: Tim Hinrichs <tim@styra.com>
2019-08-29 09:29:08 -07:00
Torin Sandall 74d67c5de1 docs: Update to use live blocks
These changes update most of the docs to use live blocks. The
following pages have not been touched or updated significantly:

* Get Started - this page is based entirely on the REPL. We should
  revisit the "Get Started" page once these changes have
  landed. The existing page can live on as an introduction to the REPL
  while the Get Started page can be tailored to live blocks.

* Ceph Authorization - this page has not been updated aside from
  making the policy example use the live blocks for syntax
  highlighting. We need to revisit the policy example and refactor the
  tutorial a bit to emphasize the policy as opposed to the manifests
  required to install.

* Terraform - this page has not been touched because @vgramer is
  planning to update for Terraform v0.12. We can update this page once
  those changes are in to avoid conflicts.

These changes also remove the use of non-Markdown code examples. All
the examples are inlined into Markdown now.

A few OPA deployment examples have been updated to enable the console
decision logging. This is better than the request/response debug logs.

Fixes #1650

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-08-23 16:50:32 -04:00
Torin Sandall 7ef72c191b docs: Refactor admission control content into top-level section
The goal is to have the Kubernetes admission control content organized
into one section. This should make it easier to incorporate Gatekeeper
content in the future.

Since the layouts are not versioned the layout logic had to be
enhanced to filter out sections that have no content for the current
version. Doing a semantic version comparison was considered but it was
unclear how to implement that properly within the Hugo template
system. Since it's unlikely that we will want to ever display empty
sections this approach seems fine.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-08-14 16:38:09 -04:00