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,12 +4,11 @@ resources:
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/wordpress/deployment.yaml - 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 - https://github.com/knative/serving/releases/download/v0.12.0/serving.yaml # redirects to s3
patches: patches:
- https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/patch.yaml - path: https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/examples/wordpress/patch.yaml
patchesStrategicMerge: - patch: |-
- |- apiVersion: rbac.authorization.k8s.io/v1
apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding
kind: RoleBinding metadata:
metadata: name: custom-metrics-auth-reader
name: custom-metrics-auth-reader namespace: kube-system
namespace: kube-system $patch: delete
$patch: delete

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: resources:
- ../../base - ../../base
patchesStrategicMerge: patches:
- patch.yaml - path: patch.yaml
- healthcheck_patch.yaml - path: healthcheck_patch.yaml
- memorylimit_patch.yaml - path: memorylimit_patch.yaml
namePrefix: production- namePrefix: production-