feat(example): add factorio image example
Build and Push Docker Image / Build image (push) Successful in 1m44s

This commit is contained in:
2026-06-28 19:24:51 +03:00
parent 04ad3616c9
commit 41585ab0a0
2 changed files with 28 additions and 3 deletions
@@ -302,13 +302,16 @@ func (r *ServerManagerReconciler) Reconcile(ctx context.Context, req ctrl.Reques
if err != nil {
return ctrl.Result{}, err
}
logging.Info("created browser configmap")
var foundBrowserConfigMap *corev1.ConfigMap
err = r.Get(ctx, client.ObjectKeyFromObject(browserConfigMap), foundBrowserConfigMap)
if err != nil {
err = r.Delete(ctx, browserConfigMap)
err = r.Create(ctx, browserConfigMap)
return ctrl.Result{Requeue: true}, err
}
logging.Info("verified browser config map")
browserPod := r.BrowserPod(s, pvc, browserPvc, browserConfigMap)
foundBrowser := &corev1.Pod{}
@@ -564,15 +567,13 @@ func (r *ServerManagerReconciler) BrowserConfigMap(s *servermanagerv1alpha1.Serv
return nil, err
}
var configMapData map[string]string
configMapData["config.yaml"] = string(serializedConfig)
return &corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("%s-browser-config", s.Name),
Namespace: s.Namespace,
Labels: map[string]string{"browser": s.Name},
},
Data: configMapData,
Data: map[string]string{"config.yaml": string(serializedConfig)},
}, nil
}