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

Fix #23: add resources directory and .yaml files. #24

Merged
merged 3 commits into from
Oct 13, 2023
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
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: {}
Loading