Skip to content

Commit

Permalink
Update CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
fhielpos committed Aug 21, 2024
1 parent aa9c810 commit f1ba996
Show file tree
Hide file tree
Showing 6 changed files with 235 additions and 30 deletions.
23 changes: 16 additions & 7 deletions config/crd/bases/policy.giantswarm.io_automatedexceptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
controller-gen.kubebuilder.io/version: v0.14.0
name: automatedexceptions.policy.giantswarm.io
spec:
group: policy.giantswarm.io
names:
kind: AutomatedException
listKind: AutomatedExceptionList
plural: automatedexceptions
shortNames:
- autopolex
singular: automatedexception
scope: Namespaced
versions:
Expand All @@ -21,14 +23,19 @@ spec:
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'
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'
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
Expand All @@ -53,10 +60,12 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
namespaces:
items:
type: string
type: array
x-kubernetes-list-type: atomic
required:
- kind
- names
Expand Down
58 changes: 58 additions & 0 deletions config/crd/bases/policy.giantswarm.io_policies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: policies.policy.giantswarm.io
spec:
group: policy.giantswarm.io
names:
kind: Policy
listKind: PolicyList
plural: policies
shortNames:
- gspol
- gspolicy
singular: policy
scope: Cluster
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Policy is the Schema for the Policies 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: PolicySpec defines the desired state of Policy
properties:
defaultPolicyState:
type: string
type: object
status:
description: PolicyStatus defined the desired state of Policy
properties:
actualPolicyState:
type: string
targetPolicyState:
type: string
type: object
type: object
served: true
storage: true
51 changes: 51 additions & 0 deletions config/crd/bases/policy.giantswarm.io_policyconfigs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: policyconfigs.policy.giantswarm.io
spec:
group: policy.giantswarm.io
names:
kind: PolicyConfig
listKind: PolicyConfigList
plural: policyconfigs
shortNames:
- gspolconfig
singular: policyconfig
scope: Cluster
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: PolicyConfig is the Schema for the PolicyConfigs 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: PolicyConfigSpec defines the desired state of PolicyConfig
properties:
policyName:
type: string
policyState:
type: string
type: object
type: object
served: true
storage: true
23 changes: 14 additions & 9 deletions config/crd/bases/policy.giantswarm.io_policyexceptiondrafts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
controller-gen.kubebuilder.io/version: v0.14.0
name: policyexceptiondrafts.policy.giantswarm.io
spec:
group: policy.giantswarm.io
Expand All @@ -23,14 +23,19 @@ spec:
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'
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'
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
Expand All @@ -55,10 +60,12 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
namespaces:
items:
type: string
type: array
x-kubernetes-list-type: atomic
required:
- kind
- names
Expand All @@ -72,5 +79,3 @@ spec:
type: object
served: true
storage: true
subresources:
status: {}
80 changes: 80 additions & 0 deletions config/crd/bases/policy.giantswarm.io_policyexceptions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: policyexceptions.policy.giantswarm.io
spec:
group: policy.giantswarm.io
names:
kind: PolicyException
listKind: PolicyExceptionList
plural: policyexceptions
shortNames:
- gspolex
singular: policyexception
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: PolicyException is the Schema for the policyexceptions 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: PolicyExceptionSpec defines the desired state of PolicyException
properties:
policies:
description: Policies defines the list of policies to be excluded
items:
type: string
type: array
targets:
description: Targes defines the list of target workloads where the
exceptions will be applied
items:
description: Target defines a resource to which a PolicyException
applies
properties:
kind:
type: string
names:
items:
type: string
type: array
x-kubernetes-list-type: atomic
namespaces:
items:
type: string
type: array
x-kubernetes-list-type: atomic
required:
- kind
- names
- namespaces
type: object
type: array
required:
- policies
- targets
type: object
type: object
served: true
storage: true
30 changes: 16 additions & 14 deletions config/crd/bases/policy.giantswarm.io_policymanifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
controller-gen.kubebuilder.io/version: v0.14.0
name: policymanifests.policy.giantswarm.io
spec:
group: policy.giantswarm.io
Expand All @@ -22,14 +22,19 @@ spec:
description: PolicyManifest is the Schema for the policymanifests 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'
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'
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
Expand All @@ -51,10 +56,12 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
namespaces:
items:
type: string
type: array
x-kubernetes-list-type: atomic
required:
- kind
- names
Expand All @@ -72,10 +79,12 @@ spec:
items:
type: string
type: array
x-kubernetes-list-type: atomic
namespaces:
items:
type: string
type: array
x-kubernetes-list-type: atomic
required:
- kind
- names
Expand All @@ -86,14 +95,7 @@ spec:
description: Foo is an example field of PolicyManifest. Edit policymanifest_types.go
to remove/update
type: string
required:
- args
- automatedExceptions
- exceptions
- mode
type: object
type: object
served: true
storage: true
subresources:
status: {}

0 comments on commit f1ba996

Please sign in to comment.