Skip to content

Commit

Permalink
Fix #23: add resources directory and .yaml files. (#24)
Browse files Browse the repository at this point in the history
* Create idpbuilder.cnoe.io_gitservers.yaml

* Create idpbuilder.cnoe.io_localbuilds.yaml

* Ignorance is not always bliss
  • Loading branch information
hodgiwabi authored Oct 13, 2023
1 parent 7b8a7cf commit 06fb155
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ idpbuilder
bin/*
.DS_Store
cover.out
pkg/controllers/resources/*
70 changes: 70 additions & 0 deletions pkg/controllers/resources/idpbuilder.cnoe.io_gitservers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
name: gitservers.idpbuilder.cnoe.io
spec:
group: idpbuilder.cnoe.io
names:
kind: GitServer
listKind: GitServerList
plural: gitservers
singular: gitserver
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
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:
properties:
source:
properties:
embedded:
description: Emedded enables the image containing the go binary
embedded contents
type: boolean
image:
description: Image specifies a docker image to use. Specifying
this disables installation of embedded applications.
type: string
type: object
type: object
status:
properties:
deploymentAvailable:
type: boolean
host:
description: Host is the host value of the ingress rule
type: string
imageID:
description: ImageID is the id of the most recently generated docker
image or empty if no image has been created
type: string
observedGeneration:
description: ObservedGeneration is the 'Generation' of the Service
that was last processed by the controller.
format: int64
type: integer
required:
- deploymentAvailable
type: object
type: object
served: true
storage: true
subresources:
status: {}
75 changes: 75 additions & 0 deletions pkg/controllers/resources/idpbuilder.cnoe.io_localbuilds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
name: localbuilds.idpbuilder.cnoe.io
spec:
group: idpbuilder.cnoe.io
names:
kind: Localbuild
listKind: LocalbuildList
plural: localbuilds
singular: localbuild
scope: Cluster
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
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:
properties:
packageConfigs:
properties:
argoPackageConfigs:
description: ArgoPackageConfigSpec Allows for configuration of
the ArgoCD Installation. If no fields are specified then the
binary embedded resources will be used to intall ArgoCD.
properties:
enabled:
description: Enabled controls whether to install ArgoCD.
type: boolean
type: object
embeddedArgoApplicationsPackageConfigs:
description: EmbeddedArgoApplicationsPackageConfigSpec Controls
the installation of the embedded argo applications.
properties:
enabled:
description: Enabled controls whether to install the embedded
argo applications and the associated GitServer
type: boolean
type: object
type: object
type: object
status:
properties:
argoAppsCreated:
type: boolean
argoAvailable:
type: boolean
gitServerAvailable:
type: boolean
observedGeneration:
description: ObservedGeneration is the 'Generation' of the Service
that was last processed by the controller.
format: int64
type: integer
type: object
type: object
served: true
storage: true
subresources:
status: {}

0 comments on commit 06fb155

Please sign in to comment.