Skip to content

[mce-2.6] Remove existing Secret files in (deprovision) Pod#2426

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mce-2.6from
openshift-cherrypick-robot:cherry-pick-2425-to-mce-2.6
Aug 26, 2024
Merged

[mce-2.6] Remove existing Secret files in (deprovision) Pod#2426
openshift-merge-bot[bot] merged 1 commit intoopenshift:mce-2.6from
openshift-cherrypick-robot:cherry-pick-2425-to-mce-2.6

Conversation

@openshift-cherrypick-robot
Copy link

@openshift-cherrypick-robot openshift-cherrypick-robot commented Aug 26, 2024

This is an automated cherry-pick of #2425

/assign 2uasimojo

/cherrypick mce-2.5 mce-2.4 mce-2.3

HIVE-2604

For Pods with `restartPolicy: OnFailure`, a failed container may be
rerun in the same Pod, which will reuse the same file system as the
initial run. When we project Secrets (for credentials, certs, etc) to
directories in such containers, those writes can fail the second time
around because the file already exists. Fix by removing the file, if it
exists, before we write it.

Note that at the time of this commit, this only affects deprovision
pods:
- imageset pods don't use ProjectToDir
- provision pods have `restartPolicy: Never`

HIVE-2604
@2uasimojo
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 2uasimojo, openshift-cherrypick-robot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 26, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 26, 2024

@openshift-cherrypick-robot: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@codecov
Copy link

codecov bot commented Aug 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 58.60%. Comparing base (67495e3) to head (7c42741).
Report is 2 commits behind head on mce-2.6.

Files Patch % Lines
contrib/pkg/utils/generic.go 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           mce-2.6    #2426      +/-   ##
===========================================
- Coverage    58.60%   58.60%   -0.01%     
===========================================
  Files          181      181              
  Lines        25822    25824       +2     
===========================================
  Hits         15134    15134              
- Misses        9415     9417       +2     
  Partials      1273     1273              
Files Coverage Δ
contrib/pkg/utils/generic.go 9.75% <0.00%> (-0.17%) ⬇️

@openshift-cherrypick-robot
Copy link
Author

@openshift-cherrypick-robot: new pull request created: #2427

Details

In response to this:

This is an automated cherry-pick of #2425

/assign 2uasimojo

/cherrypick mce-2.5 mce-2.4 mce-2.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants