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

DO NOT APPROVE/MERGE - adding dsnexec as a sidecar [OLD] #181

Closed

Conversation

abodhekar
Copy link
Contributor

@abodhekar abodhekar commented Sep 20, 2023

This is to add dsnexec as a side-car container.
Whenever db-controller would see following two annotations, it would add the sidecar.

    1. infoblox.com/remote-db-dsn-secret: < some-secret-name >
    2. infoblox.com/dsnexec-config-secret: < some-secret-name >

remote-db-dsn-secret - In case of RDS, it would be the secret created by DBClaim. This would be mounted as a volume inside the sidecar. the dsn.txt file can be watched for changes (by configuring such through dsnexec config.yaml).

dsnexec-config-secret - This would be a secret which needs to be created by the apps. This should contain data as

key: config.yaml
value: < config needed for dsnexec >

This would be mounted as a volume inside the sidecar. The path to config.yaml file is given to the dsnexec entrypoint.

@abodhekar abodhekar marked this pull request as ready for review September 21, 2023 15:32
Comment on lines 176 to 179
webHookServer := mgr.GetWebhookServer()

webHookServer.Port = 7443
webHookServer.CertDir = "./certs/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are initializing the webhook only if either dbproxy or dsnexec is enabled. We don't need the webhook if neither of them are enabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abalaven - tx, done

@abodhekar abodhekar requested a review from abalaven September 22, 2023 06:23
@abodhekar abodhekar force-pushed the feature/add-dsnexec-as-a-sidecar branch from 07a78f0 to c0331bb Compare September 25, 2023 07:14
@abodhekar abodhekar changed the title adding dsnexec as a sidecar DO NOT APPROVE?MERGE - adding dsnexec as a sidecar [OLD] Sep 25, 2023
@abodhekar abodhekar changed the title DO NOT APPROVE?MERGE - adding dsnexec as a sidecar [OLD] DO NOT APPROVE/MERGE - adding dsnexec as a sidecar [OLD] Sep 25, 2023
@bjeevan-ib bjeevan-ib closed this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants