Store certificate in configmap/secret dynamically;Remove helmchart values
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -26,24 +26,34 @@ | ||||
|     - argo-cd | ||||
|     # - kube-system | ||||
|  | ||||
| - name: Store root certificate in namespaced secrets | ||||
| - name: Store root certificate in namespaced configmaps/secrets | ||||
|   kubernetes.core.k8s: | ||||
|     state: present | ||||
|     template: secret.j2 | ||||
|     template: "{{ item.kind }}.j2" | ||||
|     kubeconfig: "{{ kubeconfig.path }}" | ||||
|   vars: | ||||
|     _template: | ||||
|       name: step-certificates-certs | ||||
|       name: "{{ item.name }}" | ||||
|       namespace: "{{ item.namespace }}" | ||||
|       key: "{{ item.filename }}" | ||||
|       value: "{{ stepca_cm_certs.resources[0].data['root_ca.crt'] | b64encode }}" | ||||
|       labels: "{{ item.labels | default({}) | indent(width=4, indent=True) }}" | ||||
|       key: "{{ item.key }}" | ||||
|       value: "{{ item.value }}" | ||||
|   loop: | ||||
|     - namespace: argo-cd | ||||
|       filename: custom-ca-certificates.crt | ||||
|     - namespace: kube-system | ||||
|       filename: root_ca.crt | ||||
|     - name: argocd-tls-certs-cm | ||||
|       namespace: argo-cd | ||||
|       kind: configmap | ||||
|       labels: | | ||||
|         app.kubernetes.io/name: argocd-cm | ||||
|         app.kubernetes.io/part-of: argocd | ||||
|       key: git.{{ vapp['metacluster.fqdn'] }} | ||||
|       value: "{{ stepca_cm_certs.resources[0].data['root_ca.crt'] }}" | ||||
|     - name: step-certificates-certs | ||||
|       namespace: kube-system | ||||
|       kind: secret | ||||
|       key: root_ca.crt | ||||
|       value: "{{ stepca_cm_certs.resources[0].data['root_ca.crt'] | b64encode }}" | ||||
|   loop_control: | ||||
|     label: "{{ item.namespace }}" | ||||
|     label: "{{ item.kind + '/' + item.name + ' (' + item.namespace + ')' }}" | ||||
|  | ||||
| - name: Configure step-ca passthrough ingress | ||||
|   ansible.builtin.template: | ||||
|   | ||||
| @@ -5,6 +5,7 @@ | ||||
|     state: present | ||||
|   loop: | ||||
|     # TODO: Make this list dynamic | ||||
|     - ca | ||||
|     - git | ||||
|     - gitops | ||||
|     - ingress | ||||
|   | ||||
		Reference in New Issue
	
	Block a user