You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for contributing to the Docker-Selenium project! A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Added revisionHistoryLimit field to the deployment specs of Chrome node, distributor, Edge node, event bus, Firefox node, hub, router, session map, and session queue.
Added revisionHistoryLimit field to global values in values.yaml.
Changed single quotes to double quotes in various fields in values.yaml.
Changes walkthrough 📝
Relevant files
Enhancement
10 files
chrome-node-deployment.yaml
Add revision history limit to Chrome node deployment
Add a conditional check for revisionHistoryLimit to ensure it is defined before usage
Consider adding a conditional check to ensure that the revisionHistoryLimit value is defined in the values file before using it in the deployment template. This will prevent deployment errors in cases where the value is not specified.
+{{- if .Values.global.seleniumGrid.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.global.seleniumGrid.revisionHistoryLimit }}
+{{- end }}
Apply this suggestion
Suggestion importance[1-10]: 9
Why: This suggestion is crucial for preventing deployment errors when revisionHistoryLimit is not defined. It ensures robustness and avoids potential failures.
9
Verify revisionHistoryLimit is set in values before applying it
It's a good practice to check for the existence of configuration values before applying them. This prevents the deployment from failing due to missing values.
+{{- if .Values.global.seleniumGrid.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.global.seleniumGrid.revisionHistoryLimit }}
+{{- end }}
Apply this suggestion
Suggestion importance[1-10]: 9
Why: This suggestion follows best practices by ensuring that configuration values are checked for existence before being applied, preventing potential deployment failures.
9
Maintainability
Conditionally set revisionHistoryLimit based on its presence in the values file
To maintain consistency and avoid errors, ensure that the revisionHistoryLimit is only set when it is explicitly defined in the values file.
+{{- if .Values.global.seleniumGrid.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.global.seleniumGrid.revisionHistoryLimit }}
+{{- end }}
Apply this suggestion
Suggestion importance[1-10]: 9
Why: This suggestion enhances maintainability and consistency by ensuring that revisionHistoryLimit is only set when explicitly defined, preventing potential deployment issues.
9
Possible issue
Ensure revisionHistoryLimit is defined before setting it in the deployment
To prevent potential deployment failures, add a check to ensure the revisionHistoryLimit is provided before setting it in the deployment configuration.
+{{- if .Values.global.seleniumGrid.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.global.seleniumGrid.revisionHistoryLimit }}
+{{- end }}
Apply this suggestion
Suggestion importance[1-10]: 9
Why: This suggestion is important for preventing deployment failures by checking if revisionHistoryLimit is provided before using it in the configuration.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement
Description
revisionHistoryLimit
field to the deployment specs of Chrome node, distributor, Edge node, event bus, Firefox node, hub, router, session map, and session queue.revisionHistoryLimit
field to global values invalues.yaml
.values.yaml
.Changes walkthrough 📝
10 files
chrome-node-deployment.yaml
Add revision history limit to Chrome node deployment
charts/selenium-grid/templates/chrome-node-deployment.yaml
revisionHistoryLimit
field to the deployment spec.distributor-deployment.yaml
Add revision history limit to distributor deployment
charts/selenium-grid/templates/distributor-deployment.yaml
revisionHistoryLimit
field to the deployment spec.edge-node-deployment.yaml
Add revision history limit to Edge node deployment
charts/selenium-grid/templates/edge-node-deployment.yaml
revisionHistoryLimit
field to the deployment spec.event-bus-deployment.yaml
Add revision history limit to event bus deployment
charts/selenium-grid/templates/event-bus-deployment.yaml
revisionHistoryLimit
field to the deployment spec.firefox-node-deployment.yaml
Add revision history limit to Firefox node deployment
charts/selenium-grid/templates/firefox-node-deployment.yaml
revisionHistoryLimit
field to the deployment spec.hub-deployment.yaml
Add revision history limit to hub deployment
charts/selenium-grid/templates/hub-deployment.yaml
revisionHistoryLimit
field to the deployment spec.router-deployment.yaml
Add revision history limit to router deployment
charts/selenium-grid/templates/router-deployment.yaml
revisionHistoryLimit
field to the deployment spec.session-map-deployment.yaml
Add revision history limit to session map deployment
charts/selenium-grid/templates/session-map-deployment.yaml
revisionHistoryLimit
field to the deployment spec.session-queue-deployment.yaml
Add revision history limit to session queue deployment
charts/selenium-grid/templates/session-queue-deployment.yaml
revisionHistoryLimit
field to the deployment spec.values.yaml
Add revision history limit to global values and update quotes
charts/selenium-grid/values.yaml
revisionHistoryLimit
field to global values.