-
Notifications
You must be signed in to change notification settings - Fork 67
Replace host sensor with node agent sensing #773
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
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| tests | ||
| templates/node-agent-crds/README.md |
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
129 changes: 0 additions & 129 deletions
129
charts/kubescape-operator/assets/host-scanner-definition.yaml
This file was deleted.
Oops, something went wrong.
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
7 changes: 7 additions & 0 deletions
7
charts/kubescape-operator/templates/node-agent-crds/README.md
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,7 @@ | ||
| ### CRDs location inside the chart tree | ||
| These CRDs are placed in the `templates/` directory instead of the standard `crds/` directory to allow Helm to manage their full lifecycle. | ||
| This ensures they are updated during `helm upgrade` and removed during `helm uninstall`, supporting the evolving sensing capabilities of the node-agent. | ||
| No need to install them before kubescape operator chart since they are about to be used only after node-agent is up and running. | ||
|
|
||
| ### tech debt | ||
| 1. move CRDs group from `kubescape.cloud` to `kubescape.io` | ||
38 changes: 38 additions & 0 deletions
38
charts/kubescape-operator/templates/node-agent-crds/cloudproviderinfo-crd.yaml
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,38 @@ | ||
| {{- $components := fromYaml (include "components" .) }} | ||
| {{- if $components.nodeAgent.enabled }} | ||
| {{- if .Values.nodeAgent.config.hostSensor.enabled }} | ||
| apiVersion: apiextensions.k8s.io/v1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: cloudproviderinfos.hostdata.kubescape.cloud | ||
| spec: | ||
| group: hostdata.kubescape.cloud | ||
| names: | ||
| kind: CloudProviderInfo | ||
| listKind: CloudProviderInfoList | ||
| plural: cloudproviderinfos | ||
| singular: cloudproviderinfo | ||
| scope: Cluster | ||
| versions: | ||
| - name: v1beta1 | ||
| served: true | ||
| storage: true | ||
| schema: | ||
| openAPIV3Schema: | ||
| type: object | ||
| properties: | ||
| spec: | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| status: | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| additionalPrinterColumns: | ||
| - name: Node | ||
| type: string | ||
| jsonPath: .spec.nodeName | ||
| - name: Last Sensed | ||
| type: string | ||
| jsonPath: .status.lastSensed | ||
| {{- end }} | ||
| {{- end }} |
38 changes: 38 additions & 0 deletions
38
charts/kubescape-operator/templates/node-agent-crds/cniinfo-crd.yaml
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,38 @@ | ||
| {{- $components := fromYaml (include "components" .) }} | ||
| {{- if $components.nodeAgent.enabled }} | ||
| {{- if .Values.nodeAgent.config.hostSensor.enabled }} | ||
|
matthyx marked this conversation as resolved.
|
||
| apiVersion: apiextensions.k8s.io/v1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: cniinfos.hostdata.kubescape.cloud | ||
| spec: | ||
| group: hostdata.kubescape.cloud | ||
| names: | ||
| kind: CNIInfo | ||
| listKind: CNIInfoList | ||
| plural: cniinfos | ||
| singular: cniinfo | ||
| scope: Cluster | ||
| versions: | ||
| - name: v1beta1 | ||
| served: true | ||
| storage: true | ||
| schema: | ||
| openAPIV3Schema: | ||
| type: object | ||
| properties: | ||
| spec: | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| status: | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| additionalPrinterColumns: | ||
| - name: Node | ||
| type: string | ||
| jsonPath: .spec.nodeName | ||
| - name: Last Sensed | ||
| type: string | ||
| jsonPath: .status.lastSensed | ||
| {{- end }} | ||
| {{- end }} | ||
38 changes: 38 additions & 0 deletions
38
charts/kubescape-operator/templates/node-agent-crds/controlplaneinfo-crd.yaml
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,38 @@ | ||
| {{- $components := fromYaml (include "components" .) }} | ||
| {{- if $components.nodeAgent.enabled }} | ||
| {{- if .Values.nodeAgent.config.hostSensor.enabled }} | ||
| apiVersion: apiextensions.k8s.io/v1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: controlplaneinfos.hostdata.kubescape.cloud | ||
| spec: | ||
| group: hostdata.kubescape.cloud | ||
| names: | ||
| kind: ControlPlaneInfo | ||
| listKind: ControlPlaneInfoList | ||
| plural: controlplaneinfos | ||
| singular: controlplaneinfo | ||
| scope: Cluster | ||
| versions: | ||
| - name: v1beta1 | ||
| served: true | ||
| storage: true | ||
| schema: | ||
| openAPIV3Schema: | ||
| type: object | ||
| properties: | ||
| spec: | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| status: | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| additionalPrinterColumns: | ||
| - name: Node | ||
| type: string | ||
| jsonPath: .spec.nodeName | ||
| - name: Last Sensed | ||
| type: string | ||
| jsonPath: .status.lastSensed | ||
| {{- end }} | ||
| {{- end }} |
38 changes: 38 additions & 0 deletions
38
charts/kubescape-operator/templates/node-agent-crds/kernelversion-crd.yaml
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,38 @@ | ||
| {{- $components := fromYaml (include "components" .) }} | ||
| {{- if $components.nodeAgent.enabled }} | ||
| {{- if .Values.nodeAgent.config.hostSensor.enabled }} | ||
| apiVersion: apiextensions.k8s.io/v1 | ||
| kind: CustomResourceDefinition | ||
| metadata: | ||
| name: kernelversions.hostdata.kubescape.cloud | ||
| spec: | ||
| group: hostdata.kubescape.cloud | ||
| names: | ||
| kind: KernelVersion | ||
| listKind: KernelVersionList | ||
| plural: kernelversions | ||
| singular: kernelversion | ||
| scope: Cluster | ||
| versions: | ||
| - name: v1beta1 | ||
| served: true | ||
| storage: true | ||
| schema: | ||
| openAPIV3Schema: | ||
| type: object | ||
| properties: | ||
| spec: | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| status: | ||
| type: object | ||
| x-kubernetes-preserve-unknown-fields: true | ||
| additionalPrinterColumns: | ||
| - name: Node | ||
| type: string | ||
| jsonPath: .spec.nodeName | ||
| - name: Last Sensed | ||
| type: string | ||
| jsonPath: .status.lastSensed | ||
| {{- end }} | ||
| {{- end }} |
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.