From 319c431292c0674ca9a217ec4c3a21373857298c Mon Sep 17 00:00:00 2001 From: "Kostis (Codefresh)" <39800303+kostis-codefresh@users.noreply.github.com> Date: Wed, 27 Jul 2022 17:58:28 +0300 Subject: [PATCH 1/3] OSS-1 Added link to Go language --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d1d5f5..f1fa470 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Codefresh, Argo CD and Argo Rollouts Demo App ## What's in the app? -A simple go app that displays a color and version. This is designed to work with Argo Rollouts for canary and blue/green progressive delivery. +A simple [go app](https://go.dev/) that displays a color and version. This is designed to work with Argo Rollouts for canary and blue/green progressive delivery. ## Deployment configuration This app is used and configured in [oss-apps](https://github.com/todaywasawesome/oss-apps) From 61298af45390529df94275cf81f5d81e28cffc01 Mon Sep 17 00:00:00 2001 From: Christian Hernandez Date: Wed, 27 Jul 2022 08:10:48 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d1d5f5..1efa014 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Codefresh, Argo CD and Argo Rollouts Demo App A simple go app that displays a color and version. This is designed to work with Argo Rollouts for canary and blue/green progressive delivery. ## Deployment configuration -This app is used and configured in [oss-apps](https://github.com/todaywasawesome/oss-apps) +This app is used and configured in [oss-apps](https://github.com/todaywasawesome/oss-apps), which is a GitOps deployment repository. ## More about Codefresh Goto https://codefresh.io to learn more about Kubernets Continuous Delivery From 4dc7cc0e6cd99be53663274f2c69b617248adae1 Mon Sep 17 00:00:00 2001 From: Dan Garfield Date: Wed, 27 Jul 2022 13:33:26 -0600 Subject: [PATCH 3/3] Create purple runtime Signed-off-by: Dan Garfield --- app.go | 4 ++-- deploy/k8s/kustomization.yaml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 deploy/k8s/kustomization.yaml diff --git a/app.go b/app.go index 8bd0b3e..e918e95 100644 --- a/app.go +++ b/app.go @@ -7,9 +7,9 @@ import ( func main() { - version := "Blue" + version := "Purple" - color := "#44B3C2" //Blue 44B3C2 and Yellow F1A94E + color := "#7433FF" //Blue 44B3C2 and Yellow F1A94E http.HandleFunc("/callme", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "
ver: %s\n
", color, version) diff --git a/deploy/k8s/kustomization.yaml b/deploy/k8s/kustomization.yaml new file mode 100644 index 0000000..011238f --- /dev/null +++ b/deploy/k8s/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- deployment.yaml +- service.yaml \ No newline at end of file