Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 6 additions & 2 deletions argo-apps/hello-world.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: hello-world-prod
name: hello-world-dev
namespace: argocd
spec:
project: default
source:
targetRevision: master
targetRevision: development
repoURL: https://github.com/piyush7/workshop-hello-gitops
path: kustomize/base
destination:
server: https://kubernetes.default.svc
syncPolicy:
syncOptions:
- replace=true
- force=true
3 changes: 1 addition & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ func handler(w http.ResponseWriter, r *http.Request){
if err != nil {
log.Printf("unknown host")
}
resp := fmt.Sprintf("Hello Awesome VMware team from Piyush!",)

resp := fmt.Sprintf("Hello Anzer bhai from Piyush!",)
_, err = w.Write([]byte(resp))
if err != nil {
log.Panicf("not able to write http output: %s", err)
Expand Down
4 changes: 2 additions & 2 deletions kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: Kustomization
resources:
- deployment.yaml
- service.yaml
namespace: production
namespace: development
images:
- name: hello-gitops
newName: pkatira7/hello-gitops
newTag: 4fed1814386bf671622040fbca92b90e062e2450
newTag: 6f675b928b0a9306e10106d1d6aab30617cdcdd1