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

chore: remove setting alpha flags out of box #3578

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

JaydipGabani
Copy link
Contributor

What this PR does / why we need it: We should avoid setting flags that are alpha unless explicitly added.

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #3483

Special notes for your reviewer:

Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
@JaydipGabani JaydipGabani requested a review from a team as a code owner October 8, 2024 23:10
- --emit-audit-events={{ .Values.emitAuditEvents }}
- --log-stats-audit={{ .Values.logStatsAudit }}
{{ if hasKey .Values "emitAuditEvents" }}- --emit-audit-events={{ .Values.emitAuditEvents }}{{- end }}
{{ if hasKey Values "logStatsAudit" }}- --log-stats-audit={{ .Values.logStatsAudit }}{{- end }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These flags are in alpha for a long time and has been set for many GK versions. I can remove these changes if this is a breaking concern.

- --emit-admission-events={{ .Values.emitAdmissionEvents }}
- --log-stats-admission={{ .Values.logStatsAdmission }}
{{ if hasKey Values "emitAdmissionEvents" }}- --emit-admission-events={{ .Values.emitAdmissionEvents }}{{- end }}
{{ if hasKey Values "logStatsAdmission" }}- --log-stats-admission={{ .Values.logStatsAdmission }}{{- end }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These flags are in alpha for a long time and has been set for many GK versions. I can remove these changes if this is a breaking concern.

@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.71%. Comparing base (3350319) to head (f5b8da5).
Report is 162 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (3350319) and HEAD (f5b8da5). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3350319) HEAD (f5b8da5)
unittests 2 1
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3578      +/-   ##
==========================================
- Coverage   54.49%   47.71%   -6.78%     
==========================================
  Files         134      221      +87     
  Lines       12329    18699    +6370     
==========================================
+ Hits         6719     8923    +2204     
- Misses       5116     8934    +3818     
- Partials      494      842     +348     
Flag Coverage Δ
unittests 47.71% <ø> (-6.78%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
@@ -218,6 +218,9 @@ information._
| audit.readinessTimeout | Timeout in seconds for audit's readiness probe | `1` |
| audit.livenessTimeout | Timeout in seconds for the audit's liveness probe | `1` |
| audit.logLevel | The minimum log level for audit, takes precedence over `logLevel` when specified | `null` |
| audit.enablePubsub | (alpha) Enabled pubsub to publish messages | `false` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can you pls make this consistent with other fields that currently have (alpha feature). prepend (alpha) is better IMO.

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

one nit

Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JaydipGabani JaydipGabani requested a review from ritazh October 22, 2024 03:29
Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JaydipGabani JaydipGabani merged commit efdb6b0 into open-policy-agent:master Oct 22, 2024
21 checks passed
@JaydipGabani JaydipGabani deleted the alpha-flag branch October 22, 2024 16:05
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.

Remove alpha flags from values and add conditional checks before setting flags through helm
4 participants