Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import app.json to OpenShift applications #8819

Merged
merged 3 commits into from
Jun 2, 2016

Conversation

smarterclayton
Copy link
Contributor

@smarterclayton smarterclayton commented May 10, 2016

Experimental support for importing app.json to an OpenShift/Kubernetes application. Handles formations, has to make some informed guesses to get the right container start command. Assumes the build image accepts source (so we do a FROM ; ADD .; COMMIT).

case "secret":
param.Generate = "expression"
param.From = "[a-zA-Z0-9]{14}"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given that generators are going away in k8s templates, do we really want to invest more in them here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want app.json to work - it won't today without support for generators.

On Tue, May 10, 2016 at 3:20 PM, Ben Parees [email protected]
wrote:

In pkg/generate/appjson/appjson.go
#8819 (comment):

  •   }
    
  •   e := env.EnvVar
    
  •   displayName := v.Name
    
  •   displayName = strings.Join(strings.Split(strings.ToLower(displayName), "_"), " ")
    
  •   displayName = strings.ToUpper(displayName[:1]) + displayName[1:]
    
  •   param := templateapi.Parameter{
    
  •       Name:        v.Name,
    
  •       DisplayName: displayName,
    
  •       Description: e.Description,
    
  •       Value:       e.Value,
    
  •   }
    
  •   switch e.Generator {
    
  •   case "secret":
    
  •       param.Generate = "expression"
    
  •       param.From = "[a-zA-Z0-9]{14}"
    
  •   }
    

given that generators are going away in k8s templates, do we really want
to invest more in them here?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/8819/files/89ca3f79b38ea3ffc3fd3165cec0b0394ad8bbad#r62735114

@smarterclayton smarterclayton force-pushed the appjson branch 5 times, most recently from d63ba11 to 759c3ac Compare May 17, 2016 18:55
@smarterclayton
Copy link
Contributor Author

[test]

@smarterclayton
Copy link
Contributor Author

Any other comments?

appJSONExample = ` # Import a directory containing an app.json file
$ %[1]s app.json -f .

# Turn an app.json file into a template
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this indenting intentional?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is my last remaining comment ^^

@smarterclayton smarterclayton force-pushed the appjson branch 2 times, most recently from 042c69e to 81b62af Compare June 2, 2016 03:20
@smarterclayton
Copy link
Contributor Author

Flake #9144

On Thu, Jun 2, 2016 at 2:45 PM, OpenShift Bot [email protected]
wrote:

continuous-integration/openshift-jenkins/test FAILURE (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4375/)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#8819 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABG_p2PrQpIgwrAvYCz_q7ts3rFztlhFks5qHyTHgaJpZM4IbTWo
.

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 80cf1e9

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4384/)

@smarterclayton
Copy link
Contributor Author

[merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Jun 2, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/4384/) (Image: devenv-rhel7_4304)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 80cf1e9

@openshift-bot openshift-bot merged commit 13e6ef8 into openshift:master Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants