Skip to content

Commit

Permalink
feat: add metrics-server functional layer (#865)
Browse files Browse the repository at this point in the history
## Description

Adds the functional layer for metrics-server.

## Related Issue

Related to #820

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor
Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)
followed
  • Loading branch information
mjnagel authored Oct 7, 2024
1 parent d782b59 commit 290367a
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ runtime-security:
backup-restore:
- "packages/backup-restore/**"
- "src/velero/**"

metrics-server:
- "packages/metrics-server/**"
- "src/metrics-server/**"
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
strategy:
matrix:
flavor: [upstream, registry1, unicorn]
layer: [base, identity-authorization, ui, runtime-security, backup-restore, logging]
layer: [base, identity-authorization, ui, runtime-security, backup-restore, logging, metrics-server]
arch: [amd64, arm64]
exclude:
- flavor: registry1
Expand Down
7 changes: 7 additions & 0 deletions packages/metrics-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# UDS Core Metrics Server

This layer of UDS Core provides k8s metrics capabilities. Currently it includes the application(s):
- Metrics Server

To deploy this layer you must also deploy its dependent layer(s):
- Base
8 changes: 8 additions & 0 deletions packages/metrics-server/tasks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
includes:
- metrics-server: ../../src/metrics-server/tasks.yaml

tasks:
- name: validate
actions:
- description: "Validate Metrics Server"
task: metrics-server:validate
16 changes: 16 additions & 0 deletions packages/metrics-server/zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
kind: ZarfPackageConfig
metadata:
name: core-metrics-server
description: "UDS Core (Metrics Server)"
authors: "Defense Unicorns - Product"
# x-release-please-start-version
version: "0.28.0"
# x-release-please-end
x-uds-dependencies: ["base"]

components:
# Metrics Server
- name: metrics-server
required: true
import:
path: ../../src/metrics-server
2 changes: 1 addition & 1 deletion packages/standard/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ components:
- name: metrics-server
required: false
import:
path: ../../src/metrics-server
path: ../metrics-server

# Keycloak
- name: keycloak
Expand Down
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"packages/backup-restore/zarf.yaml",
"packages/runtime-security/zarf.yaml",
"packages/ui/zarf.yaml",
"packages/metrics-server/zarf.yaml",
"packages/standard/zarf.yaml",
"bundles/k3d-slim-dev/uds-bundle.yaml",
"bundles/k3d-standard/uds-bundle.yaml",
Expand Down

0 comments on commit 290367a

Please sign in to comment.