Skip to content

Commit

Permalink
fix: Disable prune on cluster resources, as there are namespaces inside
Browse files Browse the repository at this point in the history
  • Loading branch information
keskad committed Mar 22, 2022
1 parent c76a3e7 commit e4f2ed2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ kubectl-apply:

# NOTE be very careful about these 2 labels as getting them wrong can remove stuff in you cluster!
kubectl apply $(KUBECTL_APPLY_FLAGS) --prune -l=gitops.jenkins-x.io/pipeline=customresourcedefinitions -R -f $(OUTPUT_DIR)/customresourcedefinitions
kubectl apply $(KUBECTL_APPLY_FLAGS) -l=gitops.jenkins-x.io/pipeline=cluster -R -f $(OUTPUT_DIR)/cluster/namespaces
kubectl apply $(KUBECTL_APPLY_FLAGS) --prune -l=gitops.jenkins-x.io/pipeline=cluster -R -f $(OUTPUT_DIR)/cluster/resources
kubectl apply $(KUBECTL_APPLY_FLAGS) -l=gitops.jenkins-x.io/pipeline=cluster -R -f $(OUTPUT_DIR)/cluster
kubectl apply $(KUBECTL_APPLY_FLAGS) --prune -l=gitops.jenkins-x.io/pipeline=namespaces -R -f $(OUTPUT_DIR)/namespaces

# lets apply any infrastructure specific labels or annotations to enable IAM roles on ServiceAccounts etc
Expand Down

0 comments on commit e4f2ed2

Please sign in to comment.