Skip to content
Merged
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
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ kubectl get secret ${CRYOSTAT_NAME}-jmx-auth -o jsonpath='{$.data.CRYOSTAT_RJMX_
kubectl get secret ${CRYOSTAT_NAME}-jmx-auth -o jsonpath='{$.data.CRYOSTAT_RJMX_PASS}' | base64 -d
```

## Kubernetes API
The operator provides a Kubernetes API to directly create and manage Flight Recordings.
See [Kubernetes API Overview](docs/api.md) for more details.

# Building
## Requirements
- `go` v1.15
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ metadata:
}
}
operators.operatorframework.io/builder: operator-sdk-v1.4.0+git
operators.operatorframework.io/internal-objects: '["flightrecorders.operator.cryostat.io","recordings.operator.cryostat.io"]'
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: github.com/cryostatio/cryostat-operator
support: Cryostat Community
Expand Down
4 changes: 3 additions & 1 deletion bundle/manifests/operator.cryostat.io_flightrecorders.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ spec:
singular: flightrecorder
scope: Namespaced
versions:
- name: v1beta1
- deprecated: true
deprecationWarning: operator.cryostat.io/v1beta1 FlightRecorder is deprecated; please use the Cryostat web application or the Cryostat HTTP API to manage recordings
name: v1beta1
schema:
openAPIV3Schema:
description: FlightRecorder represents a target Pod that is capable of creating JDK Flight Recordings using Cryostat. The Cryostat operator creates FlightRecorder objects when it finds compatible Pods.
Expand Down
4 changes: 3 additions & 1 deletion bundle/manifests/operator.cryostat.io_recordings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ spec:
singular: recording
scope: Namespaced
versions:
- name: v1beta1
- deprecated: true
deprecationWarning: operator.cryostat.io/v1beta1 Recording is deprecated; please use the Cryostat web application or the Cryostat HTTP API to manage recordings
name: v1beta1
schema:
openAPIV3Schema:
description: Recording represents a JDK Flight Recording. Create a Recording object to instruct Cryostat to start a new recording for a Pod. An alternative to managing recordings with the Cryostat web application.
Expand Down
15 changes: 15 additions & 0 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ patchesStrategicMerge:
#- patches/cainjection_in_flightrecorders.yaml
# +kubebuilder:scaffold:crdkustomizecainjectionpatch

# FIXME Remove once migrated to kubebuilder markers
patches:
- path: patches/deprecate_flightrecorders.yaml
target:
group: apiextensions.k8s.io
version: v1
kind: CustomResourceDefinition
name: flightrecorders.operator.cryostat.io
- path: patches/deprecate_recordings.yaml
target:
group: apiextensions.k8s.io
version: v1
kind: CustomResourceDefinition
name: recordings.operator.cryostat.io

# the following config is for teaching kustomize how to do kustomization for CRDs.
configurations:
- kustomizeconfig.yaml
8 changes: 8 additions & 0 deletions config/crd/patches/deprecate_flightrecorders.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# FIXME this can be done using kubebuilder markers
# after upgrading Operator SDK to 1.10+
- op: add
path: /spec/versions/0/deprecated
value: true
- op: add
path: /spec/versions/0/deprecationWarning
value: "operator.cryostat.io/v1beta1 FlightRecorder is deprecated; please use the Cryostat web application or the Cryostat HTTP API to manage recordings"
8 changes: 8 additions & 0 deletions config/crd/patches/deprecate_recordings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# FIXME this can be done using kubebuilder markers
# after upgrading Operator SDK to 1.10+
- op: add
path: /spec/versions/0/deprecated
value: true
- op: add
path: /spec/versions/0/deprecationWarning
value: "operator.cryostat.io/v1beta1 Recording is deprecated; please use the Cryostat web application or the Cryostat HTTP API to manage recordings"
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ metadata:
}
}
operators.operatorframework.io/builder: operator-sdk-v1.5.0
operators.operatorframework.io/internal-objects: '["flightrecorders.operator.cryostat.io","recordings.operator.cryostat.io"]'
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: github.com/cryostatio/cryostat-operator
support: Cryostat Community
Expand Down
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kubernetes API Overview
# (Deprecated) Kubernetes API Overview

This operator provides a Kubernetes API to interact with [Cryostat](https://github.com/cryostatio/cryostat).
This API comes in the form of the `FlightRecorders` and `Recordings` Custom Resource Definitions, and allows you to create, list, delete, and download recordings from a Kubernetes cluster.
Expand Down