Added auto install extensions snippet.
This commit is contained in:
		@ -70,8 +70,8 @@ spec:
 | 
				
			|||||||
    defaultNamespace:
 | 
					    defaultNamespace:
 | 
				
			||||||
      autoProvision: true
 | 
					      autoProvision: true
 | 
				
			||||||
      template: <username>-devspaces
 | 
					      template: <username>-devspaces
 | 
				
			||||||
    maxNumberOfWorkspacesPerUser: 1
 | 
					    maxNumberOfWorkspacesPerUser: 5
 | 
				
			||||||
    maxNumberOfRunningWorkspacesPerUser: 1
 | 
					    maxNumberOfRunningWorkspacesPerUser: 2
 | 
				
			||||||
    secondsOfInactivityBeforeIdling: 1800
 | 
					    secondsOfInactivityBeforeIdling: 1800
 | 
				
			||||||
    secondsOfRunBeforeIdling: -1
 | 
					    secondsOfRunBeforeIdling: -1
 | 
				
			||||||
    security: {}
 | 
					    security: {}
 | 
				
			||||||
@ -102,6 +102,7 @@ EOF
 | 
				
			|||||||
# Create the configmap with sample json config
 | 
					# Create the configmap with sample json config
 | 
				
			||||||
oc create configmap getting-started-samples --from-file=samples.json -n openshift-devspaces
 | 
					oc create configmap getting-started-samples --from-file=samples.json -n openshift-devspaces
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Label the configmap for use by dev spaces
 | 
					# Label the configmap for use by dev spaces
 | 
				
			||||||
oc label configmap getting-started-samples app.kubernetes.io/part-of=che.eclipse.org app.kubernetes.io/component=getting-started-samples -n openshift-devspaces
 | 
					oc label configmap getting-started-samples app.kubernetes.io/part-of=che.eclipse.org app.kubernetes.io/component=getting-started-samples -n openshift-devspaces
 | 
				
			||||||
#+end_src
 | 
					#+end_src
 | 
				
			||||||
@ -123,3 +124,18 @@ spec:
 | 
				
			|||||||
      disableInternalRegistry: true
 | 
					      disableInternalRegistry: true
 | 
				
			||||||
EOF
 | 
					EOF
 | 
				
			||||||
#+end_src
 | 
					#+end_src
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* Auto install extensions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#+begin_src tmux
 | 
				
			||||||
 | 
					cat << EOF > extensions.json
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    "recommendations": [
 | 
				
			||||||
 | 
					      "redhat.ansible",
 | 
				
			||||||
 | 
					      "redhat.vscode-yaml",
 | 
				
			||||||
 | 
					      "redhat.vscode-redhat-account"
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					EOF
 | 
				
			||||||
 | 
					#+end_src
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user