From 267308dc0c2acb42d8ffaf871337a70122f54a42 Mon Sep 17 00:00:00 2001 From: Olaf Bohlen Date: Wed, 15 Feb 2023 11:46:43 +0100 Subject: [PATCH] fixed language issues...;) --- Containerfile | 6 +- cookie-crd.yaml | 12 ++-- cookie-operator-deployment.yaml | 8 +-- cookie-rbac.yaml | 12 ++-- cookieprocessor-sa.yaml | 4 +- oaty-hazelnut-cookies.yaml | 2 +- receipt-processor.ksh => recipe-processor.ksh | 72 +++++++++---------- sample-cookie.yaml | 4 +- 8 files changed, 60 insertions(+), 60 deletions(-) rename receipt-processor.ksh => recipe-processor.ksh (51%) diff --git a/Containerfile b/Containerfile index 5eb9715..c0a5c4f 100644 --- a/Containerfile +++ b/Containerfile @@ -1,11 +1,11 @@ FROM docker.eenfach.de/olbohlen/kshbase:latest LABEL author="Olaf Bohlen " -COPY receipt-processor.ksh /usr/local/bin/receipt-processor.ksh -RUN chmod 755 /usr/local/bin/receipt-processor.ksh && \ +COPY recipe-processor.ksh /usr/local/bin/recipe-processor.ksh +RUN chmod 755 /usr/local/bin/recipe-processor.ksh && \ useradd cookie && \ dnf install -y jq USER cookie -ENTRYPOINT ["/usr/local/bin/receipt-processor.ksh"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/recipe-processor.ksh"] diff --git a/cookie-crd.yaml b/cookie-crd.yaml index 2af44fb..8872577 100644 --- a/cookie-crd.yaml +++ b/cookie-crd.yaml @@ -1,13 +1,13 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: - name: cookiereceipts.de.eenfach.olbohlen + name: cookierecipes.de.eenfach.olbohlen spec: group: de.eenfach.olbohlen names: - kind: CookieReceipt - plural: cookiereceipts - singular: cookiereceipt + kind: CookieRecipe + plural: cookierecipes + singular: cookierecipe scope: Namespaced versions: - name: v1 @@ -15,7 +15,7 @@ spec: storage: true schema: openAPIV3Schema: - description: "The CookieReceipt CRD is a k8s demo for enhancing functionality, it will not (unfortunately) provide you real cookies in the end..." + description: "The CookieRecipe CRD is a k8s demo for enhancing functionality, it will not (unfortunately) provide you real cookies in the end..." type: object properties: apiVersion: @@ -40,7 +40,7 @@ spec: type: string description: where does this come from? (grandma, mum, the internet...) ingredients: - description: this list provides required ingredients for this receipt + description: this list provides required ingredients for this recipe type: array x-kubernetes-list-type: atomic items: diff --git a/cookie-operator-deployment.yaml b/cookie-operator-deployment.yaml index 5312f55..ea6916b 100644 --- a/cookie-operator-deployment.yaml +++ b/cookie-operator-deployment.yaml @@ -3,19 +3,19 @@ kind: Deployment metadata: creationTimestamp: null labels: - app: receipt-processor - name: receipt-processor + app: recipe-processor + name: recipe-processor spec: replicas: 1 selector: matchLabels: - app: receipt-processor + app: recipe-processor strategy: {} template: metadata: creationTimestamp: null labels: - app: receipt-processor + app: recipe-processor spec: serviceAccountName: cookieprocessor containers: diff --git a/cookie-rbac.yaml b/cookie-rbac.yaml index 4cdbba0..50538ac 100644 --- a/cookie-rbac.yaml +++ b/cookie-rbac.yaml @@ -2,12 +2,12 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: cookiereceipt-edit + name: cookierecipe-edit rules: - apiGroups: - de.eenfach.olbohlen resources: - - cookiereceipts + - cookierecipes verbs: - create - get @@ -19,12 +19,12 @@ rules: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: cookiereceipt-view + name: cookierecipe-view rules: - apiGroups: - de.eenfach.olbohlen resources: - - cookiereceipts + - cookierecipes verbs: - get - list @@ -32,11 +32,11 @@ rules: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: cookiereceipt-edit + name: cookierecipe-edit roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: cookiereceipt-edit + name: cookierecipe-edit subjects: - apiGroup: rbac.authorization.k8s.io kind: Group diff --git a/cookieprocessor-sa.yaml b/cookieprocessor-sa.yaml index 05066ff..335a087 100644 --- a/cookieprocessor-sa.yaml +++ b/cookieprocessor-sa.yaml @@ -8,11 +8,11 @@ metadata: apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: - name: cookiereceipt-view + name: cookierecipe-view roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: cookiereceipt-view + name: cookierecipe-view subjects: - kind: ServiceAccount name: cookieprocessor diff --git a/oaty-hazelnut-cookies.yaml b/oaty-hazelnut-cookies.yaml index ef869da..f2633a1 100644 --- a/oaty-hazelnut-cookies.yaml +++ b/oaty-hazelnut-cookies.yaml @@ -1,5 +1,5 @@ apiVersion: de.eenfach.olbohlen/v1 -kind: CookieReceipt +kind: CookieRecipe metadata: name: oaty-hazelnut spec: diff --git a/receipt-processor.ksh b/recipe-processor.ksh similarity index 51% rename from receipt-processor.ksh rename to recipe-processor.ksh index 57fc264..9f35d48 100644 --- a/receipt-processor.ksh +++ b/recipe-processor.ksh @@ -8,86 +8,86 @@ TOKEN=$(