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

Add rollups.cartesi.io/Applications CRD #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions charts/applications-crd/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
11 changes: 11 additions & 0 deletions charts/applications-crd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v2
name: cartesi-applications-crd
description: A Helm chart for Cartesi Application Custom Resource Definitions (CRDs)
maintainers:
- name: endersonmaia
email: [email protected]
url: https://github.com/endersonmaia
type: application
version: 0.1.0
sources:
- https://github.com/cartesi/helm-charts/
1 change: 1 addition & 0 deletions charts/applications-crd/ci/test-values.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{- /* empty file */}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: applications.rollups.cartesi.io
spec:
group: rollups.cartesi.io
names:
kind: Application
listKind: ApplicationList
plural: applications
singular: application
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Application is the Schema for the applications API
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"
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"
type: string
status:
description: Status defines the observed state of Application
type: object
metadata:
type: object
spec:
description: Spec defines the desired state of Application
type: object
properties:
address:
description: Address of the application
type: string
pattern: '^0x([a-zA-Z0-9]){40}$'
x-kubernetes-validations:
- rule: "self != oldSelf"
message: "cannot change address"
blockHash:
description: Block hash of the block which deployed the application
type: string
pattern: '^0x([a-zA-Z0-9]){64}$'
x-kubernetes-validations:
- rule: "self != oldSelf"
message: "cannot change blockHash"
blockNumber:
description: Block number of the block which deployed the application
type: string
x-kubernetes-validations:
- rule: "self != oldSelf"
message: "cannot change blockNumber"
transactionHash:
description: Transaction hash of the transaction which deployed the application
type: string
pattern: '^0x([a-zA-Z0-9]){64}$'
x-kubernetes-validations:
- rule: "self != oldSelf"
message: "cannot change transactionHash"
location:
description: Location of the cartesi machine snapshot
type: string
x-kubernetes-validations:
- rule: "self != oldSelf"
message: "cannot change location"
type: object
additionalPrinterColumns:
- name: Application
type: string
description: Address of the application
jsonPath: .spec.address
- name: Location
type: string
description: Location of the cartesi machine snapshot
jsonPath: .spec.location
- name: Age
type: date
jsonPath: .metadata.creationTimestamp
served: true
storage: true
subresources:
status: {}
1 change: 1 addition & 0 deletions charts/applications-crd/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty file
Loading