apiVersion: serving.knative.dev/v1alpha1
kind: Configuration
metadata:
  name: buildpack-sample-app
  namespace: default
spec:
  build:
    source:
      git:
        url: https://github.com/cloudfoundry-samples/dotnet-core-hello-world
        revision: master
    template:
      name: buildpack
      arguments:
      - name: IMAGE
        value: DOCKER_REPO_OVERRIDE/buildpack-sample-app
    # - name: CACHE
    #   value: buildpack-sample-app-cache
    # volumes:
    # - name: buildpack-sample-app-cache
    #   persistentVolumeClaim:
    #     claimName: buildpack-sample-app-cache

  revisionTemplate:
    metadata:
      labels:
        knative.dev/type: app
    spec:
      container:
        image: DOCKER_REPO_OVERRIDE/buildpack-sample-app 
---
apiVersion: serving.knative.dev/v1alpha1
kind: Route
metadata:
  name: buildpack-sample-app
  namespace: default
spec:
  traffic:
  - configurationName: buildpack-sample-app
    percent: 100
