Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Revert conditional setting of SecurityContext when launching security context #566

Merged
merged 1 commit into from
May 18, 2023

Conversation

wild-endeavor
Copy link
Contributor

@wild-endeavor wild-endeavor commented May 18, 2023

TL;DR

This PR inadvertently removed a conditional check that only set the security context to non-nil if there were meaningful values. The downstream MergeIntoExecConfig function relies on the nil-ness as an indication that something needs to be down.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

How did you fix the bug, make the feature etc. Link to any design docs etc

Tracking Issue

Possibly related to: https://flyte-org.slack.com/archives/CP2HDHKE1/p1684415744068949

@wild-endeavor wild-endeavor marked this pull request as ready for review May 18, 2023 18:59
@codecov
Copy link

codecov bot commented May 18, 2023

Codecov Report

Merging #566 (2f8c8c6) into master (062641f) will increase coverage by 1.57%.
The diff coverage is 100.00%.

❗ Current head 2f8c8c6 differs from pull request most recent head c2723b0. Consider uploading reports for the commit c2723b0 to get more accurate results

@@            Coverage Diff             @@
##           master     #566      +/-   ##
==========================================
+ Coverage   58.42%   60.00%   +1.57%     
==========================================
  Files         168      168              
  Lines       16152    13215    -2937     
==========================================
- Hits         9437     7929    -1508     
+ Misses       5875     4447    -1428     
+ Partials      840      839       -1     
Flag Coverage Δ
unittests ?

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

Impacted Files Coverage Δ
pkg/manager/impl/execution_manager.go 72.88% <100.00%> (+2.94%) ⬆️

... and 154 files with indirect coverage changes

Copy link
Contributor

@hamersaw hamersaw left a comment

Choose a reason for hiding this comment

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

My only other thought was to add a isNilOrEmpty function that checks this. It would be used when checking existence or non-existence in a number of areas.

@wild-endeavor
Copy link
Contributor Author

yeah next time maybe. there's a bunch of places where that could be useful.

@wild-endeavor wild-endeavor merged commit 313ac29 into master May 18, 2023
@wild-endeavor wild-endeavor deleted the fix-check-for-system-merge-wec branch May 18, 2023 19:38
wild-endeavor added a commit to flyteorg/flyte that referenced this pull request May 22, 2023
Signed-off-by: Yee Hing Tong <[email protected]>

### Admin - v1.1.100
* Inject user identifier to ExecutionSpec by @ByronHsu in flyteorg/flyteadmin#549
* Fix flaky test by @eapolinario in flyteorg/flyteadmin#563
* Add oauth http proxy for external server & Extract email from azure claim by @ByronHsu in flyteorg/flyteadmin#553
* Remove single task execution default timeout by @hamersaw in flyteorg/flyteadmin#564
* Revert conditional setting of SecurityContext when launching security context by @wild-endeavor in flyteorg/flyteadmin#566

### Console - v1.8.2
* Export Flytedecks support for TLRO by @james-union in flyteorg/flyteconsole#757
* fix: filter executions by version and name by @ursucarina in flyteorg/flyteconsole#758
* fix: task recent runs should filter by version by @ursucarina in flyteorg/flyteconsole#759
* Bug: Execution Page's back button returns Workflows route from Launch Plan route #patch by @FrankFlitton in flyteorg/flyteconsole#760
* chore: add item when mapped task by @jsonporter in flyteorg/flyteconsole#761
* Feature: Fullview Flyte Deck modal by @FrankFlitton in flyteorg/flyteconsole#764

### Propeller - v1.1.90
* Add grpc plugin to loader.go by @pingsutw in flyteorg/flytepropeller#562
eapolinario pushed a commit that referenced this pull request Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants