Instead of adding the app templates launched from the backend via `backend/btrixcloud/templates`, add them to a configmap and mount the configmap in the same location. This allows these templates to be updated, like other values in charts/... without having to rebuild any of the images, speeding up dev and maintenance time. Changes include: - move backend/btrixcloud/templates -> chart/app-templates/ - add app-templates/*.yaml to app-templates configmap - mount app-templates configmap to /app/btrixcloud/templates/ in api and op containers
		
			
				
	
	
		
			33 lines
		
	
	
		
			652 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			652 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| apiVersion: btrix.cloud/v1
 | |
| kind: ProfileJob
 | |
| metadata:
 | |
|   name: profilejob-{{ id }}
 | |
|   labels:
 | |
|     browser: "{{ id }}"
 | |
|     role: "job"
 | |
|     btrix.org: {{ oid }}
 | |
|     btrix.user: {{ userid }}
 | |
|     {%- if base_profile %}
 | |
|     btrix.baseprofile: "{{ base_profile }}"
 | |
|     {%- endif %}
 | |
|     btrix.storage: "{{ storage_name }}"
 | |
| 
 | |
| spec:
 | |
|   selector:
 | |
|     matchLabels:
 | |
|       browser: "{{ id }}"
 | |
| 
 | |
|   id: "{{ id }}"
 | |
|   userid: "{{ userid }}"
 | |
|   oid: "{{ oid }}"
 | |
| 
 | |
|   storageName: "{{ storage_name }}"
 | |
| 
 | |
|   startUrl: "{{ url }}"
 | |
|   profileFilename: "{{ profile_filename }}"
 | |
|   vncPassword: "{{ vnc_password }}"
 | |
| 
 | |
|   {% if expire_time %}
 | |
|   expireTime: "{{ expire_time }}"
 | |
|   {% endif %}
 |