Skip to content

Commit

Permalink
chore: adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
shil committed Dec 21, 2024
1 parent 3a4f5d7 commit ef5bf2a
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions api/apps/v1alpha1/nemo_datastorev2_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,22 +499,7 @@ func (n *NemoDatastoreV2) GetVolumes() []corev1.Volume {

// GetStandardAnnotations returns default annotations to apply to the NemoDatastoreV2 instance
func (n *NemoDatastoreV2) GetEnvFrom() []corev1.EnvFromSource {
return []corev1.EnvFromSource{
{
ConfigMapRef: &corev1.ConfigMapEnvSource{
LocalObjectReference: corev1.LocalObjectReference{
Name: n.Spec.DataStoreParams.EnvConfigMap,
},
},
},
{
SecretRef: &corev1.SecretEnvSource{
LocalObjectReference: corev1.LocalObjectReference{
Name: n.Spec.DataStoreParams.EnvSecret,
},
},
},
}
return []corev1.EnvFromSource{}
}

// GetStandardAnnotations returns default annotations to apply to the NemoDatastoreV2 instance
Expand Down Expand Up @@ -848,7 +833,7 @@ func (n *NemoDatastoreV2) GetInitContainers() []corev1.Container {
"/bin/sh", "-c",
},
Args: []string{
"/usr/sbin/int/configure_gitea.sh",
"/usr/sbin/init/configure_gitea.sh",
},
VolumeMounts: n.GetVolumeMountsInitContainer(),
Env: n.GetInitContainerEnv(),
Expand Down

0 comments on commit ef5bf2a

Please sign in to comment.