Compare commits

..

No commits in common. "main" and "v1.0.5" have entirely different histories.
main ... v1.0.5

5 changed files with 0 additions and 90 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
.env .env
.swp .swp
k8s/prod.secret.yaml

View file

@ -1,45 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: agendas-deployment
labels:
app: agendas
spec:
replicas: 1
selector:
matchLabels:
app: agendas
template:
metadata:
labels:
app: agendas
spec:
containers:
- name: agendas
image: git.agecem.com/bottin/agendas:latest
command: ['agendas', '--config', '/etc/agendas/config.yaml']
imagePullPolicy: Always
ports:
- containerPort: 3333
volumeMounts:
- name: config-secret
mountPath: '/etc/agendas/'
readOnly: true
- name: localtime
mountPath: /etc/localtime
readOnly: true
volumes:
- name: config-secret
secret:
secretName: agendas-config-secret
items:
- key: config.yaml
path: config.yaml
- key: cert.pem
path: cert.pem
- key: key.pem
path: key.pem
- name: localtime
hostPath:
path: /etc/localtime
type: File

View file

@ -1,31 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: agendas-config-secret
type: Opaque
stringData:
config.yaml: |
Bottin:
Host: 'api.bottin.agecem.com'
Key: 'CHANGE_ME'
Port: 443
TLS:
Enabled: true
SkipVerify: false
Credentials:
'agendas': 'CHANGE_ME'
DB:
Database: 'agendas'
Host: 'db'
Password: 'CHANGE_ME'
Port: 5432
SSLMode: 'prefer'
Username: 'agendas'
TLS:
Enabled: true
Cert: '/etc/agendas/cert.pem'
Key: '/etc/agendas/key.pem'
cert.pem: |
CHANGE_ME
key.pem: |
CHANGE_ME

View file

@ -1,11 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: agendas-service
spec:
type: NodePort
selector:
app: agendas
ports:
- protocol: TCP
port: 3333

View file

@ -5,7 +5,6 @@ import (
"crypto/subtle" "crypto/subtle"
"fmt" "fmt"
"log" "log"
"net/http"
"git.agecem.com/bottin/agendas/ui" "git.agecem.com/bottin/agendas/ui"
"git.agecem.com/bottin/bottin/v10/pkg/bottin" "git.agecem.com/bottin/bottin/v10/pkg/bottin"
@ -64,7 +63,6 @@ func RunServer(ctx context.Context, cfg Config, bottinClient *bottin.APIClient,
) )
e.GET("/", UIIndex(ctx, bottinClient, dbClient)) e.GET("/", UIIndex(ctx, bottinClient, dbClient))
e.GET("/nothing/", func(c echo.Context) error { return c.NoContent(http.StatusOK) })
//e.GET("/transaction/", UIReadTransaction //e.GET("/transaction/", UIReadTransaction
e.POST("/transaction/", UICreateTransaction(ctx, cfg, bottinClient, dbClient)) e.POST("/transaction/", UICreateTransaction(ctx, cfg, bottinClient, dbClient))