mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
26e9c67a00
Decouples cloud provider metadata packages from kubernetes related code Signed-off-by: Malte Poll <mp@edgeless.systems>
19 lines
396 B
Go
19 lines
396 B
Go
package kubernetes
|
|
|
|
import (
|
|
k8s "k8s.io/api/core/v1"
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
)
|
|
|
|
// Secrets represent a list of k8s Secret.
|
|
type Secrets []*k8s.Secret
|
|
|
|
// Marshal marshals secrets into multiple YAML documents.
|
|
func (s Secrets) Marshal() ([]byte, error) {
|
|
objects := make([]runtime.Object, len(s))
|
|
for i := range s {
|
|
objects[i] = s[i]
|
|
}
|
|
return MarshalK8SResourcesList(objects)
|
|
}
|