mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-30 14:56:59 +00:00
* fix: make managed namespaces more 'prune-proof' In the cases where someone would want to set resource tracking on a managed namespace, or if someone would want to migrate from having a namespace in Git to using `managedNamespaceMetadata`, we need to take steps to ensure that the namespace does not get pruned. In order to do that, we add the live namespace to the list of `targetObjs` (so that it's considered a part of the source even though it's not). Finally, we need to also ensure that the managed namespace is not considered `OutOfSync` (due to the same reason as above). This is a subset of #11350, the main difference being that this commit does not set resource tracking on its own, but can be opted into if people choose to do so. Signed-off-by: Blake Pettersson <[email protected]> * refactor: extract managed namespace check Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[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
|