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 metrics-server #35

Merged
merged 5 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 4 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
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
mikevanhemert marked this conversation as resolved.
Show resolved Hide resolved
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