generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adopt recent component-operator scaffolding changes (chart, genclient)
- Loading branch information
1 parent
266c5fd
commit ef0fda9
Showing
13 changed files
with
584 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v2 | ||
name: redis-operator-cop | ||
description: A Helm chart for https://github.com/sap/redis-operator-cop | ||
type: application | ||
version: 0.1.0 | ||
appVersion: v0.1.0 |
165 changes: 165 additions & 0 deletions
165
chart/crds/operator.kyma-project.io_redisoperators.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.9.2 | ||
creationTimestamp: null | ||
name: redisoperators.operator.kyma-project.io | ||
spec: | ||
group: operator.kyma-project.io | ||
names: | ||
kind: RedisOperator | ||
listKind: RedisOperatorList | ||
plural: redisoperators | ||
singular: redisoperator | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .status.state | ||
name: State | ||
type: string | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: RedisOperator is the Schema for the redisoperators 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: RedisOperatorSpec defines the desired state of RedisOperator. | ||
type: object | ||
status: | ||
default: | ||
observedGeneration: -1 | ||
description: RedisOperatorStatus defines the observed state of RedisOperator. | ||
properties: | ||
appliedGeneration: | ||
format: int64 | ||
type: integer | ||
conditions: | ||
items: | ||
description: Component status Condition. | ||
properties: | ||
lastTransitionTime: | ||
format: date-time | ||
type: string | ||
message: | ||
type: string | ||
reason: | ||
type: string | ||
status: | ||
description: Condition Status. Can be one of 'True', 'False', | ||
'Unknown'. | ||
enum: | ||
- "True" | ||
- "False" | ||
- Unknown | ||
type: string | ||
type: | ||
description: Condition type. Currently, only the 'Ready' type | ||
is used. | ||
type: string | ||
required: | ||
- status | ||
- type | ||
type: object | ||
type: array | ||
inventory: | ||
items: | ||
description: InventoryItem represents a dependent object managed | ||
by this operator. | ||
properties: | ||
digest: | ||
description: Digest of the descriptor of the dependent object. | ||
type: string | ||
group: | ||
description: API group. | ||
type: string | ||
kind: | ||
description: API kind. | ||
type: string | ||
managedTypes: | ||
description: Managed types | ||
items: | ||
description: TypeInfo represents a Kubernetes type. | ||
properties: | ||
group: | ||
description: API group. | ||
type: string | ||
kind: | ||
description: API kind. | ||
type: string | ||
version: | ||
description: API group version. | ||
type: string | ||
required: | ||
- group | ||
- kind | ||
- version | ||
type: object | ||
type: array | ||
name: | ||
description: Name of the referenced object. | ||
type: string | ||
namespace: | ||
description: Namespace of the referenced object; empty for non-namespaced | ||
objects | ||
type: string | ||
phase: | ||
description: Phase of the dependent object. | ||
type: string | ||
status: | ||
description: Observed status of the dependent object, as observed | ||
by kstatus. | ||
type: string | ||
version: | ||
description: API group version. | ||
type: string | ||
required: | ||
- digest | ||
- group | ||
- kind | ||
- name | ||
- version | ||
type: object | ||
type: array | ||
lastAppliedAt: | ||
format: date-time | ||
type: string | ||
lastObservedAt: | ||
format: date-time | ||
type: string | ||
observedGeneration: | ||
format: int64 | ||
type: integer | ||
state: | ||
description: Component state. Can be one of 'Ready', 'Processing', | ||
'Error', 'Deleting'. | ||
enum: | ||
- Processing | ||
- Deleting | ||
- Ready | ||
- Error | ||
type: string | ||
required: | ||
- observedGeneration | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "redis-operator-cop.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "redis-operator-cop.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "redis-operator-cop.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "redis-operator-cop.labels" -}} | ||
helm.sh/chart: {{ include "redis-operator-cop.chart" . }} | ||
{{ include "redis-operator-cop.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "redis-operator-cop.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "redis-operator-cop.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} |
Oops, something went wrong.