Init commit

This commit is contained in:
Nikolai Rodionov
2024-07-02 20:28:13 +02:00
parent c8251eddd2
commit 2b1dec7e52
25 changed files with 856 additions and 52 deletions

View File

@ -0,0 +1,62 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
name: diffs.k8s.badhouseplants.net
spec:
group: k8s.badhouseplants.net
names:
kind: Diff
listKind: DiffList
plural: diffs
singular: diff
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Diff is the Schema for the diffs 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
metadata:
type: object
spec:
description: DiffSpec defines the desired state of Diff
properties:
appSourceName:
type: string
targetRef:
type: string
required:
- appSourceName
- targetRef
type: object
status:
description: DiffStatus defines the observed state of Diff
properties:
diffSecret:
type: string
required:
- diffSecret
type: object
type: object
served: true
storage: true
subresources:
status: {}

View File

@ -3,6 +3,7 @@
# It should be run by config/default
resources:
- bases/k8s.badhouseplants.net_appsources.yaml
- bases/k8s.badhouseplants.net_diffs.yaml
# +kubebuilder:scaffold:crdkustomizeresource
patches:
@ -13,6 +14,7 @@ patches:
# [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix.
# patches here are for enabling the CA injection for each CRD
#- path: patches/cainjection_in_appsources.yaml
#- path: patches/cainjection_in_diffs.yaml
# +kubebuilder:scaffold:crdkustomizecainjectionpatch
# [WEBHOOK] To enable webhook, uncomment the following section