Skip to content

Commit

Permalink
minor changes for ova-provider creation
Browse files Browse the repository at this point in the history
Signed-off-by: Bella Khizgiyaev <[email protected]>
  • Loading branch information
bkhizgiy committed Oct 4, 2023
1 parent ef76a87 commit 76919d9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/controller/provider/ova-setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (r *Reconciler) createPvForNfs(provider *api.Provider, ctx context.Context,

func (r *Reconciler) createPvcForNfs(provider *api.Provider, ctx context.Context, ownerReference metav1.OwnerReference, pvName, pvcName string) (err error) {
sc := ""
labels := map[string]string{"providerName": provider.Name, "app": "forklift", "subapp": "ova-server"}
labels := map[string]string{"provider": provider.Name, "app": "forklift", "subapp": "ova-server"}
pvc := &core.PersistentVolumeClaim{
ObjectMeta: metav1.ObjectMeta{
Name: pvcName,
Expand Down Expand Up @@ -137,11 +137,7 @@ func (r *Reconciler) createServerDeployment(provider *api.Provider, ctx context.
Spec: appsv1.DeploymentSpec{
Replicas: &replicas,
Selector: &metav1.LabelSelector{
MatchLabels: map[string]string{
"app": "forklift",
"provider": provider.Name,
"subapp": "ova-server",
},
MatchLabels: labels,
},
Template: core.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit 76919d9

Please sign in to comment.