fix breaking examples (#5024)

* fix examples?springboot with no kustomization.yaml

* fix examples/loadHttp with legacy patch syntax
This commit is contained in:
yugo kobayashi
2023-05-25 02:02:50 +09:00
committed by GitHub
parent 035924bc1e
commit e1c530e420
4 changed files with 25 additions and 13 deletions

View File

@@ -4,9 +4,8 @@ resources:
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/wordpress/deployment.yaml
- https://github.com/knative/serving/releases/download/v0.12.0/serving.yaml # redirects to s3
patches:
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/patch.yaml
patchesStrategicMerge:
- |-
- path: https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/patch.yaml
- patch: |-
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:

View File

@@ -0,0 +1,5 @@
app.name=Staging Kinflate Demo
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://<production_db_ip>:3306/db_example
spring.datasource.username=root
spring.datasource.password=admin

View File

@@ -0,0 +1,8 @@
resources:
- deployment.yaml
- service.yaml
configMapGenerator:
- name: demo-configmap
# behavior: merge
files:
- application.properties

View File

@@ -1,7 +1,7 @@
resources:
- ../../base
patchesStrategicMerge:
- patch.yaml
- healthcheck_patch.yaml
- memorylimit_patch.yaml
patches:
- path: patch.yaml
- path: healthcheck_patch.yaml
- path: memorylimit_patch.yaml
namePrefix: production-