Skip to content

Commit

Permalink
feat: add metrics-server (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-mccoy authored Nov 15, 2023
1 parent 5185a8f commit 8216ab9
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The core applications are:
- [ ] Kiali
- [ ] Kyverno
- [x] Loki
- [ ] Metrics Server
- [x] Metrics Server
- [x] Neuvector
- [ ] Prometheus
- [ ] Promtail
Expand Down
Empty file.
Empty file.
10 changes: 6 additions & 4 deletions capabilities/metrics-server/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
tasks:
- name: run
actions:
- description: Validate...
cmd: "echo Replace Me"
# wait:
# cluster:
- description: Wait for the metrics-server to be ready
wait:
cluster:
kind: Deployment
name: metrics-server
namespace: metrics-server
3 changes: 3 additions & 0 deletions capabilities/metrics-server/values/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# image:
# repository: registry1.dso.mil/ironbank/opensource/kubernetes-sigs/metrics-server
# tag: "v0.6.3"
21 changes: 14 additions & 7 deletions capabilities/metrics-server/zarf.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
kind: ZarfPackageConfig
metadata:
name: example
description: "Example description"
name: uds-capability-metrics-server
description: "UDS Metrics Server"
url: https://github.com/kubernetes-sigs/metrics-server

components:
- name: test
actions:
onCreate:
after:
- cmd: echo "What can Doug do for you?"
- name: metrics-server
required: true
charts:
- name: metrics-server
namespace: metrics-server
url: https://kubernetes-sigs.github.io/metrics-server
version: 3.11.0
valuesFiles:
- "values/values.yaml"
images:
- registry.k8s.io/metrics-server/metrics-server:v0.6.4
6 changes: 6 additions & 0 deletions packages/standard/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ components:
path: ../../dist
name: module

# Metrics Server
- name: metrics-server
required: true
import:
path: ../../capabilities/metrics-server

# Neuvector
- name: neuvector
required: true
Expand Down
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"packages/standard/zarf.yaml",
"bundles/k3d-istio/uds-bundle.yaml",
"bundles/k3d-standard/uds-bundle.yaml",
"tasks/publish.yaml"
"tasks/deploy.yaml",
"tasks/publish.yaml"
]
}
}
Expand Down
3 changes: 2 additions & 1 deletion tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variables:
- name: VERSION
description: "The version of the packages to deploy"
# x-release-please-start-version
default: "0.1.3"
default: "0.2.0"
# x-release-please-end

tasks:
Expand All @@ -26,6 +26,7 @@ tasks:
- name: single-capability
actions:
- description: "Deploy the requested capability Zarf Package (must set CAPABILITY environment variable)"
# @todo (jeff): this pepr package versioning is still janky
cmd: |
zarf package deploy build/zarf-package-uds-capability-${CAPABILITY}-${UDS_ARCH}.tar.zst --confirm
zarf package deploy build/zarf-package-pepr-uds-core-${UDS_ARCH}-0.2.0.tar.zst --confirm || true

0 comments on commit 8216ab9

Please sign in to comment.