Skip to content

Commit

Permalink
Added required fields and updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Dec 28, 2023
1 parent e78c32f commit 046afb2
Show file tree
Hide file tree
Showing 6 changed files with 250 additions and 266 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,3 @@ jobs:

- name: Build
run: make bundle-build

check-diff:
name: Check diff
runs-on: ubuntu-latest
needs: detect-noop
if: ${{ needs.detect-noop.outputs.noop != 'true' }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Generate bundle
run: make bundle

- name: Check diff
uses: mmontes11/diff-porcelain@v0.0.1
with:
message: Bundle is not up to date. Run 'make bundle' and commit the changes.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ bundle: operator-sdk kustomize sync-chart ## Generate bundle manifests and metad
$(OPERATOR_SDK) generate kustomize manifests -q
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
$(YQ) e -i '.metadata.annotations.containerImage = "$(IMG)"' config/manifests/bases/mariadb-operator.clusterserviceversion.yaml
$(YQ) e -i 'del(.metadata.annotations.createdAt)' config/manifests/bases/mariadb-operator.clusterserviceversion.yaml
$(KUSTOMIZE) build config/manifests | $(OPERATOR_SDK) generate bundle $(BUNDLE_GEN_FLAGS)
$(YQ) e -i 'del(.metadata.annotations.createdAt)' bundle/manifests/mariadb-operator.clusterserviceversion.yaml
$(OPERATOR_SDK) bundle validate ./bundle --select-optional suite=operatorframework

.PHONY: bundle-build
Expand Down
492 changes: 247 additions & 245 deletions bundle/manifests/mariadb-operator.clusterserviceversion.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
containerImage: ghcr.io/mariadb-operator/mariadb-operator-helm:0.24.0
description: Run and operate MariaDB in a cloud native way
repository: https://github.com/mariadb-operator/mariadb-operator
support: mariadb-operator
name: mariadb-operator.v0.0.0
namespace: placeholder
spec:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/mariadb_v1alpha1_backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
schedule:
cron: "*/1 * * * *"
suspend: false
maxRetentionDays: 30
maxRetention: 720h
storage:
persistentVolumeClaim:
resources:
Expand Down
2 changes: 1 addition & 1 deletion config/samples/mariadb_v1alpha1_restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
name: mariadb
backupRef:
name: backup-scheduled
fileName: backup.2023-01-02T21:35:01Z.sql
targetRecoveryTime: 2023-01-02T21:35:01Z
resources:
requests:
cpu: 100m
Expand Down

0 comments on commit 046afb2

Please sign in to comment.