Skip to content

Commit

Permalink
Fix CRD size by removing defaultOverride schema
Browse files Browse the repository at this point in the history
  • Loading branch information
vboulineau committed Nov 16, 2021
1 parent f8df254 commit 8ea1118
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 22,242 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/datadogagent_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1288,9 +1288,9 @@ const (
// DatadogAgentStatus defines the observed state of DatadogAgent.
// +k8s:openapi-gen=true
type DatadogAgentStatus struct {

// DefaultOverride contains attributes that were not configured that the runtime defaulted.
// +optional
// +kubebuilder:pruning:PreserveUnknownFields
DefaultOverride *DatadogAgentSpec `json:"defaultOverride,omitempty"`

// The actual state of the Agent as an extended daemonset.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
olm.skipRange: "<0.7.1"
olm.skipRange: "<0.7.2"
alm-examples: |-
[
{
Expand Down Expand Up @@ -95,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
name: datadog-operator.v0.7.2
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -783,7 +783,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
image: registry.connect.redhat.com/datadog/operator:0.7.1
image: registry.connect.redhat.com/datadog/operator:0.7.2
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand Down Expand Up @@ -872,4 +872,4 @@ spec:
maturity: alpha
provider:
name: Datadog
version: 0.7.1
version: 0.7.2
11,115 changes: 1 addition & 11,114 deletions bundle-redhat/manifests/datadoghq.com_datadogagents.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle-redhat/metadata/annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ annotations:
operators.operatorframework.io.bundle.package.v1: datadog-operator-certified
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.bundle.channel.default.v1: alpha
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.builder: operator-sdk-v1.4.0+git
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v2
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1

# Annotations for testing.
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
Expand Down
2 changes: 1 addition & 1 deletion bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=datadog-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.4.0+git
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v2
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
Expand Down
2 changes: 1 addition & 1 deletion bundle.redhat.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=datadog-operator-certified
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.4.0+git
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v2
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
Expand Down
6 changes: 3 additions & 3 deletions bundle/manifests/datadog-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,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
name: datadog-operator.v0.7.2
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -782,7 +782,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
image: gcr.io/datadoghq/operator:0.7.1
image: gcr.io/datadoghq/operator:0.7.2
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand Down Expand Up @@ -871,4 +871,4 @@ spec:
maturity: alpha
provider:
name: Datadog
version: 0.7.1
version: 0.7.2
11,115 changes: 1 addition & 11,114 deletions bundle/manifests/datadoghq.com_datadogagents.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/metadata/annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ annotations:
operators.operatorframework.io.bundle.package.v1: datadog-operator
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.bundle.channel.default.v1: alpha
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.builder: operator-sdk-v1.4.0+git
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v2
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1

# Annotations for testing.
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/v1/datadoghq.com_datadogagents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22062,6 +22062,7 @@ spec:
to. Set to 'datadoghq.eu' to send data to the EU site.
type: string
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
served: true
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ resources:
images:
- name: controller
newName: gcr.io/datadoghq/operator
newTag: 0.7.1
newTag: 0.7.2
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
2 changes: 1 addition & 1 deletion hack/patch-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ $YQ m -i -a "$ROOT_DIR/bundle/manifests/datadog-operator.clusterserviceversion.y
rm -f "$ROOT_DIR/bundle/manifests/datadog-operator-manager_v1_serviceaccount.yaml"

# Remove defaultOverride section in DatadogAgent status due to the error: "datadoghq.com_datadogagents.yaml bigger than total allowed limit"
$YQ d -i "$ROOT_DIR/bundle/manifests/datadoghq.com_datadogagents.yaml" 'spec.validation.openAPIV3Schema.properties.status.properties.defaultOverride'
$YQ d -i "$ROOT_DIR/bundle/manifests/datadoghq.com_datadogagents.yaml" 'spec.versions[*].schema.openAPIV3Schema.properties.status.properties.defaultOverride.properties'

0 comments on commit 8ea1118

Please sign in to comment.