github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/model_secret_volume_source.go (about) 1 /* 2 * Testkube API 3 * 4 * Testkube provides a Kubernetes-native framework for test definition, execution and results 5 * 6 * API version: 1.0.0 7 * Contact: testkube@kubeshop.io 8 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 9 */ 10 package testkube 11 12 // secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret 13 type SecretVolumeSource struct { 14 DefaultMode *BoxedInteger `json:"defaultMode,omitempty"` 15 // items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. 16 Items []SecretVolumeSourceItems `json:"items,omitempty"` 17 // optional field specify whether the Secret or its keys must be defined 18 Optional bool `json:"optional,omitempty"` 19 // secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret 20 SecretName string `json:"secretName,omitempty"` 21 }