Skip to content

Commit

Permalink
Deliver 0.7.1 with CRDv1 and OpenShift 4.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
vboulineau committed Oct 21, 2021
1 parent a608dc0 commit f8df254
Show file tree
Hide file tree
Showing 17 changed files with 43,311 additions and 20,369 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ bundle-push:

.PHONY: bundle-redhat-build
bundle-redhat-build:
docker build -f bundle.redhat.Dockerfile -t scan.connect.redhat.com/ospid-1125a16e-7487-49a2-93ae-f6a21920e804/operator-bundle:$(VERSION) .
docker build --no-cache -f bundle.redhat.Dockerfile -t scan.connect.redhat.com/ospid-1125a16e-7487-49a2-93ae-f6a21920e804/operator-bundle:$(VERSION) .

##@ Datadog Custom part
.PHONY: install-tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
olm.skipRange: "<0.7.1"
alm-examples: |-
[
{
Expand Down Expand Up @@ -94,7 +95,7 @@ metadata:
operators.operatorframework.io/builder: operator-sdk-v1.4.0+git
operators.operatorframework.io/project_layout: go.kubebuilder.io/v2
repository: https://github.com/DataDog/datadog-operator
name: datadog-operator.v0.7.1-rc.2
name: datadog-operator.v0.7.1
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -782,7 +783,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
image: datadog/operator:0.7.1-rc.2
image: registry.connect.redhat.com/datadog/operator:0.7.1
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand Down Expand Up @@ -871,4 +872,4 @@ spec:
maturity: alpha
provider:
name: Datadog
version: 0.7.1-rc.2
version: 0.7.1
31,194 changes: 21,339 additions & 9,855 deletions bundle-redhat/manifests/datadoghq.com_datadogagents.yaml

Large diffs are not rendered by default.

180 changes: 91 additions & 89 deletions bundle-redhat/manifests/datadoghq.com_datadogmetrics.yaml
Original file line number Diff line number Diff line change
@@ -1,109 +1,111 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: datadogmetrics.datadoghq.com
spec:
additionalPrinterColumns:
- JSONPath: .status.conditions[?(@.type=='Active')].status
name: active
type: string
- JSONPath: .status.conditions[?(@.type=='Valid')].status
name: valid
type: string
- JSONPath: .status.currentValue
name: value
type: string
- JSONPath: .status.autoscalerReferences
name: references
type: string
- JSONPath: .status.conditions[?(@.type=='Updated')].lastUpdateTime
name: update time
type: date
group: datadoghq.com
names:
kind: DatadogMetric
listKind: DatadogMetricList
plural: datadogmetrics
singular: datadogmetric
scope: Namespaced
subresources:
status: {}
validation:
openAPIV3Schema:
description: DatadogMetric allows autoscaling on arbitrary Datadog query
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:
description: DatadogMetricSpec defines the desired state of DatadogMetric
properties:
externalMetricName:
description: ExternalMetricName is reserved for internal use
type: string
maxAge:
description: MaxAge provides the max age for the metric query (overrides the default setting `external_metrics_provider.max_age`)
type: string
query:
description: Query is the raw datadog query
type: string
type: object
status:
description: DatadogMetricStatus defines the observed state of DatadogMetric
properties:
autoscalerReferences:
description: List of autoscalers currently using this DatadogMetric
type: string
conditions:
description: Conditions Represents the latest available observations of a DatadogMetric's current state.
items:
description: DatadogMetricCondition describes the state of a DatadogMetric at a certain point.
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status to another.
format: date-time
type: string
lastUpdateTime:
description: Last time the condition was updated.
format: date-time
type: string
message:
description: A human readable message indicating details about the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of DatadogMetric condition.
type: string
required:
- status
- type
type: object
type: array
currentValue:
description: Value is the latest value of the metric
type: string
required:
- currentValue
type: object
type: object
version: v1alpha1
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .status.conditions[?(@.type=='Active')].status
name: active
type: string
- jsonPath: .status.conditions[?(@.type=='Valid')].status
name: valid
type: string
- jsonPath: .status.currentValue
name: value
type: string
- jsonPath: .status.autoscalerReferences
name: references
type: string
- jsonPath: .status.conditions[?(@.type=='Updated')].lastUpdateTime
name: update time
type: date
name: v1alpha1
schema:
openAPIV3Schema:
description: DatadogMetric allows autoscaling on arbitrary Datadog query
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:
description: DatadogMetricSpec defines the desired state of DatadogMetric
properties:
externalMetricName:
description: ExternalMetricName is reserved for internal use
type: string
maxAge:
description: MaxAge provides the max age for the metric query (overrides the default setting `external_metrics_provider.max_age`)
type: string
query:
description: Query is the raw datadog query
type: string
type: object
status:
description: DatadogMetricStatus defines the observed state of DatadogMetric
properties:
autoscalerReferences:
description: List of autoscalers currently using this DatadogMetric
type: string
conditions:
description: Conditions Represents the latest available observations of a DatadogMetric's current state.
items:
description: DatadogMetricCondition describes the state of a DatadogMetric at a certain point.
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status to another.
format: date-time
type: string
lastUpdateTime:
description: Last time the condition was updated.
format: date-time
type: string
message:
description: A human readable message indicating details about the transition.
type: string
reason:
description: The reason for the condition's last transition.
type: string
status:
description: Status of the condition, one of True, False, Unknown.
type: string
type:
description: Type of DatadogMetric condition.
type: string
required:
- status
- type
type: object
type: array
x-kubernetes-list-map-keys:
- type
x-kubernetes-list-type: map
currentValue:
description: Value is the latest value of the metric
type: string
required:
- currentValue
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
Expand Down
Loading

0 comments on commit f8df254

Please sign in to comment.