• Kubernetes Submit Queue's avatar
    Merge pull request #41957 from liggitt/mirror-pod-secrets · 2eef3b1a
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 41814, 41922, 41957, 41406, 41077)
    
    Use consistent helper for getting secret names from pod
    
    Kubelet secret-manager and mirror-pod admission both need to know what secrets a pod spec references. Eventually, a node authorizer will also need to know the list of secrets.
    
    This creates a single (well, double, because api versions) helper that can be used to traverse the secret names referenced from a pod, optionally short-circuiting (for places that are just looking to see if any secrets are referenced, like admission, or are looking for a particular secret ref, like authorization)
    
    Fixes:
    * secret manager not handling secrets used by env/envFrom in initcontainers
    * admission allowing mirror pods with secret references
    
    @smarterclayton @wojtek-t
    2eef3b1a
Name
Last commit
Last update
..
endpoints Loading commit data...
pod Loading commit data...
service Loading commit data...
validation Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
backward_compatibility_test.go Loading commit data...
conversion.go Loading commit data...
conversion_test.go Loading commit data...
defaults.go Loading commit data...
defaults_test.go Loading commit data...
doc.go Loading commit data...
generate.go Loading commit data...
generated.pb.go Loading commit data...
generated.proto Loading commit data...
helpers.go Loading commit data...
helpers_test.go Loading commit data...
meta.go Loading commit data...
ref.go Loading commit data...
register.go Loading commit data...
resource_helpers.go Loading commit data...
resource_helpers_test.go Loading commit data...
types.generated.go Loading commit data...
types.go Loading commit data...
types_swagger_doc_generated.go Loading commit data...
zz_generated.conversion.go Loading commit data...
zz_generated.deepcopy.go Loading commit data...
zz_generated.defaults.go Loading commit data...