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

Add capability to replace variable from the configuration with cluster data #192

Closed
wants to merge 9 commits into from

Conversation

svevia
Copy link
Contributor

@svevia svevia commented Apr 30, 2024

This pull request implements a new feature that replaces variables from the configuration with data from the cluster. At the moment we can inject:

  • image name
  • namespace
  • Labels
  • Annotations

As an example, this configuration from the AgentConfiguration
metadata: "image=%image%,namespace=%namespace%,app=%labels.app%"

Will be converted to
metadata: "image=docker.io/webgoat/webgoat-8.0:latest,namespace=webgoat,app=webgoat"

contrast-security-sca bot and others added 6 commits April 29, 2024 15:30
…ter information (image,namespace, labels and annotations)
* Add capability to replace varaiables from the configuration with cluster information (image,namespace, labels and annotations)

* fix bug when label / annotations do not exists in the cluster
…g injected instead of the first container of the pod
@svevia svevia requested a review from a team as a code owner April 30, 2024 18:37
svevia added 3 commits August 22, 2024 09:19
* generate env variabale for each labels, annotations and namespace

* minor fix

* add parsing capabilities to avoid cretating unused variables
* generate env variabale for each labels, annotations and namespace

* minor fix

* add parsing capabilities to avoid cretating unused variables
@gamingrobot
Copy link
Contributor

Closed in favor of #219

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