Skip to content

Commit

Permalink
Merge pull request #109 from lburgazzoli/dapr-1.13
Browse files Browse the repository at this point in the history
Dapr 1.13 Operator Upgrade
  • Loading branch information
lburgazzoli authored Mar 30, 2024
2 parents 3fd7d55 + 55d09b0 commit dc96e1a
Show file tree
Hide file tree
Showing 43 changed files with 478 additions and 277 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/e2e-olm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ jobs:
strategy:
matrix:
kubernetes-version:
- "1.27.3"
- "1.28.0"
- "1.27.11"
- "1.28.7"
- "1.29.2"
steps:
- name: "Checkout"
uses: actions/checkout@v4
Expand All @@ -66,9 +67,9 @@ jobs:
go-version-file: 'go.mod'
check-latest: true
- name: 'SetUp KinD'
uses: container-tools/kind-action@v2
uses: container-tools/kind-action@v2.0.4
with:
version: "v0.20.0"
version: "v0.22.0"
kubectl_version: v${{ matrix.kubernetes-version }}
registry: false
node_image: kindest/node:v${{ matrix.kubernetes-version }}
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/e2e-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ jobs:
strategy:
matrix:
kubernetes-version:
- "1.27.3"
- "1.28.0"
- "1.27.11"
- "1.28.7"
- "1.29.2"
steps:
- name: "Checkout"
uses: actions/checkout@v4
Expand All @@ -46,9 +47,9 @@ jobs:
go-version-file: 'go.mod'
check-latest: true
- name: 'SetUp KinD'
uses: container-tools/kind-action@v2
uses: container-tools/kind-action@v2.0.4
with:
version: "v0.20.0"
version: "v0.22.0"
kubectl_version: v${{ matrix.kubernetes-version }}
registry: false
node_image: kindest/node:v${{ matrix.kubernetes-version }}
Expand All @@ -57,15 +58,8 @@ jobs:
run: |
./hack/scripts/deploy_ingress.sh
- name: "SetUp Dapr Kubernetes Operator"
run: |
make deploy/e2e
kubectl wait \
--namespace=dapr-system \
--for=condition=ready \
pod \
--selector=control-plane=dapr-control-plane \
--timeout=90s
run: |
./hack/scripts/deploy_e2e.sh
- name: "Run Dapr Kubernetes Operator e2e"
run: |
make test/e2e/operator
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.21 as builder
FROM golang:1.22 as builder

ARG TARGETOS
ARG TARGETARCH
Expand Down
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ CATALOG_VERSION ?= latest
CATALOG_CONTAINER_IMAGE ?= $(CONTAINER_REGISTRY)/$(CONTAINER_REGISTRY_ORG)/$(PROJECT_NAME)-catalog:$(CATALOG_VERSION)

LINT_GOGC ?= 10
LINT_DEADLINE ?= 10m
LINT_TIMEOUT ?= 10m

MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
PROJECT_PATH := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
LOCALBIN := $(PROJECT_PATH)/bin

HELM_CHART_REPO ?= https://dapr.github.io/helm-charts
HELM_CHART ?= dapr
HELM_CHART_VERSION ?= 1.12.0
HELM_CHART_VERSION ?= 1.13.1
HELM_CHART_URL ?= https://raw.githubusercontent.com/dapr/helm-charts/master/dapr-$(HELM_CHART_VERSION).tgz

## Tool Versions
CODEGEN_VERSION ?= v0.28.3
KUSTOMIZE_VERSION ?= v5.2.1
CONTROLLER_TOOLS_VERSION ?= v0.13.0
KIND_VERSION ?= v0.20.0
LINTER_VERSION ?= v1.55.1
OPERATOR_SDK_VERSION ?= v1.32.0
OPM_VERSION ?= v1.30.1
CODEGEN_VERSION ?= v0.28.8
KUSTOMIZE_VERSION ?= v5.3.0
CONTROLLER_TOOLS_VERSION ?= v0.14.0
KIND_VERSION ?= v0.22.0
LINTER_VERSION ?= v1.57.2
OPERATOR_SDK_VERSION ?= v1.34.1
OPM_VERSION ?= v1.38.0
GOVULNCHECK_VERSION ?= latest

## Tool Binaries
Expand Down Expand Up @@ -164,17 +164,17 @@ check/lint: golangci-lint
@$(LINTER) run \
--config .golangci.yml \
--out-format tab \
--skip-dirs etc \
--deadline $(LINT_DEADLINE) \
--exclude-dirs etc \
--timeout $(LINT_TIMEOUT) \
--verbose

.PHONY: check/lint/fix
check/lint/fix: golangci-lint
@$(LINTER) run \
--config .golangci.yml \
--out-format tab \
--skip-dirs etc \
--deadline $(LINT_DEADLINE) \
--exclude-dirs etc \
--timeout $(LINT_TIMEOUT) \
--fix

.PHONY: check/vuln
Expand Down
84 changes: 45 additions & 39 deletions config/crd/bases/operator.dapr.io_daprcontrolplanes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
controller-gen.kubebuilder.io/version: v0.14.0
name: daprcontrolplanes.operator.dapr.io
spec:
group: operator.dapr.io
Expand Down Expand Up @@ -47,23 +47,28 @@ spec:
openAPIV3Schema:
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'
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'
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:
values:
description: 'JSON represents any valid JSON value. These types are
supported: bool, int64, float64, string, []interface{}, map[string]interface{}
and nil.'
description: |-
JSON represents any valid JSON value.
These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.
x-kubernetes-preserve-unknown-fields: true
type: object
status:
Expand All @@ -80,42 +85,42 @@ spec:
conditions:
items:
description: "Condition contains details for one aspect of the current
state of this API Resource. --- This struct is intended for direct
use as an array at the field path .status.conditions. For example,
\n type FooStatus struct{ // Represents the observations of a
foo's current state. // Known .status.conditions.type are: \"Available\",
\"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge
// +listType=map // +listMapKey=type Conditions []metav1.Condition
`json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\"
protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
properties:
lastTransitionTime:
description: lastTransitionTime is the last time the condition
transitioned from one status to another. This should be when
the underlying condition changed. If that is not known, then
using the time when the API field changed is acceptable.
description: |-
lastTransitionTime is the last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
format: date-time
type: string
message:
description: message is a human readable message indicating
details about the transition. This may be an empty string.
description: |-
message is a human readable message indicating details about the transition.
This may be an empty string.
maxLength: 32768
type: string
observedGeneration:
description: observedGeneration represents the .metadata.generation
that the condition was set based upon. For instance, if .metadata.generation
is currently 12, but the .status.conditions[x].observedGeneration
is 9, the condition is out of date with respect to the current
state of the instance.
description: |-
observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
format: int64
minimum: 0
type: integer
reason:
description: reason contains a programmatic identifier indicating
the reason for the condition's last transition. Producers
of specific condition types may define expected values and
meanings for this field, and whether the values are considered
a guaranteed API. The value should be a CamelCase string.
description: |-
reason contains a programmatic identifier indicating the reason for the condition's last transition.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
maxLength: 1024
minLength: 1
Expand All @@ -129,11 +134,12 @@ spec:
- Unknown
type: string
type:
description: type of condition in CamelCase or in foo.example.com/CamelCase.
--- Many .condition.type values are consistent across resources
like Available, but because arbitrary conditions can be useful
(see .node.status.conditions), the ability to deconflict is
important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
Expand Down
Loading

0 comments on commit dc96e1a

Please sign in to comment.