Skip to content

Commit

Permalink
chore: manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Dennison authored and dennisme committed Sep 29, 2023
1 parent 04ea1f6 commit 335f971
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: linodeclusters.infrastructure.cluster.x-k8s.io
spec:
group: infrastructure.cluster.x-k8s.io
names:
kind: LinodeCluster
listKind: LinodeClusterList
plural: linodeclusters
singular: linodecluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: LinodeCluster is the Schema for the linodeclusters 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: LinodeClusterSpec defines the desired state of LinodeCluster
properties:
foo:
description: Foo is an example field of LinodeCluster. Edit linodecluster_types.go
to remove/update
type: string
type: object
status:
description: LinodeClusterStatus defines the observed state of LinodeCluster
type: object
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: linodemachines.infrastructure.cluster.x-k8s.io
spec:
group: infrastructure.cluster.x-k8s.io
names:
kind: LinodeMachine
listKind: LinodeMachineList
plural: linodemachines
singular: linodemachine
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: LinodeMachine is the Schema for the linodemachines 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: LinodeMachineSpec defines the desired state of LinodeMachine
properties:
foo:
description: Foo is an example field of LinodeMachine. Edit linodemachine_types.go
to remove/update
type: string
type: object
status:
description: LinodeMachineStatus defines the observed state of LinodeMachine
type: object
type: object
served: true
storage: true
subresources:
status: {}
58 changes: 58 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: manager-role
rules:
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- linodeclusters
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- linodeclusters/finalizers
verbs:
- update
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- linodeclusters/status
verbs:
- get
- patch
- update
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- linodemachines
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- linodemachines/finalizers
verbs:
- update
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- linodemachines/status
verbs:
- get
- patch
- update

0 comments on commit 335f971

Please sign in to comment.