edgelesssys / constellation

Constellation is the first Confidential Kubernetes. Constellation shields entire Kubernetes clusters from the (cloud) infrastructure using confidential computing.
GNU Affero General Public License v3.0
903 stars 47 forks source link

bootstrapper: drop unnecessary stat #3202

Closed msanft closed 1 week ago

msanft commented 1 week ago

Context

os.RemoveAll is a no-op on an inexistent path, so we can drop checking if the path exists here. This means we cannot have the conditional log statement either, but that should not be a problem.

Proposed change(s)

Checklist

netlify[bot] commented 1 week ago

Deploy Preview for constellation-docs canceled.

Name Link
Latest commit 20b25b3433c058b2ea6588d1ab3cdb351ecbfbf0
Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/667a86442887ae00086aa2ec
github-actions[bot] commented 1 week ago

Coverage report

Package Old New Trend
bootstrapper/internal/kubernetes/k8sapi 11.60% 11.80% :arrow_upper_right: