Skip to content

Commit

Permalink
Merge pull request #32 from StatCan/feat-remove-configurations
Browse files Browse the repository at this point in the history
Remove configurations
  • Loading branch information
wg102 authored Oct 17, 2023
2 parents a2c0175 + a527d10 commit d58ee27
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

kubeflowv1 "github.com/StatCan/kubeflow-controller/pkg/apis/kubeflowcontroller/v1"
kubeflowv1alpha1 "github.com/StatCan/kubeflow-controller/pkg/apis/kubeflowcontroller/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// NewPodDefaultFunc represents the function called to create a new PodDefault.
Expand All @@ -29,25 +28,6 @@ func RegisterPodDefault(name string, callback NewPodDefaultFunc) error {

func init() {
RegisterPodDefault("minio-mounts", func(profile *kubeflowv1.Profile) *kubeflowv1alpha1.PodDefault {
return &kubeflowv1alpha1.PodDefault{
ObjectMeta: metav1.ObjectMeta{
Name: "minio-mounts",
Namespace: profile.Name,
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(profile, kubeflowv1.SchemeGroupVersion.WithKind("Profile")),
},
},
Spec: kubeflowv1alpha1.PodDefaultSpec{
Desc: "Mount MinIO storage to ~/minio (experimental) / Monter le stockage MinIO sur ~/minio (expérimental)",
Selector: metav1.LabelSelector{
MatchLabels: map[string]string{
"minio-mounts": "true",
},
},
Annotations: map[string]string{
"data.statcan.gc.ca/inject-boathouse": "true",
},
},
}
return &kubeflowv1alpha1.PodDefault{}
})
}

0 comments on commit d58ee27

Please sign in to comment.