Skip to content

Instantly share code, notes, and snippets.

@vrabbi
Created May 8, 2023 08:44
Show Gist options
  • Select an option

  • Save vrabbi/d3b1f63f64c8ac10c2776f67e0b0075b to your computer and use it in GitHub Desktop.

Select an option

Save vrabbi/d3b1f63f64c8ac10c2776f67e0b0075b to your computer and use it in GitHub Desktop.
apiVersion: carto.run/v1alpha1
kind: Workload
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"carto.run/v1alpha1","kind":"Workload","metadata":{"annotations":{},"labels":{"app.kubernetes.io/part-of":"demo-01","apps.tanzu.vmware.com/auto-configure-actuators":"true","apps.tanzu.vmware.com/has-tests":"true","apps.tanzu.vmware.com/workload-type":"web"},"name":"demo-01","namespace":"workloads"},"spec":{"build":{"env":[{"name":"BP_JVM_VERSION","value":"11"}]},"env":[{"name":"JAVA_TOOL_OPTIONS","value":"-Dmanagement.server.port=8081 -Dserver.port=8081 -Dmanagement.health.probes.enabled=\"false\""}],"params":[{"name":"annotations","value":{"autoscaling.knative.dev/minScale":"1"}},{"name":"debug","value":"true"},{"name":"live-update","value":"true"},{"name":"testing_pipeline_matching_labels","value":{"apps.tanzu.vmware.com/pipeline":"acme-fitness-generic-test"}}],"source":{"git":{"ref":{"branch":"main"},"url":"https://github.com/vrabbi/java-web-app"}}}}
creationTimestamp: "2023-05-02T15:16:54Z"
generation: 2
labels:
app.kubernetes.io/part-of: demo-01
apps.tanzu.vmware.com/auto-configure-actuators: "true"
apps.tanzu.vmware.com/has-tests: "true"
apps.tanzu.vmware.com/workload-type: web
name: demo-01
namespace: workloads
resourceVersion: "125316514"
uid: 8be735cb-1b4f-42c1-9d2c-a3636b260a3b
spec:
build:
env:
- name: BP_JVM_VERSION
value: "11"
env:
- name: JAVA_TOOL_OPTIONS
value: -Dmanagement.server.port=8081 -Dserver.port=8081 -Dmanagement.health.probes.enabled="false"
params:
- name: annotations
value:
autoscaling.knative.dev/minScale: "1"
- name: debug
value: "true"
- name: live-update
value: "true"
- name: testing_pipeline_matching_labels
value:
apps.tanzu.vmware.com/pipeline: acme-fitness-generic-test
source:
git:
ref:
branch: main
url: https://github.com/vrabbi/java-web-app
status:
conditions:
- lastTransitionTime: "2023-05-02T15:16:54Z"
message: ""
reason: Ready
status: "True"
type: SupplyChainReady
- lastTransitionTime: "2023-05-08T08:43:24Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourcesSubmitted
- lastTransitionTime: "2023-05-08T08:43:34Z"
message: ""
reason: HealthyConditionRule
status: Unknown
type: ResourcesHealthy
- lastTransitionTime: "2023-05-08T08:43:34Z"
message: ""
reason: HealthyConditionRule
status: Unknown
type: Ready
observedGeneration: 2
resources:
- conditions:
- lastTransitionTime: "2023-05-02T15:17:08Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-08T08:40:59Z"
message: stored artifact for revision 'main/3574f7f9e419defdf41b018adca5f7c047049891'
reason: ReadyCondition
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-02T15:17:08Z"
message: ""
reason: Ready
status: "True"
type: Ready
name: source-provider
outputs:
- digest: sha256:849c1212964d0ee2aacabf2d0adc4b3ecb22988b61c7afd4beaab79364b226d7
lastTransitionTime: "2023-05-08T08:40:59Z"
name: url
preview: |
http://fluxcd-source-controller.flux-system.svc.cluster.local./gitrepository/workloads/demo-01/3574f7f9e419defdf41b018adca5f7c047049891.tar.gz
- digest: sha256:b7f6011d8192b6385914e9ba9b72fdc8266258c3ecc379797db6462fbd4003a0
lastTransitionTime: "2023-05-08T08:40:59Z"
name: revision
preview: |
main/3574f7f9e419defdf41b018adca5f7c047049891
stampedRef:
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
name: demo-01
namespace: workloads
resource: gitrepositories.source.toolkit.fluxcd.io
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterSourceTemplate
name: source-template
- conditions:
- lastTransitionTime: "2023-05-02T15:18:19Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-08T08:42:51Z"
message: ""
reason: ReadyCondition
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-08T08:42:51Z"
message: ""
reason: Ready
status: "True"
type: Ready
inputs:
- name: source-provider
name: source-tester
outputs:
- digest: sha256:849c1212964d0ee2aacabf2d0adc4b3ecb22988b61c7afd4beaab79364b226d7
lastTransitionTime: "2023-05-08T08:42:51Z"
name: url
preview: |
http://fluxcd-source-controller.flux-system.svc.cluster.local./gitrepository/workloads/demo-01/3574f7f9e419defdf41b018adca5f7c047049891.tar.gz
- digest: sha256:b7f6011d8192b6385914e9ba9b72fdc8266258c3ecc379797db6462fbd4003a0
lastTransitionTime: "2023-05-08T08:42:51Z"
name: revision
preview: |
main/3574f7f9e419defdf41b018adca5f7c047049891
stampedRef:
apiVersion: carto.run/v1alpha1
kind: Runnable
name: demo-01
namespace: workloads
resource: runnables.carto.run
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterSourceTemplate
name: testing-pipeline
- conditions:
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: 'condition status: True, message: Scan completed. Found 1 CVE(s): 1
Critical'
reason: MatchedCondition
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: Ready
status: "True"
type: Ready
inputs:
- name: source-tester
name: source-scanner
outputs:
- digest: sha256:849c1212964d0ee2aacabf2d0adc4b3ecb22988b61c7afd4beaab79364b226d7
lastTransitionTime: "2023-05-08T08:43:23Z"
name: url
preview: |
http://fluxcd-source-controller.flux-system.svc.cluster.local./gitrepository/workloads/demo-01/3574f7f9e419defdf41b018adca5f7c047049891.tar.gz
- digest: sha256:b7f6011d8192b6385914e9ba9b72fdc8266258c3ecc379797db6462fbd4003a0
lastTransitionTime: "2023-05-08T08:43:23Z"
name: revision
preview: |
main/3574f7f9e419defdf41b018adca5f7c047049891
stampedRef:
apiVersion: scanning.apps.tanzu.vmware.com/v1beta1
kind: SourceScan
name: demo-01
namespace: workloads
resource: sourcescans.scanning.apps.tanzu.vmware.com
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterSourceTemplate
name: source-scanner-template
- conditions:
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-08T08:43:34Z"
message: ""
reason: NoMatchesFulfilled
status: Unknown
type: Healthy
- lastTransitionTime: "2023-05-08T08:43:34Z"
message: ""
reason: NoMatchesFulfilled
status: Unknown
type: Ready
inputs:
- name: source-scanner
name: image-provider
outputs:
- digest: sha256:37ace65db983c6599cdd8838b94cadec971bf129e02b32ca8ac55428d3ed87cf
lastTransitionTime: "2023-05-02T15:20:07Z"
name: image
preview: |
harbor.vrabbi.cloud/tap/workloads/demo-01-workloads@sha256:040722d78eea53e58124453434c0a17cc6081a3e58a8dbbb05ba483e85c5c079
stampedRef:
apiVersion: kpack.io/v1alpha2
kind: Image
name: demo-01
namespace: workloads
resource: images.kpack.io
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterImageTemplate
name: kpack-template
- conditions:
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-02T15:20:53Z"
message: 'condition status: True, message: Scan completed. Found 40 CVE(s):
1 Critical, 9 High, 14 Medium, 16 Low'
reason: MatchedCondition
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: Ready
status: "True"
type: Ready
inputs:
- name: image-provider
name: image-scanner
outputs:
- digest: sha256:37ace65db983c6599cdd8838b94cadec971bf129e02b32ca8ac55428d3ed87cf
lastTransitionTime: "2023-05-02T15:20:53Z"
name: image
preview: |
harbor.vrabbi.cloud/tap/workloads/demo-01-workloads@sha256:040722d78eea53e58124453434c0a17cc6081a3e58a8dbbb05ba483e85c5c079
stampedRef:
apiVersion: scanning.apps.tanzu.vmware.com/v1beta1
kind: ImageScan
name: demo-01
namespace: workloads
resource: imagescans.scanning.apps.tanzu.vmware.com
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterImageTemplate
name: image-scanner-template
- conditions:
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-02T15:21:03Z"
message: ""
reason: ReadyCondition
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: Ready
status: "True"
type: Ready
inputs:
- name: image-scanner
name: config-provider
outputs:
- digest: sha256:d7749188d5249c627abbfa839c9d48ec18255f00bcf5fccbd9b9f725df770bff
lastTransitionTime: "2023-05-03T10:50:35Z"
name: config
preview: |-
metadata:
annotations:
apps.tanzu.vmware.com/debug: "true"
apps.tanzu.vmware.com/live-update: "true"
autoscaling.knative.dev/maxScale: "1"
autoscaling.knative.dev/minScale: "1"
boot.spring.io/actuator: http://:8081/actuator
boot.spring.io/version: 2.5.14
conventions.carto.run/applied-conventions: |-
appliveview-sample/app-live-view-appflavour-check
developer-conventions/debug-convention
developer-conventions/live-update-convention
developer-conventions/add-source-image-label
spring-boot-convention/auto-configure-actuators-check
spring-boot-convention/spring-boot
spring-boot-convention/spring-boot-graceful-shutdown
spring-boot-convention/spring-boot-web
spring-boot-convention/spring-boot-actuator
spring-boot-convention/app-live-view-appflavour-check
spring-boot-convention/app-live-view-connector-boot
spring-bo
stampedRef:
apiVersion: conventions.carto.run/v1alpha1
kind: PodIntent
name: demo-01
namespace: workloads
resource: podintents.conventions.carto.run
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterConfigTemplate
name: convention-template
- conditions:
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-02T15:21:03Z"
message: ""
reason: AlwaysHealthy
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: Ready
status: "True"
type: Ready
inputs:
- name: config-provider
name: app-config
outputs:
- digest: sha256:d8ebc9414faf1b8c23b8568d9b16eabf01ba90e2ec886a9c5f9dc0eed0b34256
lastTransitionTime: "2023-05-03T10:50:35Z"
name: config
preview: "delivery.yml: |\n apiVersion: serving.knative.dev/v1\n kind:
Service\n metadata:\n name: demo-01\n annotations:\n ootb.apps.tanzu.vmware.com/servicebinding-workload:
\"true\"\n ootb.apps.tanzu.vmware.com/apidescriptor-ref: \"true\"\n
\ kapp.k14s.io/change-rule: upsert after upserting servicebinding.io/ServiceBindings\n
\ labels:\n app.kubernetes.io/part-of: demo-01\n apps.tanzu.vmware.com/auto-configure-actuators:
\"true\"\n apps.tanzu.vmware.com/has-tests: \"true\"\n apps.tanzu.vmware.com/workload-type:
web\n app.kubernetes.io/component: run\n carto.run/workload-name:
demo-01\n spec:\n template:\n metadata:\n annotations:\n
\ apps.tanzu.vmware.com/debug: \"true\"\n apps.tanzu.vmware.com/live-update:
\"true\"\n autoscaling.knative.dev/maxScale: \"1\"\n autoscaling.knative.dev/minScale:
\"1\"\n boot.spring.io/actuator: http://:8081/actuator\n boot.spring.io/version:
2.5.14\n "
stampedRef:
apiVersion: v1
kind: ConfigMap
name: demo-01
namespace: workloads
resource: configmaps
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterConfigTemplate
name: config-template
- conditions:
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-02T15:21:03Z"
message: ""
reason: AlwaysHealthy
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: Ready
status: "True"
type: Ready
inputs:
- name: app-config
name: service-bindings
outputs:
- digest: sha256:d8ebc9414faf1b8c23b8568d9b16eabf01ba90e2ec886a9c5f9dc0eed0b34256
lastTransitionTime: "2023-05-03T10:50:35Z"
name: config
preview: "delivery.yml: |\n apiVersion: serving.knative.dev/v1\n kind:
Service\n metadata:\n name: demo-01\n annotations:\n ootb.apps.tanzu.vmware.com/servicebinding-workload:
\"true\"\n ootb.apps.tanzu.vmware.com/apidescriptor-ref: \"true\"\n
\ kapp.k14s.io/change-rule: upsert after upserting servicebinding.io/ServiceBindings\n
\ labels:\n app.kubernetes.io/part-of: demo-01\n apps.tanzu.vmware.com/auto-configure-actuators:
\"true\"\n apps.tanzu.vmware.com/has-tests: \"true\"\n apps.tanzu.vmware.com/workload-type:
web\n app.kubernetes.io/component: run\n carto.run/workload-name:
demo-01\n spec:\n template:\n metadata:\n annotations:\n
\ apps.tanzu.vmware.com/debug: \"true\"\n apps.tanzu.vmware.com/live-update:
\"true\"\n autoscaling.knative.dev/maxScale: \"1\"\n autoscaling.knative.dev/minScale:
\"1\"\n boot.spring.io/actuator: http://:8081/actuator\n boot.spring.io/version:
2.5.14\n "
stampedRef:
apiVersion: v1
kind: ConfigMap
name: demo-01-with-claims
namespace: workloads
resource: configmaps
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterConfigTemplate
name: service-bindings
- conditions:
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-02T15:21:03Z"
message: ""
reason: AlwaysHealthy
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: Ready
status: "True"
type: Ready
inputs:
- name: service-bindings
name: api-descriptors
outputs:
- digest: sha256:d8ebc9414faf1b8c23b8568d9b16eabf01ba90e2ec886a9c5f9dc0eed0b34256
lastTransitionTime: "2023-05-03T10:50:35Z"
name: config
preview: "delivery.yml: |\n apiVersion: serving.knative.dev/v1\n kind:
Service\n metadata:\n name: demo-01\n annotations:\n ootb.apps.tanzu.vmware.com/servicebinding-workload:
\"true\"\n ootb.apps.tanzu.vmware.com/apidescriptor-ref: \"true\"\n
\ kapp.k14s.io/change-rule: upsert after upserting servicebinding.io/ServiceBindings\n
\ labels:\n app.kubernetes.io/part-of: demo-01\n apps.tanzu.vmware.com/auto-configure-actuators:
\"true\"\n apps.tanzu.vmware.com/has-tests: \"true\"\n apps.tanzu.vmware.com/workload-type:
web\n app.kubernetes.io/component: run\n carto.run/workload-name:
demo-01\n spec:\n template:\n metadata:\n annotations:\n
\ apps.tanzu.vmware.com/debug: \"true\"\n apps.tanzu.vmware.com/live-update:
\"true\"\n autoscaling.knative.dev/maxScale: \"1\"\n autoscaling.knative.dev/minScale:
\"1\"\n boot.spring.io/actuator: http://:8081/actuator\n boot.spring.io/version:
2.5.14\n "
stampedRef:
apiVersion: v1
kind: ConfigMap
name: demo-01-with-api-descriptors
namespace: workloads
resource: configmaps
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterConfigTemplate
name: api-descriptors
- conditions:
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-03T10:50:56Z"
message: ""
reason: ReadyCondition
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-08T08:43:23Z"
message: ""
reason: Ready
status: "True"
type: Ready
inputs:
- name: api-descriptors
name: config-writer
stampedRef:
apiVersion: carto.run/v1alpha1
kind: Runnable
name: demo-01-config-writer
namespace: workloads
resource: runnables.carto.run
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterTemplate
name: config-writer-template
- conditions:
- lastTransitionTime: "2023-05-02T15:16:59Z"
message: ""
reason: ResourceSubmissionComplete
status: "True"
type: ResourceSubmitted
- lastTransitionTime: "2023-05-02T15:16:59Z"
message: ""
reason: AlwaysHealthy
status: "True"
type: Healthy
- lastTransitionTime: "2023-05-02T15:16:59Z"
message: ""
reason: Ready
status: "True"
type: Ready
name: deliverable
stampedRef:
apiVersion: carto.run/v1alpha1
kind: Deliverable
name: demo-01
namespace: workloads
resource: deliverables.carto.run
templateRef:
apiVersion: carto.run/v1alpha1
kind: ClusterTemplate
name: deliverable-template
supplyChainRef:
kind: ClusterSupplyChain
name: source-test-scan-to-url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment