mirror of
https://github.com/hanzoai/deploy.git
synced 2026-11-02 16:00:22 +00:00
* namespace labels Signed-off-by: pashavictorovich <[email protected]> * create namespace should support annotations Signed-off-by: pashavictorovich <[email protected]> * handle also modification hook Signed-off-by: pashavictorovich <[email protected]> * regenerate entity on modify hook Signed-off-by: pashavictorovich <[email protected]> * manifests Signed-off-by: pashavictorovich <[email protected]> * feat: enable metadata to be set on namespaces This builds upon the work that @pasha-codefresh did in #10288. The main differences between this PR and the previous one is that we use SSA to diff between different versions of the namespace, as well as having a slightly different API in gitops-engine for setting the namespace modifier. We now also set the ownership of the namespace in ArgoCD. Closes #4628 Closes #6215 Closes #7799 Signed-off-by: Blake Pettersson <[email protected]> * fix: don't always track namespaces For now, only allow namespaces managed with `managedNamespaceMetadata` to have tracking set by Argo. Ideally we'd like new namespaces to also be tracked by Argo, but there's currently an issue with a failing integration test. Also wrap error message if setting the app instance errors on the namespace. Signed-off-by: Blake Pettersson <[email protected]> * fix: always return true with `hasManagedMetadata` If `hasManagedMetadata` is set, `true` should always be returned. Signed-off-by: Blake Pettersson <[email protected]> * docs: add clarifying docs on resource tracking Signed-off-by: Blake Pettersson <[email protected]> * style: pr tweaks Signed-off-by: Blake Pettersson <[email protected]> * fix: re-add label unsetting Signed-off-by: Blake Pettersson <[email protected]> * Update gitops-engine to current master Signed-off-by: Leonardo Luz Almeida <[email protected]> Signed-off-by: pashavictorovich <[email protected]> Signed-off-by: Blake Pettersson <[email protected]> Signed-off-by: Leonardo Luz Almeida <[email protected]> Co-authored-by: pashavictorovich <[email protected]> Co-authored-by: Leonardo Luz Almeida <[email protected]>
24 lines
457 B
YAML
24 lines
457 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: guestbook-ui
|
|
labels:
|
|
test: "true"
|
|
spec:
|
|
replicas: 0
|
|
revisionHistoryLimit: 3
|
|
selector:
|
|
matchLabels:
|
|
app: guestbook-ui
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: guestbook-ui
|
|
spec:
|
|
containers:
|
|
- image: quay.io/argoprojlabs/argocd-e2e-container:0.2
|
|
imagePullPolicy: IfNotPresent
|
|
name: guestbook-ui
|
|
ports:
|
|
- containerPort: 80
|