Skip to content
Closed
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
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ config:

crds:
mkdir -p deploy/helm/opa-operator/crds
cat deploy/crd/*.yaml | yq eval '.metadata.annotations["helm.sh/resource-policy"]="keep"' - > deploy/helm/opa-operator/crds/crds.yaml
cargo run crd | yq eval '.metadata.annotations["helm.sh/resource-policy"]="keep"' - > deploy/helm/opa-operator/crds/crds.yaml

chart-lint: compile-chart
docker run -it -v $(shell pwd):/build/helm-charts -w /build/helm-charts quay.io/helmpack/chart-testing:v3.5.0 ct lint --config deploy/helm/ct.yaml
Expand All @@ -61,11 +61,4 @@ clean-manifests:
generate-manifests: clean-manifests compile-chart
./scripts/generate-manifests.sh

clean-crds:
rm -rf deploy/crd/*

generate-crds:
touch rust/operator-binary/build.rs
cargo build

regenerate-charts: clean-crds chart-clean clean-manifests generate-crds compile-chart generate-manifests
regenerate-charts: chart-clean clean-manifests compile-chart generate-manifests
3 changes: 2 additions & 1 deletion deploy/helm/opa-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ helm install opa-operator deploy/helm/opa-operator

The usage of this operator and its CRDs is described in the [documentation](https://docs.stackable.tech/opa/index.html)

The operator has example requests included in the [`/examples`](https://github.com/stackabletech/opa/operator/tree/main/examples) directory.
The operator has example requests included in the [`/examples`](https://github.com/stackabletech/opa-operator/tree/main/examples) directory.

## Links

https://github.com/stackabletech/opa-operator

133 changes: 0 additions & 133 deletions deploy/helm/opa-operator/crds/crds.yaml
Original file line number Diff line number Diff line change
@@ -1,136 +1,3 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: opaclusters.opa.stackable.tech
annotations:
helm.sh/resource-policy: keep
spec:
group: opa.stackable.tech
names:
categories: []
kind: OpaCluster
plural: opaclusters
shortNames:
- opa
singular: opacluster
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1alpha1
schema:
openAPIV3Schema:
description: "Auto-generated derived type for OpaSpec via `CustomResource`"
properties:
spec:
properties:
servers:
properties:
cliOverrides:
additionalProperties:
type: string
default: {}
type: object
config:
default: {}
properties:
regoRuleReference:
nullable: true
type: string
type: object
configOverrides:
additionalProperties:
additionalProperties:
type: string
type: object
default: {}
type: object
envOverrides:
additionalProperties:
type: string
default: {}
type: object
roleGroups:
additionalProperties:
properties:
cliOverrides:
additionalProperties:
type: string
default: {}
type: object
config:
default: {}
properties:
regoRuleReference:
nullable: true
type: string
type: object
configOverrides:
additionalProperties:
additionalProperties:
type: string
type: object
default: {}
type: object
envOverrides:
additionalProperties:
type: string
default: {}
type: object
replicas:
format: uint16
minimum: 0.0
nullable: true
type: integer
selector:
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
nullable: true
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values."
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist."
type: string
values:
description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
type: object
type: object
type: object
type: object
required:
- roleGroups
type: object
stopped:
nullable: true
type: boolean
version:
nullable: true
type: string
required:
- servers
type: object
required:
- spec
title: OpaCluster
type: object
served: true
storage: true
subresources: {}
133 changes: 0 additions & 133 deletions deploy/manifests/crds.yaml
Original file line number Diff line number Diff line change
@@ -1,139 +1,6 @@
---
# Source: opa-operator/crds/crds.yaml
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: opaclusters.opa.stackable.tech
annotations:
helm.sh/resource-policy: keep
spec:
group: opa.stackable.tech
names:
categories: []
kind: OpaCluster
plural: opaclusters
shortNames:
- opa
singular: opacluster
scope: Namespaced
versions:
- additionalPrinterColumns: []
name: v1alpha1
schema:
openAPIV3Schema:
description: "Auto-generated derived type for OpaSpec via `CustomResource`"
properties:
spec:
properties:
servers:
properties:
cliOverrides:
additionalProperties:
type: string
default: {}
type: object
config:
default: {}
properties:
regoRuleReference:
nullable: true
type: string
type: object
configOverrides:
additionalProperties:
additionalProperties:
type: string
type: object
default: {}
type: object
envOverrides:
additionalProperties:
type: string
default: {}
type: object
roleGroups:
additionalProperties:
properties:
cliOverrides:
additionalProperties:
type: string
default: {}
type: object
config:
default: {}
properties:
regoRuleReference:
nullable: true
type: string
type: object
configOverrides:
additionalProperties:
additionalProperties:
type: string
type: object
default: {}
type: object
envOverrides:
additionalProperties:
type: string
default: {}
type: object
replicas:
format: uint16
minimum: 0.0
nullable: true
type: integer
selector:
description: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
nullable: true
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values."
properties:
key:
description: key is the label key that the selector applies to.
type: string
operator:
description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist."
type: string
values:
description: "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
description: "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
type: object
type: object
type: object
type: object
required:
- roleGroups
type: object
stopped:
nullable: true
type: boolean
version:
nullable: true
type: string
required:
- servers
type: object
required:
- spec
title: OpaCluster
type: object
served: true
storage: true
subresources: {}