Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime server by net/http & gin #1

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
798c5e0
feat: setup file structure
dohaelsawy Sep 15, 2024
b0fe3c1
refactor: add cmd & moved docker files to cmd
dohaelsawy Sep 15, 2024
f0e0798
feat: basic implamentation to http datetime
dohaelsawy Sep 15, 2024
627a34b
feat: basic implamentation to gin datetime
dohaelsawy Sep 15, 2024
464dd1b
feat: Implement graceful shutdown for net/http server
dohaelsawy Sep 15, 2024
60cece5
refactor: shutdown function in pkg for both servers
dohaelsawy Sep 15, 2024
c21d3b9
feat: add make file no docker yet
dohaelsawy Sep 15, 2024
1d43545
feat: add tests for both servers
dohaelsawy Sep 15, 2024
dac9692
feat: add tests for both servers
dohaelsawy Sep 15, 2024
d3873eb
inital README.md
dohaelsawy Sep 15, 2024
9b337d9
feat: change make settings and dockerfiles location
dohaelsawy Sep 15, 2024
72efe49
feat: add code docs
dohaelsawy Sep 15, 2024
c3ff0e0
fix: docker files commands with correct ones
dohaelsawy Sep 16, 2024
e0a83d8
feat: add docker-compose successfully
dohaelsawy Sep 16, 2024
a9c6320
feat: add multi-stage docker image for reduce size
dohaelsawy Sep 16, 2024
a67b791
fix: remove app test directory
dohaelsawy Sep 16, 2024
770df38
feat: add cli for building project
dohaelsawy Sep 16, 2024
d9bd6c5
Update README.md
dohaelsawy Sep 16, 2024
6394c9f
refactor: change DateTime to DateTImeHandler
dohaelsawy Sep 17, 2024
b472168
Update README.md
dohaelsawy Sep 18, 2024
3633f14
refactor: change code doc and remove testDir
dohaelsawy Sep 19, 2024
01829ab
refactor: replace assert package at testing
dohaelsawy Sep 19, 2024
bf33fa4
refactor: apply gofmt
dohaelsawy Sep 19, 2024
2c50995
refactor: change workflow build
dohaelsawy Sep 19, 2024
fbb7085
refactor: modify workflow build
dohaelsawy Sep 19, 2024
e8ef447
refactor: change make linter to lint
dohaelsawy Oct 1, 2024
a4c78e8
feat: add kubernetes pods and services for erach server
dohaelsawy Oct 1, 2024
72eff3e
feat: add ingress and namespace for kubernetes
dohaelsawy Oct 1, 2024
dffe780
refactor: change names and ingress configurations
dohaelsawy Oct 2, 2024
5464136
refactor: change service name in ingress file
dohaelsawy Oct 2, 2024
833abcd
fix: valid version of ingress for each servers
dohaelsawy Oct 2, 2024
7e43089
feat: add charts structure
dohaelsawy Oct 2, 2024
e451a53
refactor: make a chart for each server
dohaelsawy Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go
on:
push:
paths-ignore:
- 'README.md'



jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: golangci-lint
uses: golangci/golangci-lint-action@v6

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: Test with the Go CLI
run: go test -v ./...

21 changes: 21 additions & 0 deletions Dockerfile.gin
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang:1.21-alpine AS build

WORKDIR /app

COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN go build -o ./gin ./cmd/gin/main.go

FROM scratch

WORKDIR /app

COPY --from=build /app/gin ./gin

EXPOSE 8080

CMD ["./gin"]
21 changes: 21 additions & 0 deletions Dockerfile.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang:1.21-alpine AS build

WORKDIR /app

COPY go.mod go.sum ./

RUN go mod download

COPY . .

RUN go build -o ./http ./cmd/net-http/main.go

FROM scratch

WORKDIR /app

COPY --from=build /app/http ./http

EXPOSE 8090

CMD ["./http"]
29 changes: 29 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
lint:
golangci-lint run ./...

build:
go build -o ./http ./cmd/gin/main.go
go build -o ./gin ./cmd/net-http/main.go

format:
gofmt -w .


test:
go test -v ./...


build-gin-image:
docker build . -f Dockerfile.gin -t doha/gin

build-http-image:
docker build . -f Dockerfile.http -t doha/http

build-gin-container:
docker run -p 8080:8080 --name gincontainer doha/gin

build-http-container:
docker run -p 8090:8090 --name httpcontainer2 doha/http



47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,47 @@
# Datetime-Server-Doha
# Date Server
Create a basic HTTP server that returns the current date and time.

## Implementation
- standards net/http package
- gin framework


## Installation
- 1. Get Package
```golang
git get https://github.com/codescalersinternships/Datetime-Server-Doha.git
```
- 2. Run server by 2 ways :
- docker compose
- makefile commands

### Docker-compose
```golang
docker-compose up // to build the docker image/containers
docker-compose down // to stop the image/container
```
### Makefile
- you can build binaries directly
```golang
make build // will build binary files for the servers
./http // will run server implemented uding http
./gin // will run server implemented using gin framework
```
- build images of docker then containers
``` golang
make build-gin-image // build gin server image
build-gin-container // build gin server container

build-http-image // build http server image
build-http-container // build http server container
```
## test
- to run all tests
```golang
go test v ./...
```
## format
- format all files inside project
```golang
gofmt -w .
```
36 changes: 36 additions & 0 deletions cmd/gin/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package main

import (
"log"
"net/http"

serverGin "github.com/codescalersinternships/Datetime-Server-Doha/server/gin"
serverShuts "github.com/codescalersinternships/Datetime-Server-Doha/server/shutdown"
"github.com/gin-gonic/gin"
)

// setupHandler setup gin engin and call datetime handeler
func setupHandler() *gin.Engine {
router := gin.Default()

router.GET("/datetime", serverGin.DateTimeHandler)

return router
}

func main() {
server := http.Server{
Addr: ":8080",
Handler: setupHandler(),
}

go func() {
log.Printf("Server listening on %s\n", server.Addr)
if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed {
log.Fatalf("listen: %s\n", err)
}
}()

serverShuts.ShutDown(&server)

}
25 changes: 25 additions & 0 deletions cmd/net-http/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package main

import (
"log"
"net/http"

serverHttp "github.com/codescalersinternships/Datetime-Server-Doha/server/net-http"
serverShuts "github.com/codescalersinternships/Datetime-Server-Doha/server/shutdown"
)

func main() {
server := http.Server{
Addr: ":8090",
Handler: http.HandlerFunc(serverHttp.DateTimeHandler),
}

go func() {
log.Printf("Server listening on %s\n", server.Addr)
if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed {
log.Fatalf("listen: %s\n", err)
}
}()

serverShuts.ShutDown(&server)
}
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
gin:
build:
context: .
dockerfile: Dockerfile.gin
ports:
- "8080:8080"

http:
build:
context: .
dockerfile: Dockerfile.http
ports:
- "8090:8090"
34 changes: 34 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module github.com/codescalersinternships/Datetime-Server-Doha

go 1.21

require github.com/gin-gonic/gin v1.10.0

require (
github.com/bytedance/sonic v1.11.6 // indirect
github.com/bytedance/sonic/loader v0.1.1 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.20.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
golang.org/x/arch v0.8.0 // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
89 changes: 89 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
github.com/bytedance/sonic v1.11.6 h1:oUp34TzMlL+OY1OUWxHqsdkgC/Zfc85zGqw9siXjrc0=
github.com/bytedance/sonic v1.11.6/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4=
github.com/bytedance/sonic/loader v0.1.1 h1:c+e5Pt1k/cy5wMveRDyk2X4B9hF4g7an8N3zCYjJFNM=
github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/0Y=
github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w=
github.com/cloudwego/iasm v0.2.0 h1:1KNIy1I1H9hNNFEEH3DVnI4UujN+1zjpuk6gwHLTssg=
github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
github.com/gin-gonic/gin v1.10.0 h1:nTuyha1TYqgedzytsKYqna+DfLos46nTv2ygFy86HFU=
github.com/gin-gonic/gin v1.10.0/go.mod h1:4PMNQiOhvDRa013RKVbsiNwoyezlm2rm0uX/T7kzp5Y=
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
github.com/go-playground/validator/v10 v10.20.0 h1:K9ISHbSaI0lyB2eWMPJo+kOS/FBExVwjEviJTixqxL8=
github.com/go-playground/validator/v10 v10.20.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM=
github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/arch v0.8.0 h1:3wRIsP3pM4yUptoR96otTUOXI367OS0+c9eeRi9doIc=
golang.org/x/arch v0.8.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac=
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
19 changes: 19 additions & 0 deletions kubernetes/cluster-kubeconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJkakNDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUzTWpjMk5EWTVOVFF3SGhjTk1qUXdPVEk1TWpFMU5UVTBXaGNOTXpRd09USTNNakUxTlRVMApXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUzTWpjMk5EWTVOVFF3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFTbzVXYUd3N1RjV1ZEYVBHbEd4SmpiMGJQNDZhTGJvelVzRHJmKytOUG8KbGFlYVhWWDFnS1Z6eGxTeEhPWk9LQ2V4aHpWTWdaZzJXK0hlRm9TR05UTkZvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVTUwQmp3RldDU2t4TjFiNTFTMDdpCjYxaDFyN3N3Q2dZSUtvWkl6ajBFQXdJRFJ3QXdSQUlnQ1d1L2hNNlhlVTlwdXlVWVZ4MklQVWdwTEZoZkpmZWUKakl1Mk9hZ3VSSTRDSUJhbVFFRytOSUQyckJZR2MzWWt2ZE1tTGJuOS93WGNZaHdCTUxHVW9NeTkKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
server: https://185.206.122.17:6443
name: default
contexts:
- context:
cluster: default
user: default
name: default
current-context: default
kind: Config
preferences: {}
users:
- name: default
user:
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJrakNDQVRlZ0F3SUJBZ0lJQ2luVUk4eHRHeDB3Q2dZSUtvWkl6ajBFQXdJd0l6RWhNQjhHQTFVRUF3d1kKYXpOekxXTnNhV1Z1ZEMxallVQXhOekkzTmpRMk9UVTBNQjRYRFRJME1Ea3lPVEl4TlRVMU5Gb1hEVEkxTURreQpPVEl4TlRVMU5Gb3dNREVYTUJVR0ExVUVDaE1PYzNsemRHVnRPbTFoYzNSbGNuTXhGVEFUQmdOVkJBTVRESE41CmMzUmxiVHBoWkcxcGJqQlpNQk1HQnlxR1NNNDlBZ0VHQ0NxR1NNNDlBd0VIQTBJQUJFRWdQV3JhYjNFUkx0YVQKRkJZRDYxNW1FR0JwSVMyTFNmK0t5WnZCZS9Qc25vaDNrVk1sbFVmcGJKUWw4MjJxZk9COXllejFZZDkvT0JzUwpkVjFzNldlalNEQkdNQTRHQTFVZER3RUIvd1FFQXdJRm9EQVRCZ05WSFNVRUREQUtCZ2dyQmdFRkJRY0RBakFmCkJnTlZIU01FR0RBV2dCUkJiS2JqQUJsVEJ0RnRrWmNSOHEwSjYxZklHekFLQmdncWhrak9QUVFEQWdOSkFEQkcKQWlFQW9pQXEwMGhOU2FrbFNjZURkYlF3eTZ4QktWRTgxTVFCZnNXazFoTmZ1YXNDSVFEUFhoNXlhYmZadkxDdgpTdm83NGNWb0k0bW5IMmgzODdVRWtDREE0OTNwUWc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCi0tLS0tQkVHSU4gQ0VSVElGSUNBVEUtLS0tLQpNSUlCZGpDQ0FSMmdBd0lCQWdJQkFEQUtCZ2dxaGtqT1BRUURBakFqTVNFd0h3WURWUVFEREJock0zTXRZMnhwClpXNTBMV05oUURFM01qYzJORFk1TlRRd0hoY05NalF3T1RJNU1qRTFOVFUwV2hjTk16UXdPVEkzTWpFMU5UVTAKV2pBak1TRXdId1lEVlFRRERCaHJNM010WTJ4cFpXNTBMV05oUURFM01qYzJORFk1TlRRd1dUQVRCZ2NxaGtqTwpQUUlCQmdncWhrak9QUU1CQndOQ0FBUVRiSGFZQ29KQUtjSldVVDRxK2lEdklQRDYyQ09UbWp0akpmNmJhc0dFCnV0ek5Mb0JHNXNLdjNjUVRZVEJVRHNaanl5aytYSVZ3T2ZJNXA3MVpGRVdpbzBJd1FEQU9CZ05WSFE4QkFmOEUKQkFNQ0FxUXdEd1lEVlIwVEFRSC9CQVV3QXdFQi96QWRCZ05WSFE0RUZnUVVRV3ltNHdBWlV3YlJiWkdYRWZLdApDZXRYeUJzd0NnWUlLb1pJemowRUF3SURSd0F3UkFJZ0xJcHN4RU5wcHV0VllvTWZoUzd4MTBCQWk0ckRoS0tHCi81R056bjFEZmtzQ0lDY3M2NFZrYVVTZWFlVGVDUmowSm9lSjVOc0lSY3ZROHh4YVJsaXNTSkdSCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
client-key-data: LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSU1RaExBMlgwcVRzdXI2WjJ5T1FzS3dlR1lHdERWMWx4SlErVlZYZjhYRzVvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFUVNBOWF0cHZjUkV1MXBNVUZnUHJYbVlRWUdraExZdEovNHJKbThGNzgreWVpSGVSVXlXVgpSK2xzbENYemJhcDg0SDNKN1BWaDMzODRHeEoxWFd6cFp3PT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo=
Loading