-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump CRDs version to v1beta1 (#1782)
This commit introduces the support for the two versions v1alpha1 (0.9) and v1beta1 (the next released version: 1.0.0-beta1). The CRDs are generated using `trivialVersions` to be compatible with older k8s versions (<1.13). A go script is called after the CRDs generation to remove the podTemplate schema which is problematic. List of changes: - Copy pkg/apis/*/v1alpha1 in pkg/apis/*/v1beta1. Only differences exist for the ElasticsearchStatus (some fields have been removed since the 0.9) - Replace v1alpha1 by v1betav1 in pkg/, config/, test/ and docs/*.asciidoc - Add JSON struct tag fields to make the controller-gen happy - Add kubebuilder annotations - Restore the controller-gen target to generate the CRDs (with trivialVersions=true for now, #1823) - Add a patch-crd go script to remove the podTemplate schema (#1822) - Add the apm shortname for the APM Server
- Loading branch information
Showing
213 changed files
with
4,211 additions
and
1,585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
config/crds/elasticsearch.k8s.elastic.co_elasticsearches.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
creationTimestamp: null | ||
name: elasticsearches.elasticsearch.k8s.elastic.co | ||
spec: | ||
additionalPrinterColumns: | ||
- JSONPath: .status.health | ||
name: health | ||
type: string | ||
- JSONPath: .status.availableNodes | ||
description: Available nodes | ||
name: nodes | ||
type: integer | ||
- JSONPath: .spec.version | ||
description: Elasticsearch version | ||
name: version | ||
type: string | ||
- JSONPath: .status.phase | ||
name: phase | ||
type: string | ||
- JSONPath: .metadata.creationTimestamp | ||
name: age | ||
type: date | ||
group: elasticsearch.k8s.elastic.co | ||
names: | ||
categories: | ||
- elastic | ||
kind: Elasticsearch | ||
listKind: ElasticsearchList | ||
plural: elasticsearches | ||
shortNames: | ||
- es | ||
singular: elasticsearch | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: false | ||
- name: v1beta1 | ||
served: true | ||
storage: true | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.