- We will start with launching minikube cluster.
minikube start --driver=docker
- Create a namespace for argocd
kubectl create namespace argocd
- Apply ArgoCD manifest installation file from ArgoCD github repository
minikube start --driver=docker
kubectl create namespace argocd
#!/bin/bash | |
cd $1 | |
tag_repo() { | |
git tag -a "$1" -m "$2" | |
} | |
push_tag() { | |
git ls-remote -q --exit-code $1 | |
if [[ $? == 0 ]]; then |
{ | |
"createdAt":"2022-08-21 05:32:43" | |
} |
{ | |
"createdAt":1661077840811 | |
} |
public MyJsonResponse { | |
@MyCustomDate | |
private Date createdAt; | |
} |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside; | |
import com.fasterxml.jackson.annotation.JsonFormat; | |
@JacksonAnnotationsInside | |
@Retention(RetentionPolicy.RUNTIME) | |
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss") | |
public @interface MyCustomDate {} |
const data = { username: 'example' }; | |
fetch('https://example.com/profile', { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json', | |
}, | |
body: JSON.stringify(data), | |
}) | |
.then(response => response.json()) |
fetch('http://example.com/movies.json') | |
.then(response => response.json()) | |
.then(data => console.log(data)); |