Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add deploy examples #3

Merged
merged 11 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 188 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
.idea

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Linux template
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### Go template
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work

### Windows template
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

### macOS template
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

bin/
testbin/
20 changes: 20 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MD007:
indent: 4
start_indented: false

MD013:
line_length: 200
heading_line_length: 80
code_block_line_length: 200
code_blocks: true
tables: true
headings: true
headers: true
strict: false
stern: false

MD012:
maximum: 20

MD046: false
MD051: false
3 changes: 3 additions & 0 deletions examples/alluxio/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# alluxio

TODO
15 changes: 15 additions & 0 deletions examples/commons/catalog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: kds-catalog
namespace: olm
spec:
sourceType: grpc
grpcPodConfig:
securityContextConfig: restricted
image: quay.io/zncdatadev/catalog:latest
displayName: kds catalog
publisher: zncdata-labs
updateStrategy:
registryPoll:
interval: 5m
70 changes: 70 additions & 0 deletions examples/commons/cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
apiVersion: zncdata.dev/v1alpha1
kind: Database
metadata:
labels:
app.kubernetes.io/name: database
app.kubernetes.io/instance: database-sample
app.kubernetes.io/part-of: commons-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: commons-operator
name: database-sample
spec:
databaseName: znc_prod
reference: databaseconnection-sample
credential:
existingSecret: database-sample-pg-user-1
---
apiVersion: zncdata.dev/v1alpha1
kind: DatabaseConnection
metadata:
labels:
app.kubernetes.io/name: databaseconnection
app.kubernetes.io/instance: databaseconnection-sample
app.kubernetes.io/part-of: commons-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: commons-operator
name: databaseconnection-sample
spec:
provider:
postgres:
driver: org.postgresql.Driver
host: postgresql
port: 5432
ssl: false
credential:
existingSecret: databaseconnect-sample-pg-root-1
---
apiVersion: zncdata.dev/v1alpha1
kind: S3Bucket
metadata:
labels:
app.kubernetes.io/name: s3bucket
app.kubernetes.io/instance: s3bucket-sample
app.kubernetes.io/part-of: commons-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: commons-operator
name: s3bucket-sample
spec:
bucketName: znc-warehouse
reference: s3connection-sample
credential:
existSecret: s3bucket-sample-user-1
---
apiVersion: zncdata.dev/v1alpha1
kind: S3Connection
metadata:
labels:
app.kubernetes.io/name: s3connection
app.kubernetes.io/instance: s3connection-sample
app.kubernetes.io/part-of: commons-operator
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: commons-operator
name: s3connection-sample
spec:
endpoint: http://minio:9000
region: us-east-1
ssl: false
pathStyle: true
credential:
existSecret: s3connection-sample-root-1

9 changes: 9 additions & 0 deletions examples/commons/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: kubedatastack-operators
---
apiVersion: v1
kind: Namespace
metadata:
name: kubedatastack
8 changes: 8 additions & 0 deletions examples/commons/operator-group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: OperatorGroup
apiVersion: operators.coreos.com/v1
metadata:
name: kubedatastack
namespace: kubedatastack-operators
spec:
targetNamespaces:
- kubedatastack
11 changes: 11 additions & 0 deletions examples/commons/subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: commons-sub
namespace: kubedatastack-operators
spec:
channel: stable
name: commons-operator
source: kds-catalog
sourceNamespace: olm
installPlanApproval: Automated
15 changes: 15 additions & 0 deletions examples/dolphinscheduler/catalog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: kds-catalog
namespace: olm
spec:
sourceType: grpc
grpcPodConfig:
securityContextConfig: restricted
image: quay.io/zncdatadev/catalog:latest
displayName: kds catalog
publisher: zncdata-labs
updateStrategy:
registryPoll:
interval: 5m
Loading
Loading