airshipctl/manifests/function/airshipctl-schemas/airshipit.org_phaseplans.yaml
Matthew Fuller 52c5aedc63 Generate additional CRDs from API types
'make manifests' attempts to generate all airshipctl API types,
but several types throw errors and the resulting CRDs can't be
properly generated. This change:

- updates the controller-gen version to pull in a bug fix for the
  error 'map values must be a named type, not *ast.StarExpr'
- modifies the Templater type's Values member to be of type JSON
  since controller-gen does not support map[string]interface{},
  and unmarshals it separately in the templater itself
- adds 'image_repositories' to the VersionsCatalogueSpec struct
  to ensure it doesn't get deleted from the schema when manifests
  get regenerated
- checks in generated copies of all CRDs from airshipctl's API
  types, not just catalogues, to be used for validation

Closes: #574
Change-Id: I89a12cfd307a08da9aaec9773eac01169ea43ace
2021-06-25 19:10:25 +00:00

92 lines
3.2 KiB
YAML

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.6.1
creationTimestamp: null
name: phaseplans.airshipit.org
spec:
group: airshipit.org
names:
kind: PhasePlan
listKind: PhasePlanList
plural: phaseplans
singular: phaseplan
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: PhasePlan object represents phase execution sequence
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
description:
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
phases:
items:
description: PhaseStep represents phase (or step) within a phase plan
properties:
name:
type: string
namespace:
type: string
type: object
type: array
validation:
description: ValidationConfig represents configuration needed for static
validation
properties:
crdList:
description: CRDList defines list of kustomize entrypoints located
in "TARGET_PATH" where to find additional CRD
items:
type: string
type: array
ignoreMissingSchemas:
description: IgnoreMissingSchemas skips validation for resource definitions
without a schema.
type: boolean
kindsToSkip:
description: KindsToSkip defines Kinds which will be skipped during
validation
items:
type: string
type: array
kubernetesVersion:
description: KubernetesVersion is the version of Kubernetes to validate
against (default "1.18.6").
type: string
schemaLocation:
description: SchemaLocation is the base URL from which to search for
schemas. It can be either a remote location or a local directory
type: string
strict:
description: Strict disallows additional properties not in schema
if set
type: boolean
type: object
required:
- validation
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []