-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: move awsacfg resource creation from Helm chart to controller #61
Conversation
@kbeniwal Please update this behavior in the docs. |
clusterRegion := getClusterRegion() | ||
adapterName := getAdapterName() | ||
adapterNamespace := getAdapterNamespace() | ||
return r.Create(context.TODO(), &securityv1alpha1.AWSAdapterConfig{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If any of the above are empty, then don't create instead of failing and exiting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I moved the required parameters and their error handling to the main file, so that we can right away return if all required params are not present.
Fixes Issue #58.
Note: The creation of the
awsacfg
resource has been removed from the Helm Chart. Therefore, the Helm Chart will not handle the deletion of this resource. Even after runninghelm uninstall
, theawsacfg
resource will still be present in the Kubernetes cluster, and it is the responsibility of the user to manually delete it if needed. Similar case for the pod deletion, awsacfg resource will not be deleted.