update sample yaml
@@ -4,9 +4,16 @@ metadata:
name: kapp-test
---
apiVersion: core.kapp.dev/v1alpha1
+kind: Application
+metadata:
+ name: kapp-test
+spec:
+ isActive: false
+---
+apiVersion: core.kapp.dev/v1alpha1
kind: Plugin
metadata:
- name: kapp-configurable-probes
+ name: configurable-probes
spec:
src: |
function addProbesForContainer(container) {
@@ -267,19 +274,26 @@ spec:
type: object
availableWorkloadType:
- server
+
---
apiVersion: core.kapp.dev/v1alpha1
-kind: Application
+kind: Component
metadata:
- name: test-configurable-plugin-sample-application
+ name: test
namespace: kapp-test
spec:
- components:
- - image: nginx:alpine
- name: nginx-double
+ image: nginx:alpine
workloadType: server
- pluginsNew:
- - name: kapp-configurable-probes
+---
+apiVersion: core.kapp.dev/v1alpha1
+kind: PluginBinding
+metadata:
+ name: test-configurable-probes
+ namespace: kapp-test
+spec:
+ pluginName: configurable-probes
+ componentName: test
+ scope: component
config:
readinessProbe:
httpGet:
@@ -299,4 +313,3 @@ spec:
periodSeconds: 5
successThreshold: 1
failureThreshold: 3
- isActive: true
