-
Notifications
You must be signed in to change notification settings - Fork 353
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
Add support for all kubearmor command line configurations using KubeArmorConfig CR #1501
Comments
Hey @rksharma95, KubeArmorConfig already handles defaultPosture and defaultVisibility as shown here. The goal is to implement the remaing configurations from kubearmor cli to kubearmor config. Is my interpretation correct?
|
Can you explain 'Operator is reconciling to watch kubearmor daemonset' a bit in detail? Is it that the operator using the watch API of Kubernetes and it will implement any changes that require restart automatically and the user won't have to manually reboot kubearmor? |
for example, we are using the image provided by the user using the CR KubeArmorConfig here, similarly we can define other configuration options and can use them to define the daemonset initially.
and to update the daemonset for each update event on KubeArmorConfig we can make use of the watcher defined here:
let me know if you have any questions. |
To my understanding, the daemonset configuration has to be extended to handle these CLI configurations at install time. Also, the operator CRD will have to be extended to make these options available. Once at least these steps are done(there could be more) the watcher will automatically take care of updates on the CR. Is my interpretation correct? |
daemonset accepts these configurations as command-line arguments, however it would be better if we can handle these configurations with existing configmap KubeArmor/KubeArmor/config/config.go Line 19 in e64ccb7
yes you're right these configurations need to be part of KubeArmorConfig CR spec and need to be handled as part of this issue. the watcher will required related changes to handle the change in these configs at runtime. |
Working on a PR : ) |
@rksharma95 Sorry for an array of doubts 😅. I understand that we are getting the config map from kubearmor-confg but how does a user-supplied value(such as image or init-image) in the CR is used to configure the deployments in the operator? I am unable to find that code piece. |
reconciler/watcher
for dynamic updates, let's take a look here how we're updating the images
let me know if you have any questions. |
Folks how about instead of adding all fields to the CR we just add a |
@DelusionalOptimist Agreed. Advanced configurations can be bundled into an array field. Haven't had the time to get on this, will start again soon! |
Feature Request
Short Description
Add Support to the KubeArmorConfig to pass all the command line configurations supported by the kubearmor. KubeArmorConfig already support some of the configurations i.e. defaultPosture, defaultVisibility etc. that can be in-effect dynamically. the remaining configurations are mainly pre-install configurations and will require KubeArmor to reboot. Operator is reconciling to watch kubearmor daemonset and can handle any configuration updates.
Is your feature request related to a problem? Please describe the use case.
it will enable the user to provide kubearmor configurations using KubeArmorConfig CR.
Describe the solution you'd like
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: