fix bundle generation scripts and manifests

This commit is contained in:
Luca Burgazzoli 2023-08-24 12:32:10 +02:00
parent a481c4a9ab
commit fb3af6c55b
No known key found for this signature in database
GPG Key ID: 238C46A40510C1A9
8 changed files with 16 additions and 17 deletions

View File

@ -6,7 +6,7 @@ domain: dapr.io
layout: layout:
- go.kubebuilder.io/v4 - go.kubebuilder.io/v4
multigroup: true multigroup: true
projectName: dapr-operator-ng projectName: dapr-kubernetes-operator
repo: github.com/dapr-sandbox/dapr-kubernetes-operator repo: github.com/dapr-sandbox/dapr-kubernetes-operator
resources: resources:
- api: - api:
@ -14,8 +14,8 @@ resources:
namespaced: true namespaced: true
controller: true controller: true
domain: dapr.io domain: dapr.io
group: tools group: operator
kind: Dapr kind: DaprControlPlane
path: github.com/dapr-sandbox/dapr-kubernetes-operator/api/tools/v1alpha1 path: github.com/dapr-sandbox/dapr-kubernetes-operator/api/operator/v1alpha1
version: v1alpha1 version: v1alpha1
version: "3" version: "3"

View File

@ -22,7 +22,7 @@ limitations under the License.
package v1alpha1 package v1alpha1
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
) )

View File

@ -8,5 +8,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
images: images:
- name: controller - name: controller
newName: ttl.sh/57e2fb88-57e2-4344-8b69-4364dd4f8b9b newName: ghcr.io/dapr-sandbox/dapr-kubernetes-operator
newTag: 2h newTag: 0.0.3

View File

@ -3,11 +3,11 @@ kind: ClusterServiceVersion
metadata: metadata:
annotations: annotations:
alm-examples: "[]" alm-examples: "[]"
capabilities: Basic Install capabilities: "Basic Install"
categories: Dapr categories: "Application Runtime"
certified: "false" certified: "false"
containerImage: "" containerImage: ""
name: dapr-operator-ng.v0.0.0 name: dapr-kubernetes-operator.v0.0.0
namespace: placeholder namespace: placeholder
spec: spec:
apiservicedefinitions: {} apiservicedefinitions: {}

View File

@ -1,7 +1,7 @@
# These resources constitute the fully configured set of manifests # These resources constitute the fully configured set of manifests
# used to generate the 'manifests/' directory in a bundle. # used to generate the 'manifests/' directory in a bundle.
resources: resources:
- bases/dapr-operator-ng.clusterserviceversion.yaml - bases/dapr-kubernetes-operator.clusterserviceversion.yaml
- ../default - ../default
- ../samples - ../samples
- ../scorecard - ../scorecard

View File

@ -6,12 +6,11 @@ metadata:
labels: labels:
control-plane: dapr-control-plane control-plane: dapr-control-plane
app.kubernetes.io/name: servicemonitor app.kubernetes.io/name: servicemonitor
app.kubernetes.io/instance: dapr-controller-metrics-monitor app.kubernetes.io/instance: dapr-control-plane-metrics-monitor
app.kubernetes.io/component: metrics app.kubernetes.io/component: metrics
app.kubernetes.io/created-by: dapr-operator-ng app.kubernetes.io/part-of: dapr-control-plane
app.kubernetes.io/part-of: dapr-operator-ng
app.kubernetes.io/managed-by: kustomize app.kubernetes.io/managed-by: kustomize
name: dapr-controller-metrics-monitor name: dapr-control-plane-metrics-monitor
namespace: dapr-system namespace: dapr-system
spec: spec:
endpoints: endpoints:

View File

@ -5,7 +5,7 @@ metadata:
namespace: openshift-operators namespace: openshift-operators
spec: spec:
channel: alpha channel: alpha
name: dapr-operator-ng name: dapr-kubernetes-operator
installPlanApproval: Automatic installPlanApproval: Automatic
source: daprio-catalog source: daprio-catalog
sourceNamespace: openshift-marketplace sourceNamespace: openshift-marketplace

View File

@ -8,7 +8,7 @@ PROJECT_ROOT="$1"
BUNDLE_NAME="$2" BUNDLE_NAME="$2"
BUNDLE_VERSION="$3" BUNDLE_VERSION="$3"
rm -rf "${PROJECT_ROOT}/bundle/dapr-operator-ng" rm -rf "${PROJECT_ROOT}/bundle/${BUNDLE_NAME}"
mkdir -p "${PROJECT_ROOT}/bundle" mkdir -p "${PROJECT_ROOT}/bundle"
cd "${PROJECT_ROOT}/bundle" || exit cd "${PROJECT_ROOT}/bundle" || exit