This small feature code enables users to define per pod the length of the recording time of application profiles and not just rely on the global settings in the node-agent configuration "maxLearningPeriod".
The length of the learning period for a given pod's containers will be taken from the label kubescape.io/max-sniffing-time in the same format as the Helm chart's maxLearningPeriod value. If the label does not exist then the global configuration will be used as normal.
Overview
This small feature code enables users to define per pod the length of the recording time of application profiles and not just rely on the global settings in the node-agent configuration "maxLearningPeriod".
The length of the learning period for a given pod's containers will be taken from the label
kubescape.io/max-sniffing-time
in the same format as the Helm chart'smaxLearningPeriod
value. If the label does not exist then the global configuration will be used as normal.