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

Raw ActiveGate image support #544

Merged
merged 3 commits into from
Feb 23, 2022
Merged

Raw ActiveGate image support #544

merged 3 commits into from
Feb 23, 2022

Conversation

mjgrzybek
Copy link
Contributor

@mjgrzybek mjgrzybek commented Feb 7, 2022

Operator fetches tenant uuid, tenant token and connection endpoints for given apiUrl and applies it to AG via environment variables and mounted secrets.
Operator supports "configured" images as well as "raw" images. Container created using configured image is overridden with parameters as if it was raw.
Added reconciler for parameters mentioned above. Dybakube's activegate.Reconciler maintains <dynakube-name>-activegate-tenant-secret secret.

Known limitations:

  • dtclient used by operator is not networkzone aware, so connection endpoints may be invalid. It's not a regression, though.

@mjgrzybek mjgrzybek added the activegate Changes related to Activegate label Feb 7, 2022
@mjgrzybek mjgrzybek marked this pull request as ready for review February 8, 2022 05:16
src/dtclient/agent_tenant_info.go Show resolved Hide resolved
log.Info("tenant has no endpoints")
}

return tenantInfo, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm missing tenantInfo.UUID validation here, what if it's empty or whitespace-only?

Copy link
Contributor Author

@mjgrzybek mjgrzybek Feb 8, 2022

Choose a reason for hiding this comment

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

dtclient should be refactored - for example generated with swagger. I don't want to manually provide sophisticated logic here because it requires maintenance.
If tenantInfo.UUID is empty, or whitespace-only, we can do nothing except printing warning. I see no value for user here because pod creation is failing anyway with obvious reason.

src/dtclient/common_tenant_info_test.go Outdated Show resolved Hide resolved
@mjgrzybek mjgrzybek requested a review from toszr February 8, 2022 10:09
@mjgrzybek mjgrzybek force-pushed the feature/ag-raw-img branch 2 times, most recently from 5112370 to e147c35 Compare February 22, 2022 17:29
aorcholski
aorcholski previously approved these changes Feb 22, 2022
Copy link
Contributor

@aorcholski aorcholski left a comment

Choose a reason for hiding this comment

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

Make sure that for the entrypoint.sh script settings read from Volumes have higher priority than read from entrypoint.properties file.

@mjgrzybek mjgrzybek merged commit 8099613 into master Feb 23, 2022
@mjgrzybek mjgrzybek mentioned this pull request Mar 7, 2022
2 tasks
@chrismuellner chrismuellner deleted the feature/ag-raw-img branch March 25, 2022 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
activegate Changes related to Activegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants