-
Notifications
You must be signed in to change notification settings - Fork 2
Add the billing agent ubbagent to the Helm chart #13
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
Conversation
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.
Just a couple of comments and questions.
I'm going to run a cloud-build and see if I can see the billing agent deployment.
| volumes: | ||
| - name: ubbagent-config | ||
| configMap: | ||
| name: ubbagent-config No newline at end of file |
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.
Missing newline
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: $name-ubbagent-config |
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.
Doesn't this need to be ubbagent-config to match the name in the deployment volume reference below?
In any case, I can't see what would replace this variable, since we're using the helm deployment mechanism rather than envsubst.
If it does get replaced, then shouldn't we use the same variable name in the deployment volume reference below?
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.
Omg sorry, I just realized I pushed this PR but it was not ready at all, it seems like I forgot to remove all these $variables and replace them with Helm variables 😞
Sorry for that!
I'll ping you when I'm done fixing all that 👍
| gcp: | ||
| # This parameter accepts a base64-encoded JSON service | ||
| # account key. The value comes from the reporting secret. | ||
| encodedServiceAccountKey: $AGENT_ENCODED_KEY |
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.
I don't understand where this variable gets filled in? The docs say:
Note: Use of the $AGENT_ENCODED_KEY and $AGENT_CONSUMER_ID variables in the previous example rely on variable expansion provided by the ubbagent sidecar container. The mechanism isn't supported natively by the agent. If you're using the agent in a manner other than the sidecar, you can still use the environment variable technique described above but will need to paramaterize the configuration using some other mechanism.
So perhaps there's some trick in the entrypoint of the ubbagent Docker image.
|
The cloud-build test fails for me: It's the only way I have to test all this stuff, so it'd be good to make sure that it works, even if the ubbagent isn't completely working. I do see various references to it in the output: |
3f5bce8 to
fbc906b
Compare
fbc906b to
95a177d
Compare
Signed-off-by: Maël Valais <[email protected]> Co-authored-by: Richard Wall <[email protected]>
95a177d to
36d856b
Compare
Signed-off-by: Maël Valais <[email protected]> Co-authored-by: Richard Wall <[email protected]>
Signed-off-by: Maël Valais <[email protected]> Co-authored-by: Richard Wall <[email protected]>
Signed-off-by: Maël Valais <[email protected]> Co-authored-by: Richard Wall <[email protected]>
Signed-off-by: Maël Valais <[email protected]> Co-authored-by: Richard Wall <[email protected]>
90d80fc to
1e1d160
Compare
Signed-off-by: Maël Valais <[email protected]> Co-authored-by: Richard Wall <[email protected]>
Signed-off-by: Maël Valais <[email protected]> Co-authored-by: Richard Wall <[email protected]>
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.
/lgtm
| identity: gcp | ||
| # The service name is unique to your application and will be | ||
| # provided during onboarding. | ||
| serviceName: my-application.mp-my-company.appspot.com |
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.
This name needs updating.
In this PR, I add the ubbagent to the "jetstacksecure-mp" Helm chart.
Closes #12
Notes: