Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
fix: split up vela-system patches to be compatible with kustomize v5
Browse files Browse the repository at this point in the history
  • Loading branch information
siredmar committed May 25, 2023
1 parent 7020315 commit 83ca0d9
Show file tree
Hide file tree
Showing 90 changed files with 749 additions and 662 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
annotations:
helm.sh/hook: test-success
helm.sh/hook-delete-policy: hook-succeeded
name: helm-test-vela-app
namespace: vela-system
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
namespace: vela-system
name: cron-task
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
namespace: vela-system
name: daemon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
namespace: vela-system
name: k8s-objects
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
namespace: vela-system
name: raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
namespace: vela-system
name: ref-objects
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
namespace: vela-system
name: task
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
namespace: vela-system
name: webservice
10 changes: 10 additions & 0 deletions manifests/vela-system/delete-caps-componentdefinition-worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
namespace: vela-system
name: worker
######################################
# delete all PolicyDefinitions
######################################
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: apply-once
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: envbinding
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: garbage-collect
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: health
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: override
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: read-only
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: replication
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: shared-resource
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: take-over
10 changes: 10 additions & 0 deletions manifests/vela-system/delete-caps-policydefinition-topology.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: PolicyDefinition
metadata:
namespace: vela-system
name: topology
######################################
# delete all ScopeDefinitions
######################################
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: ScopeDefinition
metadata:
name: healthscopes.core.oam.dev
namespace: vela-system
######################################
# delete all Applications
######################################
10 changes: 10 additions & 0 deletions manifests/vela-system/delete-caps-traitdefinition-affinity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
######################################
# delete all TraitDefinitions
######################################
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: affinity
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: annotations
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: command
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: configmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: container-image
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: cpuscaler
7 changes: 7 additions & 0 deletions manifests/vela-system/delete-caps-traitdefinition-env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: env
7 changes: 7 additions & 0 deletions manifests/vela-system/delete-caps-traitdefinition-expose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: expose
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: gateway
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: hostalias
7 changes: 7 additions & 0 deletions manifests/vela-system/delete-caps-traitdefinition-hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: hpa
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: ingress-1-20
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: ingress
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: init-container
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: json-merge-patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: json-patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: k8s-update-strategy
7 changes: 7 additions & 0 deletions manifests/vela-system/delete-caps-traitdefinition-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: labels
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: lifecycle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: nocalhost
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: node-affinity
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: pure-ingress
7 changes: 7 additions & 0 deletions manifests/vela-system/delete-caps-traitdefinition-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: pvc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: resource
7 changes: 7 additions & 0 deletions manifests/vela-system/delete-caps-traitdefinition-scaler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: scaler
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: service-account
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: service-binding
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
$patch: delete
apiVersion: core.oam.dev/v1beta1
kind: TraitDefinition
metadata:
namespace: vela-system
name: sidecar
Loading

0 comments on commit 83ca0d9

Please sign in to comment.