Bug 1318968 - Mount if secret is available.
Summary: Mount if secret is available.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Bradley Childs
QA Contact: DeShuai Ma
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-18 09:37 UTC by Jaspreet Kaur
Modified: 2019-12-16 05:32 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-16 17:14:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jaspreet Kaur 2016-03-18 09:37:46 UTC
3. What is the nature and description of the request?

A volume that doesn't fail if it's secret doesn't exist. E.g:
volumes:
        - name: deploy-secrets
          secret:
            secretName: deploy-secrets
volumeMounts:
          - mountPath: /deploysecrets
            name: deploy-secrets
            readOnly: true

If I have this in a DeployConfig in a template, and try to create it when the deploy-secrets Secret does not exist, it will fail and say the Secret must exist

4. Why does the customer need this? (List the business requirements here)  
We use secrets to provide additional features. If secrets could be optional and decided on create time, then these features could be optional.
      
5. How would the customer like to achieve this? (List the functional requirements here)
Add a label to the volume called "optional".
If the label exists, and the secret does not exist when the volume is created, it does not fail
      
6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.  
Define a secret volume with the "optional" label in a deployment config, create the deployment config when the secret doesn't exist

7. Is there already an existing RFE upstream or in Red Hat Bugzilla?  

8. Does the customer have any specific timeline dependencies and which release would they like to target?
 
9. Is the sales team involved in this request and do they have any additional input? 
      
10. List any affected packages or components.  
      
11. Would the customer be able to assist in testing this functionality if implemented?  
yes

Comment 6 Mike Barrett 2016-11-16 17:14:33 UTC
Closed as will not fix.  Investing in making the secret API more fluid and pluggable currently.


Note You need to log in before you can comment on or make changes to this bug.