Commit Graph

15 Commits

Author SHA1 Message Date
Alexey Odinokov cd65140a7c Fixing name for maas-export-api-key job
previously it was maas-export-api-key}-job.
It worked, but looked not accurate.

Change-Id: I578c70c09ebbf2bdbccbf81eae69db70250a715d
2023-11-21 12:36:05 -06:00
Anselme, Schubert (sa246v) 736c936394
Parametrise readiness probe
Change-Id: I358ae8307799fff0674a428c42b90381d6d3a631
Signed-off-by: Anselme, Schubert (sa246v) <sa246v@att.com>
2023-08-23 14:42:59 -04:00
Phil Sphicas 666567eae5 Update chart to use stable Kubernetes APIs
Update the MAAS chart to use non-deprecated APIs [0], specifically
addressing the following resource types:
* ClusterRole
* ClusterRoleBinding
* Ingress
* Role
* Rolebinding

The APIs being migrated to are available in v1.19 or earlier. As of this
change, v1.19 is the oldest supported Kubernetes version, slated for EOL
on 2021-10-28. [1]

Also includes an HTK uplift that includes updated Ingress templates. [2]

0: https://kubernetes.io/docs/reference/using-api/deprecation-guide/
1: https://kubernetes.io/releases/
2: https://review.opendev.org/c/openstack/openstack-helm-infra/+/813115

Change-Id: I5e78f1ab094666538ed419a78f6966a2ba295d6a
2021-10-18 11:52:30 -07:00
Sean Eagan 983853de55 Helm 3: Fix Job labels
See the dependency below for details.

Depends-On: https://review.opendev.org/c/openstack/openstack-helm-infra/+/811826
Change-Id: I997313865002469f1916c5baa8ccaa26c37619b5
2021-10-01 13:40:45 -05:00
KHIYANI, RAHUL (rk0850) 20c6e525ea Implement helm-toolkit snippet to maas pods/containers
This updates the maas chart to include the pod
security context on the pod template.

This also adds the container security context to set
readOnlyRootFilesystem flag

Change-Id: I1eba6ab3a7c27ddcb3e8ddc8e743b91dc5e521c3
2020-07-20 14:43:41 +00:00
KAVVA, JAGAN MOHAN REDDY (jk330k) b2e100f6ce Enable Docker default AppArmor profile to maas
This adds default Apparmor profile to maas.

Change-Id: I9c68fdb2be074c855085032dfe9ff0dbbeadcf7c
2020-04-02 15:24:40 +00:00
Matt McEuen 9c2686bea7 Add release uuid to pods and rc objects (maas)
This PS adds the ability to attach a release uuid to pods and rc
objects as desired.  This can be used, for example, to force an
artificial manifest change in CICD scenarios, for upgradability
testing purposes.

Change-Id: I994f9eb9cd75947ee36276a542fa23cc547065e0
2018-09-14 15:51:55 -05:00
Pete Birley 582c4d8b20 Chart: Modernise chart
This PS updates the maas chart to support modern helm toolkits.

Change-Id: Id70343afdec622dc84b89b0d7f496e9ef498ea6b
Signed-off-by: Pete Birley <pete@port.direct>
2018-08-22 21:53:33 -05:00
Scott Hussey 9ea2358c7f [398389] Resource limits for pod specs
- Add resource specs to export_api_key job
- Fix test resource limit indentation

Change-Id: I53a2d7e5db1388484e452b0451c9117c27ea1162
2018-03-29 08:42:45 -05:00
Scott Hussey fced4bd1d2 Fix - Job robustness
- Fix bash conditional error causing the export
  key job to fail for any chart upgrade
- Enhance the image import/configuration job to
  be more robust with additional retrying and better
  failure detection

Change-Id: I874a98587a56b03905d740cd53cdd70a8419a04e
2018-03-09 22:50:21 -05:00
Scott Hussey 71582567f8 Support Postgres admin password
- Fully support Postgres configuration
  in the endpoints stanza
- Add RBAC support to the region and rack
  pods
- Add custom RBAC for export API key job
  to allow secret creation

Change-Id: I9d0b63ac329bb0b9539b14123c5e16ad3cd1c9f0
2018-01-29 13:59:06 -06:00
Scott Hussey 2ad09ad90a Use secrets for admin user bs
For better security use Kubernetes secrets
to set environmental variables for the
bootstrapping job

- Create secret manifest for the MaaS admin user
- Update job-bootstrap-admin-user to use secret for environment
  setup
- Update job-export-api-key to source admin username
  from secret
- Update job-import to source admin username
  from secret

Change-Id: I0ea5a5517c5a90f481c459e836f081f3d2744dad
2018-01-29 09:55:58 -06:00
Anthony Lin b664579d57 RBAC: Update serviceaccount and k8s rbac for maas
This patch set brings the maas chart to be inline
with OSH* RBAC approach used in [0] and [1]

[0] https://review.openstack.org/#/c/526464/52
[1] https://review.openstack.org/#/c/529378/

Change-Id: I3138a0f6280ab7d8ca9c8088ae19ec0c2175292c
2018-01-22 17:08:12 +00:00
Scott Hussey a2e8188b81 Fix templates for new images structure
Update manifest templates to correctly use the new images
structure.

Change-Id: I1b88fc064069f0bf7d768df808caec923b58b8ce
2017-10-30 13:02:53 -05:00
Scott Hussey 668fd328d2 Move MaaS chart into maas repo
Change-Id: If1d9e92d9a691892b9a3afcef5b229d704b5dcbc
2017-10-25 14:02:38 -05:00