Skip to content

Commit

Permalink
Merge branch 'main' into 458_lula-integration-istio
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtkeller authored Jul 19, 2024
2 parents b99457f + fab8919 commit ed6da0d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bundles/k3d-slim-dev/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
packages:
- name: uds-k3d-dev
repository: ghcr.io/defenseunicorns/packages/uds-k3d
ref: 0.7.0
ref: 0.8.0
overrides:
uds-dev-stack:
minio:
Expand Down
2 changes: 1 addition & 1 deletion bundles/k3d-standard/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
packages:
- name: uds-k3d-dev
repository: ghcr.io/defenseunicorns/packages/uds-k3d
ref: 0.7.0
ref: 0.8.0
overrides:
uds-dev-stack:
minio:
Expand Down
8 changes: 5 additions & 3 deletions src/istio/values/unicorn-values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
pilot:
image: cgr.dev/du-uds-defenseunicorns/istio-pilot-fips:1.22.2
image: "cgr.dev/du-uds-defenseunicorns/istio-pilot-fips:1.22.2"
global:
proxy_init:
image: cgr.dev/du-uds-defenseunicorns/istio-proxy-fips:1.22.2
# renovate: image=cgr.dev/du-uds-defenseunicorns/istio-proxy-fips
image: "###ZARF_REGISTRY###/du-uds-defenseunicorns/istio-proxy-fips:1.22.2"
proxy:
image: cgr.dev/du-uds-defenseunicorns/istio-proxy-fips:1.22.2
# renovate: image=cgr.dev/du-uds-defenseunicorns/istio-proxy-fips
image: "###ZARF_REGISTRY###/du-uds-defenseunicorns/istio-proxy-fips:1.22.2"
8 changes: 5 additions & 3 deletions src/pepr/prometheus/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
ServiceMonitorEndpoint,
ServiceMonitorScheme,
} from "../operator/crd";

// configure subproject logger
const log = setupLogger(Component.PROMETHEUS);

Expand All @@ -25,7 +24,7 @@ const { When } = prometheus;
When(PrometheusServiceMonitor)
.IsCreatedOrUpdated()
.Mutate(async sm => {
if (sm.Raw.spec === undefined) {
if (sm.Raw.spec === undefined || sm.Raw.spec.scrapeClass != undefined) {
return;
}

Expand All @@ -39,6 +38,7 @@ When(PrometheusServiceMonitor)
`Mutating scrapeClass to exempt ServiceMonitor ${sm.Raw.metadata?.name} from default scrapeClass mTLS config`,
);
sm.Raw.spec.scrapeClass = "exempt";

return;
} else {
log.info(`Patching service monitor ${sm.Raw.metadata?.name} for mTLS metrics`);
Expand All @@ -64,7 +64,7 @@ When(PrometheusServiceMonitor)
When(PrometheusPodMonitor)
.IsCreatedOrUpdated()
.Mutate(async pm => {
if (pm.Raw.spec === undefined) {
if (pm.Raw.spec === undefined || pm.Raw.spec.scrapeClass != undefined) {
return;
}

Expand All @@ -74,6 +74,7 @@ When(PrometheusPodMonitor)
`Mutating scrapeClass to exempt PodMonitor ${pm.Raw.metadata?.name} from default scrapeClass mTLS config`,
);
pm.Raw.spec.scrapeClass = "exempt";

return;
} else {
log.info(`Patching pod monitor ${pm.Raw.metadata?.name} for mTLS metrics`);
Expand Down Expand Up @@ -102,5 +103,6 @@ async function isIstioInjected(monitor: PrometheusServiceMonitor | PrometheusPod
return true;
}
}

return false;
}
3 changes: 0 additions & 3 deletions tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ variables:

- name: PKG

- name: K3D_IMAGE
default: "rancher/k3s:v1.29.5-k3s1"

includes:
- create: ./tasks/create.yaml
- setup: ./tasks/setup.yaml
Expand Down
4 changes: 2 additions & 2 deletions tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ tasks:
- name: k3d-standard-bundle
actions:
- description: "Deploy the UDS Core Standard Bundle"
cmd: uds deploy bundles/k3d-standard/uds-bundle-k3d-core-demo-${UDS_ARCH}-${VERSION}.tar.zst --set=uds-k3d-dev.K3D_IMAGE=${K3D_IMAGE} --confirm --no-progress
cmd: uds deploy bundles/k3d-standard/uds-bundle-k3d-core-demo-${UDS_ARCH}-${VERSION}.tar.zst --confirm --no-progress

- name: k3d-slim-dev-bundle
actions:
- description: "Deploy the UDS Core Slim Dev Only Bundle"
cmd: uds deploy bundles/k3d-slim-dev/uds-bundle-k3d-core-slim-dev-${UDS_ARCH}-${VERSION}.tar.zst --set=uds-k3d-dev.K3D_IMAGE=${K3D_IMAGE} --confirm --no-progress
cmd: uds deploy bundles/k3d-slim-dev/uds-bundle-k3d-core-slim-dev-${UDS_ARCH}-${VERSION}.tar.zst --confirm --no-progress

- name: single-package
actions:
Expand Down
2 changes: 1 addition & 1 deletion tasks/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tasks:
actions:
- description: "Create the K3d cluster"
# renovate: datasource=github-tags depName=defenseunicorns/uds-k3d versioning=semver
cmd: "uds zarf package deploy oci://defenseunicorns/uds-k3d:0.7.0 --set=K3D_IMAGE=${K3D_IMAGE} --confirm --no-progress"
cmd: "uds zarf package deploy oci://defenseunicorns/uds-k3d:0.8.0 --confirm --no-progress"

- name: k3d-test-cluster
actions:
Expand Down

0 comments on commit ed6da0d

Please sign in to comment.