-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update helm chart for deployment
- Loading branch information
1 parent
b463409
commit a32141f
Showing
10 changed files
with
132 additions
and
19 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
src/main/helm/crds/products.io.github.onecx.product.store-v1.yml
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 @@ | ||
# Generated by Fabric8 CRDGenerator, manual edits might get overwritten! | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: products.io.github.onecx.product.store | ||
spec: | ||
group: io.github.onecx.product.store | ||
names: | ||
kind: Product | ||
plural: products | ||
singular: product | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
properties: | ||
image-url: | ||
type: string | ||
name: | ||
type: string | ||
base-path: | ||
type: string | ||
description: | ||
type: string | ||
type: object | ||
status: | ||
properties: | ||
response-code: | ||
type: integer | ||
product-name: | ||
type: string | ||
status: | ||
enum: | ||
- UPDATED | ||
- CREATED | ||
- ERROR | ||
- UNDEFINED | ||
type: string | ||
message: | ||
type: string | ||
observedGeneration: | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/main/helm/templates/operator-cluster-role-binding.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,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-validating-role-binding | ||
roleRef: | ||
kind: ClusterRole | ||
apiGroup: rbac.authorization.k8s.io | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-validating-cluster-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Release.Name }}-{{ .Values.app.name }} | ||
namespace: {{ .Release.Namespace }} |
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,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-validating-cluster-role | ||
rules: | ||
- apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- get | ||
- list |
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,43 @@ | ||
{{ if eq $.Values.watchNamespaces "JOSDK_WATCH_CURRENT" }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-role-binding | ||
roleRef: | ||
kind: ClusterRole | ||
apiGroup: rbac.authorization.k8s.io | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-cluster-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Release.Name }}-{{ .Values.app.name }} | ||
{{ else if eq $.Values.watchNamespaces "JOSDK_ALL_NAMESPACES" }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-role-binding | ||
roleRef: | ||
kind: ClusterRole | ||
apiGroup: rbac.authorization.k8s.io | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-cluster-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Release.Name }}-{{ .Values.app.name }} | ||
namespace: {{ $.Release.Namespace }} | ||
{{ else }} | ||
{{ range $anamespace := ( split "," $.Values.watchNamespaces ) }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-role-binding | ||
namespace: {{ $anamespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
apiGroup: rbac.authorization.k8s.io | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-cluster-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Release.Name }}-{{ .Values.app.name }} | ||
namespace: {{ $.Release.Namespace }} | ||
--- | ||
{{- end }} | ||
{{- end }} |
File renamed without changes.
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