Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-v1.34] Auto pick #3681: Include ECK CRDs in those managed by the operator #3697

Open
wants to merge 1 commit into
base: release-v1.34
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ define copy_crds
$(eval dir := $(1))
@cp .crds/$(dir)/libcalico-go/config/crd/* pkg/crds/$(dir)/ && echo "Copied $(dir) CRDs"
endef
define copy_eck_crds
$(eval dir := $(1))
@cp .crds/$(dir)/charts/tigera-operator/crds/eck/* pkg/crds/$(dir)/ && echo "Copied $(dir) ECK CRDs"
endef

.PHONY: read-libcalico-version read-libcalico-enterprise-version
.PHONY: update-calico-crds update-enterprise-crds
Expand Down Expand Up @@ -668,6 +672,7 @@ read-libcalico-enterprise-version:

update-enterprise-crds: fetch-enterprise-crds
$(call copy_crds,"enterprise")
$(call copy_eck_crds,"enterprise")

prepare-for-enterprise-crds:
$(call prep_local_crds,"enterprise")
Expand Down
456 changes: 456 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-agent.yaml

Large diffs are not rendered by default.

665 changes: 665 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-apmserver.yaml

Large diffs are not rendered by default.

298 changes: 298 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-autoscaling.yaml

Large diffs are not rendered by default.

307 changes: 307 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-beat.yaml

Large diffs are not rendered by default.

322 changes: 322 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-elasticmapsserver.yaml

Large diffs are not rendered by default.

1,605 changes: 1,605 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-elasticsearch.yaml

Large diffs are not rendered by default.

609 changes: 609 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-enterprisesearch.yaml

Large diffs are not rendered by default.

712 changes: 712 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-kibana.yaml

Large diffs are not rendered by default.

201 changes: 201 additions & 0 deletions pkg/crds/enterprise/01-crd-eck-stackconfigpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
# Elasticsearch operator CRDs
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.10.0
creationTimestamp: null
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '2.6.1'
name: stackconfigpolicies.stackconfigpolicy.k8s.elastic.co
spec:
group: stackconfigpolicy.k8s.elastic.co
names:
categories:
- elastic
kind: StackConfigPolicy
listKind: StackConfigPolicyList
plural: stackconfigpolicies
shortNames:
- scp
singular: stackconfigpolicy
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: Resources configured
jsonPath: .status.readyCount
name: Ready
type: string
- jsonPath: .status.phase
name: Phase
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: StackConfigPolicy represents a StackConfigPolicy resource in a Kubernetes cluster.
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
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
spec:
properties:
elasticsearch:
properties:
clusterSettings:
description: ClusterSettings holds the Elasticsearch cluster settings (/_cluster/settings)
type: object
x-kubernetes-preserve-unknown-fields: true
indexLifecyclePolicies:
description: IndexLifecyclePolicies holds the Index Lifecycle policies settings (/_ilm/policy)
type: object
x-kubernetes-preserve-unknown-fields: true
indexTemplates:
description: IndexTemplates holds the Index and Component Templates settings
properties:
componentTemplates:
description: ComponentTemplates holds the Component Templates settings (/_component_template)
type: object
x-kubernetes-preserve-unknown-fields: true
composableIndexTemplates:
description: ComposableIndexTemplates holds the Index Templates settings (/_index_template)
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
x-kubernetes-preserve-unknown-fields: true
ingestPipelines:
description: IngestPipelines holds the Ingest Pipelines settings (/_ingest/pipeline)
type: object
x-kubernetes-preserve-unknown-fields: true
securityRoleMappings:
description: SecurityRoleMappings holds the Role Mappings settings (/_security/role_mapping)
type: object
x-kubernetes-preserve-unknown-fields: true
snapshotLifecyclePolicies:
description: SnapshotLifecyclePolicies holds the Snapshot Lifecycle Policies settings (/_slm/policy)
type: object
x-kubernetes-preserve-unknown-fields: true
snapshotRepositories:
description: SnapshotRepositories holds the Snapshot Repositories settings (/_snapshot)
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
resourceSelector:
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
secureSettings:
items:
description: SecretSource defines a data source based on a Kubernetes Secret.
properties:
entries:
description: Entries define how to project each key-value pair in the secret to filesystem paths. If not defined, all keys will be projected to similarly named paths in the filesystem. If defined, only the specified keys will be projected to the corresponding paths.
items:
description: KeyToPath defines how to map a key in a Secret object to a filesystem path.
properties:
key:
description: Key is the key contained in the secret.
type: string
path:
description: Path is the relative file path to map the key to. Path must not be an absolute file path and must not contain any ".." components.
type: string
required:
- key
type: object
type: array
secretName:
description: SecretName is the name of the secret.
type: string
required:
- secretName
type: object
type: array
type: object
status:
properties:
errors:
description: Errors is the number of resources which have an incorrect configuration
type: integer
observedGeneration:
description: ObservedGeneration is the most recent generation observed for this StackConfigPolicy.
format: int64
type: integer
phase:
description: Phase is the phase of the StackConfigPolicy.
type: string
ready:
description: Ready is the number of resources successfully configured.
type: integer
readyCount:
description: ReadyCount is a human representation of the number of resources successfully configured.
type: string
resources:
description: Resources is the number of resources to be configured.
type: integer
resourcesStatuses:
additionalProperties:
description: ResourcePolicyStatus models the status of the policy for one resource to be configured.
properties:
currentVersion:
format: int64
type: integer
error:
properties:
message:
type: string
version:
format: int64
type: integer
type: object
expectedVersion:
format: int64
type: integer
phase:
type: string
type: object
description: ResourcesStatuses holds the status for each resource to be configured.
type: object
required:
- resourcesStatuses
type: object
type: object
served: true
storage: true
subresources:
status: {}