Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add rook ceph config and exemptions #39

Merged
merged 3 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions .vscode/settings.json

This file was deleted.

12 changes: 11 additions & 1 deletion bundles/uds-core-swf/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ packages:
optionalComponents:
- git-server
ref: v0.32.4-0.2.3
overrides:
rook-ceph-cluster:
rook-ceph-cluster:
variables:
- path: cephClusterSpec.resources.osd.requests.memory
name: CEPH_OSD_MEM_REQUESTS
- path: cephClusterSpec.resources.osd.limits.memory
name: CEPH_OSD_MEM_LIMITS
- path: toolbox.enabled
name: ENABLE_CEPH_TOOLBOX

# Namespace pre-reqs for swf capabilities
- name: software-factory-namespaces
Expand Down Expand Up @@ -97,7 +107,7 @@ packages:
# Additional manifests needed
- name: additional-manifests
path: ../../build
ref: 0.0.1
ref: 0.0.2

# Gitlab
- name: gitlab-redis
Expand Down
3 changes: 3 additions & 0 deletions config/dev-cluster/uds-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ variables:
init:
# TODO - remove this if/when functionality is restored upstream
REGISTRY_HPA_ENABLE: false
CEPH_OSD_MEM_REQUESTS: "4Gi"
CEPH_OSD_MEM_LIMITS: "4Gi"
ENABLE_CEPH_TOOLBOX: "true"
metallb:
# Replace with a valid IP address range
IP_ADDRESS_POOL: "10.0.120.50-10.0.120.59"
Expand Down
3 changes: 3 additions & 0 deletions config/test-cluster/uds-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ variables:
init:
# TODO - remove this if/when functionality is restored upstream
REGISTRY_HPA_ENABLE: false
CEPH_OSD_MEM_REQUESTS: "4Gi"
CEPH_OSD_MEM_LIMITS: "4Gi"
ENABLE_CEPH_TOOLBOX: "true"
metallb:
# Replace with a valid IP address range
IP_ADDRESS_POOL: "10.0.120.70-10.0.120.79"
Expand Down
1 change: 0 additions & 1 deletion deploy-dubbd-values.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: uds.dev/v1alpha1
kind: Exemption
metadata:
name: rook-ceph
namespace: uds-policy-exemptions
spec:
exemptions:
- policies:
- DisallowHostNamespaces
- DisallowPrivileged
- RequireNonRootUser
- DropAllCapabilities
- RestrictHostPathWrite
- RestrictVolumeTypes
matcher:
namespace: rook-ceph
name: "^rook-ceph-*"
title: "rook-ceph exemptions"
description: "Rook ceph needs exemptions"
19 changes: 10 additions & 9 deletions packages/additional-manifests/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,27 @@ metadata:
name: additional-manifests
description: "Installs additional needed manifests"
architecture: "amd64"
version: "0.0.1"
version: "0.0.2"

variables:
- name: DOMAIN
description: "Domain to be used in VS hosts and gateway config"
default: "mtsi.bigbang.dev"

components:
- name: gitlab-ssh
- name: gitlab-additional-manifests
required: true
manifests:
- name: gitlab-ssh-virtualservice
- name: gitlab-additional-manifests
namespace: gitlab
files:
- manifests/gitlab-ssh-virtualservice.yaml
- manifests/gitlab-ssh-networkpolicies.yaml
- manifests/gitlab-ssh-gateway.yaml
- name: envoy-filter-tenant-ingress
- gitlab/gitlab-ssh-virtualservice.yaml
- gitlab/gitlab-ssh-networkpolicies.yaml
- gitlab/gitlab-ssh-gateway.yaml
- gitlab/envoy-filter.yaml
- name: pepr-policy-exemptions
required: true
manifests:
- name: envoy-filter-tenant-ingress
- name: pepr-policy-exemptions
files:
- manifests/envoy-filter.yaml
- pepr-policy-exemptions/rook-ceph-exemption.yaml