Compare commits

..

4 Commits
6.1.4 ... 6.1.5

Author SHA1 Message Date
Stefan Prodan
6b869d1a18 Merge pull request #198 from stefanprodan/go-1.18
Update Go to 1.18 and Alpine to 3.16
2022-05-24 13:06:50 +03:00
Stefan Prodan
dea973d614 Release podinfo 6.1.5
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-05-24 12:09:58 +03:00
Stefan Prodan
f4199ab8bc Update Go to 1.18 and Alpine to 3.16
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-05-24 12:09:08 +03:00
Paul Carlton
19603ddfc1 Fix panic triggering via HTTP API (#197)
Fix GET /panic

The GET /panic api call is not working due the the logger.Panic method
failing to call panic. This change replaces the logger.Panic method
call with logger.Info and adds a call to os.Exit(255).
2022-05-24 12:03:54 +03:00
17 changed files with 22 additions and 20 deletions

View File

@@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
helm-version:
- 3.8.1
- 3.9.0
runs-on: ubuntu-latest
steps:
- name: Checkout

View File

@@ -21,7 +21,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
go-version: 1.18.x
- name: Setup CUE
uses: cue-lang/setup-cue@main
- name: Run unit tests

View File

@@ -1,4 +1,4 @@
FROM golang:1.17-alpine as builder
FROM golang:1.18-alpine as builder
ARG REVISION
@@ -18,7 +18,7 @@ RUN CGO_ENABLED=0 go build -ldflags "-s -w \
-X github.com/stefanprodan/podinfo/pkg/version.REVISION=${REVISION}" \
-a -o bin/podcli cmd/podcli/*
FROM alpine:3.15
FROM alpine:3.16
ARG BUILD_DATE
ARG VERSION

View File

@@ -1,4 +1,4 @@
FROM golang:1.17
FROM golang:1.18
WORKDIR /workspace

View File

@@ -1,4 +1,4 @@
ARG GO_VERSION=1.17
ARG GO_VERSION=1.18
ARG XX_VERSION=1.1.0
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
@@ -28,7 +28,7 @@ RUN xx-go build -ldflags "-s -w \
-X github.com/stefanprodan/podinfo/pkg/version.REVISION=${REVISION}" \
-a -o bin/podcli cmd/podcli/*
FROM alpine:3.15
FROM alpine:3.16
ARG BUILD_DATE
ARG VERSION

View File

@@ -1,6 +1,6 @@
apiVersion: v1
version: 6.1.4
appVersion: 6.1.4
version: 6.1.5
appVersion: 6.1.5
name: podinfo
engine: gotpl
description: Podinfo Helm chart for Kubernetes

View File

@@ -8,7 +8,7 @@ backends: []
image:
repository: ghcr.io/stefanprodan/podinfo
tag: 6.1.4
tag: 6.1.5
pullPolicy: IfNotPresent
ui:

View File

@@ -8,7 +8,7 @@ backends: []
image:
repository: ghcr.io/stefanprodan/podinfo
tag: 6.1.4
tag: 6.1.5
pullPolicy: IfNotPresent
ui:

View File

@@ -10,7 +10,7 @@ app: podinfo.#Application & {
name: "podinfo"
namespace: "default"
}
image: tag: "6.1.4"
image: tag: "6.1.5"
resources: requests: {
cpu: "100m"
memory: "16Mi"

View File

@@ -23,7 +23,7 @@ spec:
spec:
containers:
- name: backend
image: ghcr.io/stefanprodan/podinfo:6.1.4
image: ghcr.io/stefanprodan/podinfo:6.1.5
imagePullPolicy: IfNotPresent
ports:
- name: http

View File

@@ -23,7 +23,7 @@ spec:
spec:
containers:
- name: frontend
image: ghcr.io/stefanprodan/podinfo:6.1.4
image: ghcr.io/stefanprodan/podinfo:6.1.5
imagePullPolicy: IfNotPresent
ports:
- name: http

View File

@@ -25,7 +25,7 @@ spec:
serviceAccountName: webapp
containers:
- name: backend
image: ghcr.io/stefanprodan/podinfo:6.1.4
image: ghcr.io/stefanprodan/podinfo:6.1.5
imagePullPolicy: IfNotPresent
ports:
- name: http

View File

@@ -25,7 +25,7 @@ spec:
serviceAccountName: webapp
containers:
- name: frontend
image: ghcr.io/stefanprodan/podinfo:6.1.4
image: ghcr.io/stefanprodan/podinfo:6.1.5
imagePullPolicy: IfNotPresent
ports:
- name: http

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/stefanprodan/podinfo
go 1.17
go 1.18
require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751

View File

@@ -23,7 +23,7 @@ spec:
spec:
containers:
- name: podinfod
image: ghcr.io/stefanprodan/podinfo:6.1.4
image: ghcr.io/stefanprodan/podinfo:6.1.5
imagePullPolicy: IfNotPresent
ports:
- name: http

View File

@@ -2,6 +2,7 @@ package api
import (
"net/http"
"os"
)
// Panic godoc
@@ -10,5 +11,6 @@ import (
// @Tags HTTP API
// @Router /panic [get]
func (s *Server) panicHandler(w http.ResponseWriter, r *http.Request) {
s.logger.Panic("Panic command received")
s.logger.Info("Panic command received")
os.Exit(255)
}

View File

@@ -1,4 +1,4 @@
package version
var VERSION = "6.1.4"
var VERSION = "6.1.5"
var REVISION = "unknown"