Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Regenerate bundle manifests
Browse files Browse the repository at this point in the history
Co-authored-by: coreydaley <[email protected]>
  • Loading branch information
github-actions[bot] and coreydaley committed Jul 25, 2024
1 parent de45419 commit 7023b7e
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 129 deletions.
180 changes: 52 additions & 128 deletions bundle/manifests/backstage-default-config_v1_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,134 +150,58 @@ data:
resources:
requests:
storage: 1Gi
deployment.yaml: |
apiVersion: apps/v1
kind: Deployment
metadata:
name: backstage # placeholder for 'backstage-<cr-name>'
spec:
replicas: 1
selector:
matchLabels:
rhdh.redhat.com/app: # placeholder for 'backstage-<cr-name>'
template:
metadata:
labels:
rhdh.redhat.com/app: # placeholder for 'backstage-<cr-name>'
spec:
automountServiceAccountToken: false
# if securityContext not present in AKS/EKS, the error is like this:
#Error: EACCES: permission denied, open '/dynamic-plugins-root/backstage-plugin-scaffolder-backend-module-github-dynamic-0.2.2.tgz'
# fsGroup doesn not work for Openshift
#securityContext:
# fsGroup: 1001
volumes:
- ephemeral:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
name: dynamic-plugins-root
- name: dynamic-plugins-npmrc
secret:
defaultMode: 420
optional: true
secretName: dynamic-plugins-npmrc
- emptyDir: {}
name: npmcacache
initContainers:
- name: install-dynamic-plugins
command:
- ./install-dynamic-plugins.sh
- /dynamic-plugins-root
# image will be replaced by the value of the `RELATED_IMAGE_backstage` env var, if set
image: quay.io/janus-idp/backstage-showcase:next
imagePullPolicy: IfNotPresent
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
env:
- name: NPM_CONFIG_USERCONFIG
value: /opt/app-root/src/.npmrc.dynamic-plugins
volumeMounts:
- mountPath: /dynamic-plugins-root
name: dynamic-plugins-root
- mountPath: /opt/app-root/src/.npmrc.dynamic-plugins
name: dynamic-plugins-npmrc
readOnly: true
subPath: .npmrc
- mountPath: /opt/app-root/src/.npm/_cacache
name: npmcacache
workingDir: /opt/app-root/src
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
cpu: 1000m
memory: 2.5Gi
ephemeral-storage: 5Gi
containers:
- name: backstage-backend
# image will be replaced by the value of the `RELATED_IMAGE_backstage` env var, if set
image: quay.io/janus-idp/backstage-showcase:next
imagePullPolicy: IfNotPresent
args:
- "--config"
- "dynamic-plugins-root/app-config.dynamic-plugins.yaml"
securityContext:
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
allowPrivilegeEscalation: false
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthcheck
port: 7007
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 2
timeoutSeconds: 2
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthcheck
port: 7007
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 2
ports:
- name: backend
containerPort: 7007
env:
- name: APP_CONFIG_backend_listen_port
value: "7007"
volumeMounts:
- mountPath: /opt/app-root/src/dynamic-plugins-root
name: dynamic-plugins-root
resources:
requests:
cpu: 250m
memory: 256Mi
limits:
cpu: 1000m
memory: 2.5Gi
ephemeral-storage: 5Gi
deployment.yaml: "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: backstage
# placeholder for 'backstage-<cr-name>'\nspec:\n replicas: 1\n selector:\n matchLabels:\n
\ rhdh.redhat.com/app: # placeholder for 'backstage-<cr-name>'\n template:\n
\ metadata:\n labels:\n rhdh.redhat.com/app: # placeholder for
'backstage-<cr-name>'\n spec:\n automountServiceAccountToken: false\n
\ # if securityContext not present in AKS/EKS, the error is like this:\n #Error:
EACCES: permission denied, open '/dynamic-plugins-root/backstage-plugin-scaffolder-backend-module-github-dynamic-0.2.2.tgz'\n
\ # fsGroup doesn not work for Openshift\n #securityContext:\n #
\ fsGroup: 1001\n volumes:\n - ephemeral:\n volumeClaimTemplate:\n
\ spec:\n accessModes:\n - ReadWriteOnce\n
\ resources:\n requests:\n storage:
2Gi\n name: dynamic-plugins-root\n - name: dynamic-plugins-npmrc\n
\ secret:\n defaultMode: 420\n optional: true\n
\ secretName: dynamic-plugins-npmrc\n - emptyDir: {}\n name:
npmcacache\n - name: audit-log-data \n persistentVolumeClaim:
\n claimName: audit-log-pvc # placeholder for audit log pvc name\n
\ initContainers:\n - name: install-dynamic-plugins\n command:\n
\ - ./install-dynamic-plugins.sh\n - /dynamic-plugins-root\n
\ # image will be replaced by the value of the `RELATED_IMAGE_backstage`
env var, if set\n image: quay.io/janus-idp/backstage-showcase:next\n
\ imagePullPolicy: IfNotPresent\n securityContext:\n runAsNonRoot:
true\n allowPrivilegeEscalation: false\n seccompProfile:\n
\ type: RuntimeDefault\n capabilities:\n drop:\n
\ - ALL\n env:\n - name: NPM_CONFIG_USERCONFIG\n
\ value: /opt/app-root/src/.npmrc.dynamic-plugins\n volumeMounts:\n
\ - mountPath: /dynamic-plugins-root\n name: dynamic-plugins-root\n
\ - mountPath: /opt/app-root/src/.npmrc.dynamic-plugins\n name:
dynamic-plugins-npmrc\n readOnly: true\n subPath: .npmrc\n
\ - mountPath: /opt/app-root/src/.npm/_cacache\n name:
npmcacache\n workingDir: /opt/app-root/src\n resources:\n requests:\n
\ cpu: 250m\n memory: 256Mi\n limits:\n cpu:
1000m\n memory: 2.5Gi\n ephemeral-storage: 5Gi\n containers:\n
\ - name: backstage-backend\n # image will be replaced by the value
of the `RELATED_IMAGE_backstage` env var, if set\n image: quay.io/janus-idp/backstage-showcase:next\n
\ imagePullPolicy: IfNotPresent\n args:\n - \"--config\"\n
\ - \"dynamic-plugins-root/app-config.dynamic-plugins.yaml\"\n securityContext:\n
\ capabilities:\n drop:\n - ALL\n seccompProfile:\n
\ type: RuntimeDefault\n runAsNonRoot: true\n allowPrivilegeEscalation:
false\n readinessProbe:\n failureThreshold: 3\n httpGet:\n
\ path: /healthcheck\n port: 7007\n scheme:
HTTP\n initialDelaySeconds: 30\n periodSeconds: 10\n successThreshold:
2\n timeoutSeconds: 2\n livenessProbe:\n failureThreshold:
3\n httpGet:\n path: /healthcheck\n port:
7007\n scheme: HTTP\n initialDelaySeconds: 60\n periodSeconds:
10\n successThreshold: 1\n timeoutSeconds: 2\n ports:\n
\ - name: backend\n containerPort: 7007\n env:\n
\ - name: APP_CONFIG_backend_listen_port\n value: \"7007\"\n
\ volumeMounts:\n - mountPath: /opt/app-root/src/dynamic-plugins-root\n
\ name: dynamic-plugins-root\n - mountPath: /var/log/audit\n
\ name: audit-log-data\n resources:\n requests:\n
\ cpu: 250m\n memory: 256Mi\n limits:\n cpu:
1000m\n memory: 2.5Gi\n ephemeral-storage: 5Gi\n"
dynamic-plugins.yaml: |-
apiVersion: v1
kind: ConfigMap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ metadata:
}
]
capabilities: Seamless Upgrades
createdAt: "2024-07-16T20:47:15Z"
createdAt: "2024-07-25T06:16:02Z"
operatorframework.io/suggested-namespace: backstage-system
operators.operatorframework.io/builder: operator-sdk-v1.33.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down

0 comments on commit 7023b7e

Please sign in to comment.