Skip to content

Commit

Permalink
[tls] add DeplomentResources type
Browse files Browse the repository at this point in the history
  • Loading branch information
stuggi committed Nov 8, 2023
1 parent e6788d5 commit db6f826
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/common/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@ type TLS struct {
Ca *Ca `json:"ca"`
}

// +kubebuilder:object:generate:=false
// DeplomentResources - holding information to be passed in to any deployment require tls certificates
type DeplomentResources struct {
// VolumeMounts -
VolumeMounts []corev1.VolumeMount
// Volumes -
Volumes []corev1.Volume

// CAVolumeMounts -
CAVolumeMounts []corev1.VolumeMount
// CAVolumes -
CAVolumes []corev1.Volume
}

// NewTLS - initialize and return a TLS struct
func NewTLS(ctx context.Context, h *helper.Helper, namespace string, service *Service, ca *Ca) (*TLS, error) {

Expand Down

0 comments on commit db6f826

Please sign in to comment.