cloudfoundry/cf-k8s-controllers

View on GitHub
controllers/config/samples/cfpackage.yaml

Summary

Maintainability
Test Coverage
---
# Defines the CFPackage for “Bits/SourceBased” packages
apiVersion: korifi.cloudfoundry.org/v1alpha1
kind: CFPackage
metadata: #korifi.cloudfoundry.org/* labels are managed by a mutating webhook
  name: ac85ad52-f52f-48e3-8c99-5e7badbe79c5
  namespace: cf
spec:
  type: bits
  appRef:
    name: 14dcda7d-1fa1-4a91-b437-fbdba20e8c5a # Enforced via a Validating Webhook to reject empty or non-valid appRefs/appGUID
  source: # keeping this source block above registry gives us flexibility to support other kpack source types: https://github.com/pivotal/kpack/blob/main/docs/image.md#source-configuration
    registry:
      image: gcr.io/cf-relint-greengrass/cf-crd-staging-spike/packages/665a78f8-ed97-47e6-85b2-60cbcc21d5e2
      imagePullSecrets:
        - name: image-registry-credentials