Skip to content

Commit

Permalink
Merge pull request #23 from todaywasawesome/staging
Browse files Browse the repository at this point in the history
OSS-9 Purple Release
  • Loading branch information
todaywasawesome authored Jul 27, 2022
2 parents 0202b6e + 4dbe817 commit e00021f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Codefresh, [Argo CD](https://argo-cd.readthedocs.io/en/stable/) and Argo Rollout
<img src="https://codefresh.io/wp-content/uploads/2018/08/Fully_automated_Canary_deployments_in_Kubernetes_with_Codefresh.jpg" width="100%">

## What's in the app?
A simple go app that displays a [color](https://en.wikipedia.org/wiki/Color) and version. This is designed to work with [Argo Rollouts](https://argoproj.github.io/argo-rollouts/) for canary and blue/green progressive delivery.
A simple [go app](https://go.dev/) that displays a [color](https://en.wikipedia.org/wiki/Color) and version. This is designed to work with [Argo Rollouts](https://argoproj.github.io/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 <a href="https://codefresh.io">Kubernets Continuous Delivery</a>
Expand Down
4 changes: 2 additions & 2 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<div class='pod' style='background:%s'> ver: %s\n </div>", color, version)
Expand Down
5 changes: 5 additions & 0 deletions deploy/k8s/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml

0 comments on commit e00021f

Please sign in to comment.