-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: podmonitor mTLS mutations (#566)
## Description This PR has a few follow-on changes for #517: - Slightly reworded/ordered documentation to focus on current setup rather than deprecated setup - Updated code to support `podSelector` or `selector` for pod monitor generation - Updated mutation logic for servicemonitors to: - Combine conditionals for exemption - Add a new `uds/skip-mutate` annotation for exemption - Clarify deprecation of tlsConfig mutation (not scheme) - Added mutation logic for podmonitors to: - Allow for exempting podmonitors from default scrape class via annotation or injection detection - Mutate `scheme` to `https` if not exempted - Switched core podmonitors to use `uds/skip-mutate` annotation rather than explicit scrape class - Deleted example test monitoring from other test-apps and enabled pod + svc monitor for podinfo (since it exposes a real metrics endpoint) ## Related Issue No issue opened as this PR was just merged. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] 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
Showing
12 changed files
with
143 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v2 | ||
name: exempted-app | ||
name: uds-podinfo-config | ||
description: A Helm chart for testing an exempted-app | ||
type: application | ||
version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: uds.dev/v1alpha1 | ||
kind: Package | ||
metadata: | ||
name: podinfo | ||
namespace: podinfo | ||
spec: | ||
monitor: | ||
- selector: | ||
app.kubernetes.io/name: podinfo | ||
targetPort: 9898 | ||
portName: http | ||
description: "podmonitor" | ||
kind: PodMonitor | ||
- selector: | ||
app.kubernetes.io/name: podinfo | ||
targetPort: 9898 | ||
portName: http | ||
description: "svcmonitor" | ||
kind: ServiceMonitor | ||
network: | ||
expose: | ||
- service: podinfo | ||
selector: | ||
app.kubernetes.io/name: podinfo | ||
gateway: tenant | ||
host: podinfo | ||
port: 9898 |
Oops, something went wrong.