Commit Graph

11 Commits

Author SHA1 Message Date
Gage Hugo ee0201bd7d Remove sonobuoy chart
This change removes the sonobuoy chart from openstack-helm-addons.

Change-Id: Ic9a48f2082c1aa602d903d22f42c1724fd4aec73
2021-06-24 10:51:18 -05:00
DODDA, PRATEEK REDDY 44f2de10b1 Add missing security context to Sonobuoy pods/containers
This updates the sonobuoy chart to include the pod
security context on the pod template.

This also adds the container security context to set
readOnlyRootFilesystem flag to true

Depends-On: https://review.opendev.org/740119/

Change-Id: I0964c9809402635c9a7049b61fb954a4ebf01bb1
2020-07-08 22:48:26 +00:00
dt241s@att.com 768722b1cf Enable Apparmor to Components in Addons
1)Added Apparmor Script andimoved apparmor configurations
to values-overrides to enable optional experimental Jobs.

2)Added Apparmor to mini-mirror,ranger,ranger-agent
 and sonobuy Components.

3)Moved apparmot
Change-Id: I9772d8425aa3d46e1fb0e1a6962ea999e77a6655
2020-06-17 19:30:06 +00:00
Gage Hugo 09b6e52c32 Remove OSH Authors copyright
The current copyright refers to a non-existent group
"openstack helm authors" with often out-of-date references that
are confusing when adding a new file to the repo.

This change removes all references to this copyright by the
non-existent group and any blank lines underneath.

Change-Id: I631ae4345f18fee70b380867ba8b33af5e3b3254
2020-03-02 14:01:56 -06:00
Drew Walters 32888e88fa sonobuoy: Support storing results on host
Currently, results are stored using an emptyDir volume. This change adds
support for storing results using a customizable hostPath. When storing
results in a hostPath, results can still be obtained form the hostPath
while result publishing is disabled.

Change-Id: Ibd01da23a8e74a54f500429cf0ba8ca72f2ac77d
2019-07-01 16:11:01 +00:00
Dustin Specker d0100055af fix(sonobuoy): only add apparmor for results-publisher when publishing
Before, if conf.publish_results was false then Helm would fail to
install the Sonobuoy chart because the apparmor annotation was being
added for the results-publisher container, but the container didn't
actually exist because it was disabled.

Now, the apparmor annotation is only included for the results-publisher
container when conf.publish_results is true.

Change-Id: I731b7d03c9699db0fcab61439479796617ebff2a
2019-06-19 16:30:55 -05:00
Dustin Specker 845fa7d686 Sonobuoy: add apparmor profile for sonobuoy pod
Change-Id: Ib533c1ea01bc5b10275c3c7416eab72db4496bf2
2019-06-12 13:27:26 +00:00
Dustin Specker 8c614d4ffd Sonobuoy: allow multiple simultaneous chart installations
Manually set Namespace for Sonobuoy's config.json.

Sonobuoy's bug forcing heptio-sonobuoy namespace [1] usage only does not
impact this Helm chart because the config.json is directly controlled
by the `values.yaml` and not Sonobuoy's CLI.

Now multiple instances of this chart may exist at once by specifying
unique namespaces at helm install time.

Modify Sonobuoy test script to install two instances of Sonobuoy Helm
chart. Also install readonly serviceaccount to verify it will work with
more than one instance simultaneously.

[1] https://github.com/heptio/sonobuoy/issues/420

Change-Id: I6d4ecfb812a4312af13abf1e265de495e27967f9
2019-02-26 14:23:36 +00:00
Dustin Specker fa705f1aaa make publishing Sonobuoy results optional
This change enables operators to disable results publishing where Swift
and Ceph may not be setup.

This configuration option does not prevent deploying other resources
such as ks-user. The operator will want to disable those via the
`manifests` dictionary in `values.yaml`.

Change-Id: I00be7d51309889fcaf3b2a9756e38dcf49c31312
2019-01-03 18:54:09 +00:00
Dustin Specker 5559878087 Store Sonobuoy results in Ceph
This enables persistently storing Sonobuoy tests results tarball
in Ceph (authed with Keystone).

1. Adds job-ks-user and secrety-keystone to create Sonobuoy user in
Keystone
2. Sonobuoy pod has a results-publisher container that waits for
Sonobuoy container to populate test results directory with the tarball
3. results-publisher container creates Swift container for Sonobuoy
results
4. results-publisher adds Sonobuoy test results to Swift container
5. results-publisher sets expiry date on the object to be deleted
after 30 days

Change-Id: Ic2d9fb345dce1101040e60113564e7ecdb2c51ea
2018-11-09 19:25:08 +00:00
Dustin Specker f823544adb Add Sonobuoy chart
This adds a Sonobuoy chart that only runs the systemd-logs plugin[1]. The
Sonobuoy pod (tests) are executed as a `helm test`.

This chart must be installed under the heptio-sonobuoy namespace[2]. A node
with the label selector specified in values.yaml (labels.api) must exist
for the Sonobuoy pod to even be created.

Also add an experimental job to test Sonobuoy chart.

[1] https://github.com/heptio/sonobuoy-plugin-systemd-logs
[2] https://github.com/heptio/sonobuoy/issues/420

Change-Id: I613fab635b97a70ac20820e1ececde48952ac2da
2018-10-03 10:52:21 -05:00