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 requireAllDemandsAndIgnoreOthers flag #5839

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Nohac
Copy link

@Nohac Nohac commented May 30, 2024

This PR adds an extra option requireAllDemandsAndIgnoreOthers (name tbd) to the azure pipeline scaler which ensures that all demands in the scaler definition is present in the incoming job, while ignoring any other demands the job may have.

This is different from requireAllDemands which requires all demands to be an exact match.

Checklist

Fixes #5579

Copy link

semgrep-app bot commented May 30, 2024

Semgrep found 1 context-todo finding:

  • pkg/scalers/azure_pipelines_scaler_test.go

Consider to use well-defined context

Ignore this finding from context-todo.

Semgrep found 1 no-direct-write-to-responsewriter finding:

  • pkg/scalers/azure_pipelines_scaler_test.go

Detected directly writing or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package and render data using 'template.Execute()'.

Ignore this finding from no-direct-write-to-responsewriter.

Copy link

semgrep-app bot commented Jun 3, 2024

Semgrep found 1 context-todo finding:

  • pkg/scalers/azure_pipelines_scaler_test.go

Consider to use well-defined context

Ignore this finding from context-todo.

Semgrep found 1 no-direct-write-to-responsewriter finding:

  • pkg/scalers/azure_pipelines_scaler_test.go

Detected directly writing or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package and render data using 'template.Execute()'.

Ignore this finding from no-direct-write-to-responsewriter.

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.

Extending the Azure DevOps Agent scaling - possibility to "ignore" demands
2 participants