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

Mention agent json_log in values.yaml. #72

Merged
merged 5 commits into from
May 29, 2024

Conversation

meowjesty
Copy link
Member

From the issue:

@aviramha

When we do it probably would need to support podLabels and podAnnotations for the agent itself

I'm not quite sure what this means?

Also, options passed through extraConfig have to be snake case (match the agent config). It failed when I tried setting it to jsonLog like the operator value, as it works there due to jsonLog being converted into true/false in the helm thingy.

@aviramha
Copy link
Member

Some of our users collect logs from pods based on annotations/labels (i.e collect-logs=true) and if we want them to be able to consume the agent logs the operator needs to support settings those annotations/labels.
It can also come as part of agent extra config. (but need to change the operator code to use that as well)

@meowjesty
Copy link
Member Author

So I just make up something like this?

podAnnotations: {
  operator_json_logs: true
  agent_json_logs: true
}
podLabels: {
  operator_json_logs: true
  agent_json_logs: true
}

@aviramha
Copy link
Member

So I just make up something like this?

podAnnotations: {
  operator_json_logs: true
  agent_json_logs: true
}
podLabels: {
  operator_json_logs: true
  agent_json_logs: true
}

No, the idea is that we let users supply their annotations/labels - see the labels/annotations we let users specify (on helm chart) for the operator deployment itself.

@meowjesty
Copy link
Member Author

Ah, so it's like a user setting

metadata:
  name: cat-pod
  labels:
    user: "mister-cat

And we want this to be passed to our agent spec:

metadata:
  name: mirrord-agent
  labels:
    app: "agent"
    user: "mister-cat  <-- we insert it here

@aviramha
Copy link
Member

yes

@meowjesty meowjesty marked this pull request as ready for review May 23, 2024 18:32
@meowjesty meowjesty marked this pull request as draft May 23, 2024 18:33
@meowjesty meowjesty marked this pull request as ready for review May 27, 2024 18:31
@meowjesty
Copy link
Member Author

I think we have merged all the mirrord stuff needed.

@meowjesty
Copy link
Member Author

meowjesty commented May 27, 2024

Nope, still needs https://github.com/metalbear-co/operator/pull/530

@meowjesty
Copy link
Member Author

Do we need to update any numbers here? This change is just docs, as extraConfig already takes everything you pass as args.

You would need to use an updated operator (unreleased actually).

@meowjesty meowjesty requested a review from aviramha May 29, 2024 17:31
@meowjesty meowjesty merged commit 9a44403 into metalbear-co:main May 29, 2024
2 checks passed
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.

2 participants