Skip to content

Commit

Permalink
breaking: update crd to v1 and remove mtp v1alpha1 (#349)
Browse files Browse the repository at this point in the history
* breaking: update crd to v1 and remove mtp v1alpha1

moves customresourcedefinition to apiVersion v1 in support of kube 1.22 and removes the old v1alpha1 version for MTP. Anyone using will the older v1alpha1 MTP will need to upgrade in order to continue using mtp.

* chore: update package deps for security vulns

* chore: avoid audit failure for dev package
  • Loading branch information
alewitt2 authored Jan 20, 2022
1 parent d1848b2 commit 6d8e78e
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 413 deletions.
49 changes: 16 additions & 33 deletions kubernetes/MustacheTemplate/resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ items:
name: razeedeploy-config
defaultMode: 400
optional: true
- apiVersion: apiextensions.k8s.io/v1beta1
- apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
Expand All @@ -86,30 +86,28 @@ items:
spec:
# group name to use for REST API: /apis/<group>/<version>
group: deploy.razee.io
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: mustachetemplates
# singular name to be used as an alias on the CLI and for display
singular: mustachetemplate
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: MustacheTemplate
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- mtp
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1alpha1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: false
schema:
# openAPIV3Schema is the schema for validating custom objects.
openAPIV3Schema:
type: object
required: [spec]
properties:
spec:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
x-kubernetes-preserve-unknown-fields: true
- name: v1alpha2
# 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
subresources:
# status enables the status subresource.
status: {}
schema:
# openAPIV3Schema is the schema for validating custom objects.
openAPIV3Schema:
Expand Down Expand Up @@ -287,18 +285,3 @@ items:
status:
type: object
x-kubernetes-preserve-unknown-fields: true
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: mustachetemplates
# singular name to be used as an alias on the CLI and for display
singular: mustachetemplate
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: MustacheTemplate
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- mtp
subresources:
# status enables the status subresource.
status: {}
Loading

0 comments on commit 6d8e78e

Please sign in to comment.