feat(example): add factorio image example
Build and Push Docker Image / Build image (push) Successful in 1m46s
Build and Push Docker Image / Build image (push) Successful in 1m46s
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
apiVersion: server-manager.acooldomain.co/v1alpha1
|
||||
kind: Image
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: kubernetes-operator
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: minecraft-paper-1-21-5
|
||||
spec:
|
||||
location: git.acooldomain.co/server-manager/minecraft:paper-1.21.5
|
||||
name: minecraft
|
||||
tag: paper-1.21.5
|
||||
working_dir: /opt/server
|
||||
ports:
|
||||
- port: 25565
|
||||
protocol: TCP
|
||||
|
||||
init_script:
|
||||
image: alpine:latest
|
||||
command:
|
||||
- /bin/sh
|
||||
args:
|
||||
- /bin/sh
|
||||
- "-c"
|
||||
- "echo eula=true >> /data/eula.txt"
|
||||
@@ -564,15 +564,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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user