Skip to content

Commit

Permalink
add recommened labels
Browse files Browse the repository at this point in the history
  • Loading branch information
bryopsida committed Oct 21, 2023
1 parent 2bc86b1 commit 7c35c71
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ kubernetes {
}
}
resources {
labels {
all {
testProject = 'spring-boot-stater-k8s'
}
}
configMap {
name = 'liquibase-change-log-v1'
entries = [{
Expand Down
5 changes: 5 additions & 0 deletions src/main/jkube/db-migration-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ metadata:
labels:
project: ${name}
version: ${version}
app.kubernetes.io/name: ${name}
app.kubernetes.io/instance: ${helm_release_name}
app.kubernetes.io/version: ${version}
app.kubernetes.io/part-of: ${name}
app.kubernetes.io/managed-by: helm
type: Opaque
stringData:
liquibase.properties: |
Expand Down
5 changes: 5 additions & 0 deletions src/main/jkube/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ metadata:
labels:
project: ${name}
version: ${version}
app.kubernetes.io/name: ${name}
app.kubernetes.io/instance: ${helm_release_name}
app.kubernetes.io/version: ${version}
app.kubernetes.io/part-of: ${name}
app.kubernetes.io/managed-by: helm
spec:
replicas: 1
template:
Expand Down
8 changes: 8 additions & 0 deletions src/main/jkube/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
labels:
project: ${name}
version: ${version}
app.kubernetes.io/name: ${name}
app.kubernetes.io/instance: ${helm_release_name}
app.kubernetes.io/version: ${version}
app.kubernetes.io/part-of: ${name}
app.kubernetes.io/managed-by: helm
spec:
type: ClusterIP
ports:
Expand Down
3 changes: 3 additions & 0 deletions src/main/jkube/templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ parameters:
- name: helm_namespace
value: |
{{ .Release.Namespace }}
- name: helm_release_name
value: |
{{ .Release.Name }}

0 comments on commit 7c35c71

Please sign in to comment.