mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
fix breaking examples (#5024)
* fix examples?springboot with no kustomization.yaml * fix examples/loadHttp with legacy patch syntax
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
5
examples/springboot/base/application.properties
Normal file
5
examples/springboot/base/application.properties
Normal 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
|
||||||
8
examples/springboot/base/kustomization.yaml
Normal file
8
examples/springboot/base/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
configMapGenerator:
|
||||||
|
- name: demo-configmap
|
||||||
|
# behavior: merge
|
||||||
|
files:
|
||||||
|
- application.properties
|
||||||
@@ -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-
|
||||||
|
|||||||
Reference in New Issue
Block a user