Skip to content
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

Merged
merged 18 commits into from
Mar 16, 2023

Conversation

kbeniwal
Copy link
Contributor

@kbeniwal kbeniwal commented Mar 2, 2023

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 running helm uninstall, the awsacfg 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.

@kbeniwal kbeniwal requested review from anusha94 and pns-nirmata March 2, 2023 11:42
main.go Outdated Show resolved Hide resolved
@anusha94
Copy link
Contributor

anusha94 commented Mar 2, 2023

and it is the responsibility of the user to manually delete it if needed

@kbeniwal Please update this behavior in the docs.

@kbeniwal kbeniwal requested a review from anusha94 March 7, 2023 14:08
main.go Outdated Show resolved Hide resolved
main.go Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
clusterRegion := getClusterRegion()
adapterName := getAdapterName()
adapterNamespace := getAdapterNamespace()
return r.Create(context.TODO(), &securityv1alpha1.AWSAdapterConfig{
Copy link
Contributor

@pns-nirmata pns-nirmata Mar 13, 2023

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.

Copy link
Contributor Author

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.

main.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants