-
Notifications
You must be signed in to change notification settings - Fork 132
release(sysdig-deploy,kspm-collector): kspm-collector v1.39.12 #2255
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
Merged
mech-pig
merged 9 commits into
main
from
ma/kspm-collector/bump-to-v1.39.12/ssprod-57042
May 20, 2025
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1b97eaa
release(sysdig-deploy,kspm-collector): release kspm-collector v1.39.12
mech-pig c935093
disable decoupled client for testing purposes
mech-pig 4ced7e0
add readme entries
mech-pig 2a71801
add temp dir volume
mech-pig e8c244b
set official release candidate
mech-pig a70879b
final touches
mech-pig a7937a4
bump kspm-collector in sysdig-deploy chart
mech-pig acdf981
minor version bump
mech-pig 1213089
Merge branch 'main' into ma/kspm-collector/bump-to-v1.39.12/ssprod-57042
mech-pig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,22 @@ | ||
{{- if .Values.rbac.create }} | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ template "kspmCollector.fullname" . }} | ||
namespace: {{ include "kspmCollector.namespace" . }} | ||
labels: | ||
{{ include "kspmCollector.labels" . | indent 4 }} | ||
rules: | ||
{{- if eq (include "kspmCollector.transportLayer" .) "http" }} | ||
- apiGroups: ["", "coordination.k8s.io"] | ||
resources: | ||
- "leases" | ||
resourceNames: | ||
- {{ include "kspmCollector.leaderElectionLeaseLockName" . }} | ||
verbs: ["*"] | ||
- apiGroups: ["", "coordination.k8s.io"] | ||
resources: | ||
- "leases" | ||
verbs: ["create"] | ||
{{- end }} | ||
{{- end }} |
This file contains hidden or 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,16 @@ | ||
{{- if and .Values.rbac.create }} | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: {{ template "kspmCollector.fullname" .}} | ||
labels: | ||
{{ include "kspmCollector.labels" . | indent 4 }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ template "kspmCollector.serviceAccountName" .}} | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: Role | ||
name: {{ template "kspmCollector.fullname" .}} | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end }} |
This file contains hidden or 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 hidden or 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,85 @@ | ||
suite: KSPM Collector ConfigMap Tests | ||
templates: | ||
- configmap.yaml | ||
tests: | ||
- it: check that transport_layer is set with default value | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
clusterName: test-cluster | ||
asserts: | ||
- equal: | ||
path: data.transport_layer | ||
value: http | ||
|
||
- it: check that transport_layer is set with overridden value | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
clusterName: test-cluster | ||
transportLayer: nats | ||
asserts: | ||
- equal: | ||
path: data.transport_layer | ||
value: nats | ||
|
||
- it: check that leader_election_lease_lock_name is set with default value | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
clusterName: test-cluster | ||
asserts: | ||
- equal: | ||
path: data.leader_election_lease_lock_name | ||
value: kspm-collector-leader-election | ||
|
||
- it: check that leader_election_lease_lock_name is set with overridden value | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
clusterName: test-cluster | ||
leaderElection: | ||
lockName: test-lock | ||
asserts: | ||
- equal: | ||
path: data.leader_election_lease_lock_name | ||
value: test-lock | ||
|
||
- it: check that leader_election_lease_lock_name is required when transport is http | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
clusterName: test-cluster | ||
transportLayer: http | ||
leaderElection: | ||
lockName: "" | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: A valid lock name for the leader election is required when transport is http | ||
|
||
- it: check that leader_election_lease_lock_namespace is equal to release namespace | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
clusterName: test-cluster | ||
transportLayer: http | ||
release: | ||
namespace: test-namespace-release | ||
asserts: | ||
- equal: | ||
path: data.leader_election_lease_lock_namespace | ||
value: test-namespace-release | ||
|
||
- it: check that leader_election_lease_lock_namespace is equal to namespace value if set | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
clusterName: test-cluster | ||
transportLayer: http | ||
namespace: test-namespace-value | ||
release: | ||
namespace: test-namespace-release | ||
asserts: | ||
- equal: | ||
path: data.leader_election_lease_lock_namespace | ||
value: test-namespace-value |
This file contains hidden or 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,16 @@ | ||
suite: KSPM Collector Deployment Env Var Tests | ||
templates: | ||
- deployment.yaml | ||
tests: | ||
- it: check that KUBE_POD_NAME is set with the name of the pod | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[?(@.name=="kspm-collector")].env | ||
content: | ||
name: KUBE_POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name |
This file contains hidden or 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 hidden or 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,48 @@ | ||
suite: KSPM Collector Role Tests | ||
templates: | ||
- templates/role.yaml | ||
tests: | ||
- it: Should not create document if rbac.create is false | ||
set: | ||
rbac: | ||
create: false | ||
asserts: | ||
- containsDocument: | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
not: true | ||
|
||
- it: Should not create rules if transportLayer is not http | ||
set: | ||
transportLayer: nats | ||
asserts: | ||
- isNullOrEmpty: | ||
path: rules | ||
|
||
- it: Should grant permissions to create lease if transport is http | ||
set: | ||
transportLayer: http | ||
asserts: | ||
- contains: | ||
path: rules | ||
content: | ||
apiGroups: ["", "coordination.k8s.io"] | ||
resources: | ||
- "leases" | ||
verbs: ["create"] | ||
|
||
- it: Should grant all permissions on specific lease if transport is http | ||
set: | ||
transportLayer: http | ||
leaderElection: | ||
lockName: test-lock-name | ||
asserts: | ||
- contains: | ||
path: rules | ||
content: | ||
apiGroups: ["", "coordination.k8s.io"] | ||
resources: | ||
- "leases" | ||
resourceNames: | ||
- "test-lock-name" | ||
verbs: ["*"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.