Bug 1302963

Summary: Custom STI templates
Product: OpenShift Container Platform Reporter: Jaspreet Kaur <jkaur>
Component: RFEAssignee: Ben Parees <bparees>
Status: CLOSED DEFERRED QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: high    
Version: 3.1.0CC: aos-bugs, bparees, jkaur, jokerman, mangirdas, mbarrett, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-12 13:54:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaspreet Kaur 2016-01-29 07:17:37 UTC
3. What is the nature and description of the request?  

STI implementation at present generates configurations (BC, DC, IS, etc) from some sort of template, incorporated inside the STI process. We would like to have ability to provide our custom template for STI to generate configuration from. 

      
4. Why does the customer need this? (List the business requirements here)  

We would like to use encrypted traffic from POD to LoadBalander/Router. For this we need ability to pass certificates to each and every POD running in our infrastructure. "Bake in" certificates to the images is not an option. All other parts of infrastructure we can control, but not STI.

We have certificates created as secrets for each project separately by infrastructure. And we would like to mount this secret to ALL STI builds. This requires modification to how STI generates objects/configurations

      
5. How would the customer like to achieve this? (List the functional requirements here)

We want to use STI provided capabilities (Where you just paste your source code repository and chose builder Image) and all configurations is generated for you by STI. We need to be able to mount secrets to these configurations. And not only secret but to change other options too like replications number, triggers, etc. 

In example how many replicated PODs we want to have by default, some default triggers, etc. This goes to wider picture - how to define default values for other elements too, including default secrets. This would be wider requirement.

"Platform level secrets", which would be per project basis present by default for all builds.

      
6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.  

Need a default way to provide different objects  that we want so that it could be created using repo/image or docker file while creating applications.

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

No

8. Does the customer have any specific timeline dependencies and which release would they like to target?

ASAP   
      
9. Is the sales team involved in this request and do they have any additional input? 
No
      
10. List any affected packages or components.  
      
11. Would the customer be able to assist in testing this functionality if implemented?

Comment 2 Ben Parees 2016-04-13 14:00:52 UTC
I think STI in this RFE is really referring to new-app.

Comment 3 Mangirdas 2016-04-20 06:35:34 UTC
(In reply to Ben Parees from comment #2)
> I think STI in this RFE is really referring to new-app.

Yes. And app configuration, being called when Builders is being invoked via UI too.

Comment 5 Mangirdas 2016-08-10 07:21:50 UTC
Any news on this one Ben?

Comment 6 Ben Parees 2016-08-10 12:47:06 UTC
It's being tracked in our trello backlog:
https://trello.com/c/iotn8FCo/873-8-make-new-app-generate-based-on-skeleton-definition-evg

but we don't have a current ETA for when we'd implement it.

Comment 7 Mangirdas 2016-08-10 12:53:32 UTC
Awesome. If you need more details, let me know. Its already third place where I'm running to same challenge.
+ I saw when you do oc new-app you get this generated:
"type": "Git",
            "git": {
                "uri": "ssh://git.intranet.db.com:7999/paas/example-spring-boot-freemakers.git",
                "ref": "master"
            },
            "secrets": null
        },

where null is comming from? Is it possible to populate it somehow? Can you please point to Go code where it comes from (lost little bit in this one).

Comment 8 Ben Parees 2016-08-10 13:05:08 UTC
it's not possible to populate it, you're just seeing the default value being displayed, but there is no way to set a value for it via new-app, you have to edit the buildconfig after the fact.

Comment 9 Mangirdas 2016-08-10 13:07:54 UTC
Ok, so the only available option is custom S2I and before this "hits" next release we will need to come up with different flow.

Comment 13 Eric Rich 2018-03-12 13:54:36 UTC
This bug has been identified as a dated (created more than 3 months ago) bug. 
This bug has been triaged (has a trello card linked to it), or reviewed by Engineering/PM and has been put into the product backlog, 
however this bug has not been slated for a currently planned release (3.9, 3.10 or 3.11), which cover our releases for the rest of the calendar year. 

As a result of this bugs age, state on the current roadmap and PM Score (being below 70), this bug is being Closed - Differed, 
as it is currently not part of the products immediate priorities.

Please see: https://docs.google.com/document/d/1zdqF4rB3ea8GmVIZ7qWCVYUaQ7-EexUrQEF0MTwdDkw/edit for more details.

Comment 14 Red Hat Bugzilla 2023-09-14 23:58:54 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days