mirror of
				https://github.com/edgelesssys/constellation.git
				synced 2025-10-31 03:39:04 -04:00 
			
		
		
		
	 bd63aa3c6b
			
		
	
	
		bd63aa3c6b
		
	
	
	
	
		
			
			sed -i '1i/*\nCopyright (c) Edgeless Systems GmbH\n\nSPDX-License-Identifier: AGPL-3.0-only\n*/\n' `grep -rL --include='*.go' 'DO NOT EDIT'` gofumpt -w .
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			498 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			498 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| /*
 | |
| Copyright (c) Edgeless Systems GmbH
 | |
| 
 | |
| SPDX-License-Identifier: AGPL-3.0-only
 | |
| */
 | |
| 
 | |
| package kubernetes
 | |
| 
 | |
| import (
 | |
| 	k8s "k8s.io/api/core/v1"
 | |
| 	"k8s.io/apimachinery/pkg/runtime"
 | |
| )
 | |
| 
 | |
| // ConfigMaps represent a list of k8s ConfigMap.
 | |
| type ConfigMaps []*k8s.ConfigMap
 | |
| 
 | |
| // Marshal marshals config maps into multiple YAML documents.
 | |
| func (s ConfigMaps) Marshal() ([]byte, error) {
 | |
| 	objects := make([]runtime.Object, len(s))
 | |
| 	for i := range s {
 | |
| 		objects[i] = s[i]
 | |
| 	}
 | |
| 	return MarshalK8SResourcesList(objects)
 | |
| }
 |