-
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 deployment resources (#4)
* feat: update deployment resources * feat: update
- Loading branch information
1 parent
0d55efc
commit a28e75d
Showing
12 changed files
with
211 additions
and
34 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
src/main/helm/crds/microfrontends.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,76 @@ | ||
# Generated by Fabric8 CRDGenerator, manual edits might get overwritten! | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: microfrontends.io.github.onecx.product.store | ||
spec: | ||
group: io.github.onecx.product.store | ||
names: | ||
kind: Microfrontend | ||
plural: microfrontends | ||
singular: microfrontend | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
properties: | ||
display-name: | ||
type: string | ||
app-id: | ||
type: string | ||
product-name: | ||
type: string | ||
remote-entry: | ||
type: string | ||
wc-tag-name: | ||
type: string | ||
remote-name: | ||
type: string | ||
exposed-module: | ||
type: string | ||
mfe-id: | ||
type: string | ||
note: | ||
type: string | ||
base-path: | ||
type: string | ||
app-version: | ||
type: string | ||
remote-base-url: | ||
type: string | ||
module-type: | ||
enum: | ||
- WEBCOMPONENT | ||
- ANGULAR | ||
type: string | ||
contact: | ||
type: string | ||
type: object | ||
status: | ||
properties: | ||
response-code: | ||
type: integer | ||
status: | ||
enum: | ||
- UPDATED | ||
- ERROR | ||
- CREATED | ||
- UNDEFINED | ||
type: string | ||
product-name: | ||
type: string | ||
mfe-id: | ||
type: string | ||
message: | ||
type: string | ||
observedGeneration: | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
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 }} |
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,19 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Values.app.name }}-cluster-role | ||
rules: | ||
- apiGroups: | ||
- io.github.onecx.product.store | ||
resources: | ||
- "microfrontends" | ||
- "microfrontends/status" | ||
- "microfrontends/finalizers" | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- patch | ||
- update | ||
- create | ||
- delete |
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,4 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Release.Name }}-{{ .Values.app.name }} |
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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
app: | ||
name: mfe-operator | ||
image: | ||
repository: "onecx/onecx-product-store-mfe-operator" | ||
tag: 999-SNAPSHOT | ||
env: | ||
# See watchNamespaces | ||
"QUARKUS_OPERATOR_SDK_CONTROLLERS_PRODUCT_NAMESPACES": "JOSDK_WATCH_CURRENT" | ||
envCustom: | ||
- name: KUBERNETES_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
serviceAccount: | ||
enabled: true | ||
|
||
# Values: JOSDK_WATCH_CURRENT, JOSDK_ALL_NAMESPACES or comma separated list of namespaces | ||
watchNamespaces: "JOSDK_WATCH_CURRENT" |
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 |
---|---|---|
@@ -1,25 +1,21 @@ | ||
|
||
# BUILD | ||
quarkus.openapi-generator.codegen.input-base-dir=target/tmp/openapi | ||
quarkus.openapi-generator.codegen.spec.onecx_product_store_operator_mfe_v1_yaml.config-key=product_store_client | ||
quarkus.openapi-generator.codegen.spec.onecx_product_store_operator_mfe_v1_yaml.base-package=gen.io.github.onecx.product.store.mfe.v1 | ||
quarkus.openapi-generator.codegen.spec.onecx_product_store_operator_mfe_v1_yaml.return-response=true | ||
|
||
|
||
# CONFIG | ||
|
||
quarkus.kubernetes-client.devservices.override-kubeconfig=true | ||
|
||
# validate product store name, relevant only for multi-store | ||
onecx.product.store.mfe.operator.multi-enabled=false | ||
onecx.product.store.mfe.operator.name=onecx | ||
|
||
|
||
# TEST | ||
%test.quarkus.mockserver.devservices.config-class-path=true | ||
%test.quarkus.mockserver.devservices.config-file=/mockserver.properties | ||
%test.quarkus.mockserver.devservices.config-dir=/mockserver | ||
%test.quarkus.mockserver.devservices.log=false | ||
%test.quarkus.mockserver.devservices.reuse=true | ||
%test.quarkus.rest-client.product_store_client.url=${quarkus.mockserver.endpoint} | ||
|
||
|
||
# PROD | ||
%prod.quarkus.rest-client.product_store_client.url=http://product-store-svc:8080 | ||
|
||
# BUILD | ||
quarkus.openapi-generator.codegen.input-base-dir=target/tmp/openapi | ||
quarkus.openapi-generator.codegen.spec.onecx_product_store_operator_mfe_v1_yaml.config-key=product_store_client | ||
quarkus.openapi-generator.codegen.spec.onecx_product_store_operator_mfe_v1_yaml.base-package=gen.io.github.onecx.product.store.mfe.v1 | ||
quarkus.openapi-generator.codegen.spec.onecx_product_store_operator_mfe_v1_yaml.return-response=true | ||
|
||
# CONFIG | ||
quarkus.kubernetes-client.devservices.override-kubeconfig=true | ||
|
||
# TEST | ||
%test.quarkus.mockserver.devservices.config-class-path=true | ||
%test.quarkus.mockserver.devservices.config-file=/mockserver.properties | ||
%test.quarkus.mockserver.devservices.config-dir=/mockserver | ||
%test.quarkus.mockserver.devservices.log=false | ||
%test.quarkus.mockserver.devservices.reuse=true | ||
%test.quarkus.rest-client.product_store_client.url=${quarkus.mockserver.endpoint} | ||
|
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