Merge pull request #33 from rancher/add-bundle-diffs-example

Add example to demonstrate bundle-diffs
This commit is contained in:
Tim Hardeck
2022-09-06 17:05:50 +02:00
committed by GitHub
4 changed files with 34 additions and 0 deletions

1
bundle-diffs/README.md Normal file
View File

@@ -0,0 +1 @@
This folder contains an example to demonstrate and test [bundle-diffs](https://fleet.rancher.io/bundle-diffs/).

View File

@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
data:
test: "value"

14
bundle-diffs/fleet.yaml Normal file
View File

@@ -0,0 +1,14 @@
namespace: bundle-diffs-example
diff:
comparePatches:
- apiVersion: v1
kind: ConfigMap
name: app-config
operations:
- {"op":"remove", "path":"/data"}
- apiVersion: v1
kind: Service
name: sleeper
operations:
- {"op":"remove", "path":"/spec/ports"}

13
bundle-diffs/service.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: app-service
labels:
env: test
spec:
ports:
- port: 6380
targetPort: 6380
name: required-name
selector:
env: test