Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
ksonnet
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ijaz Ahmad
ksonnet
Commits
6a281b9a
Commit
6a281b9a
authored
7 years ago
by
Jessica Yuen
Browse files
Options
Downloads
Patches
Plain Diff
Bring environment documentation up-to-date with spec
parent
6661d131
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/env.go
+26
-19
26 additions, 19 deletions
cmd/env.go
with
26 additions
and
19 deletions
cmd/env.go
+
26
−
19
View file @
6a281b9a
...
...
@@ -75,16 +75,20 @@ uniquely identifies the cluster.
environments/
default/ [Default generated environment]
k.libsonnet
k8s.libsonnet
swagger.json
spec.json
us-west/
staging/ [Example of user-generated env]
.metadata/
k.libsonnet
k8s.libsonnet
swagger.json
spec.json [This will contain the uri of the environment]`
,
spec.json
default.jsonnet
us-west/
staging/ [Example of user-generated env]
.metadata/
k.libsonnet
k8s.libsonnet
swagger.json
spec.json [This will contain the uri of the environment and other environment metadata]
staging.jsonnet`
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
return
fmt
.
Errorf
(
"Command 'env' requires a subcommand
\n\n
%s"
,
cmd
.
UsageString
())
},
...
...
@@ -146,28 +150,31 @@ For example, in the example below, there are two environments: 'default' and
environments/
default/ [Default generated environment]
k.libsonnet
k8s.libsonnet
swagger.json
spec.json
us-west/
staging/ [Example of user-generated env]
.metadata/
k.libsonnet
k8s.libsonnet
swagger.json
spec.json [This will contain the uri of the environment]`
,
spec.json
default.jsonnet
us-west/
staging/ [Example of user-generated env]
.metadata/
k.libsonnet
k8s.libsonnet
swagger.json
spec.json [This will contain the uri of the environment and other environment metadata],
staging.jsonnet`
,
Example
:
` # Initialize a new staging environment at 'us-west'. Using the
# namespace 'my-namespace'. The directory structure rooted at 'us-west' in the
# documentation above will be generated.
ks env add us-west/staging https://ksonnet-1.us-west.elb.amazonaws.com
ks env add us-west/staging https://ksonnet-1.us-west.elb.amazonaws.com
--namespace=my-namespace
# Initialize a new staging environment at us-west, using the OpenAPI specification
# Initialize a new staging environment at
'
us-west
'
, using the OpenAPI specification
# generated in the Kubernetes v1.7.1 build to generate 'ksonnet-lib'.
ks env add us-west/staging https://ksonnet-1.us-west.elb.amazonaws.com --api-spec=version:v1.7.1
# Initialize a new development environment locally. This will overwrite the
# default 'default' directory structure generated by 'ksonnet-init'.
ks env add default localhost:8000`
,
# Initialize a new development environment locally.
ks env add local localhost:8000`
,
}
var
envRmCmd
=
&
cobra
.
Command
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment