Title: Armada: Store manifest application metadata
Description: In order for armada to know about manifest applications it has completed. it must store this somewhere, likely in kubernetes ConfigMaps or CRDs.
Acceptance Criteria:
- Ability to retrieve the helm release names/versions from the last application of a manifest with a given
metadata.name
. Potentially also from previous applications, and the armada manifest/sub-documents and start/end timestamps of the applications. An actual armada API however may come in a later story.
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: releasegroups.stable.airshipit.org
spec:
# group name to use for REST API: /apis/<group>/<version>
group: stable.airshipit.org
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: releasegroups
# singular name to be used as an alias on the CLI and for display
singular: releasegroup
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: ReleaseGroup
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- rg
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: releasegroupversions.stable.airshipit.org
spec:
# group name to use for REST API: /apis/<group>/<version>
group: stable.airshipit.org
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: releasegroupversions
# singular name to be used as an alias on the CLI and for display
singular: releasegroupversion
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: ReleaseGroupVersion
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- rgv