Skip to content

Commit

Permalink
Merge pull request #75 from Norsk-Tipping/feature/add_annotations_to_…
Browse files Browse the repository at this point in the history
…output

Add annotations to Deployment and StatefulSet
  • Loading branch information
eriweb authored Mar 23, 2023
2 parents 18c8795 + 3bb8cf0 commit 2214ea0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ name: "CodeQL"
on:
push:
branches: [master]
pull_request:
#pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 0 * * 5'
# branches: [master]
#schedule:
# - cron: '0 0 * * 5'

jobs:
analyze:
Expand Down
2 changes: 2 additions & 0 deletions pkg/modules/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func GenDeployment(mg *metagraf.MetaGraf, namespace string) {
ObjectMeta: metav1.ObjectMeta{
Name: objname,
Labels: l,
Annotations: mg.Metadata.Annotations,
Namespace: namespace,
},
Spec: appsv1.DeploymentSpec{
Expand All @@ -179,6 +180,7 @@ func GenDeployment(mg *metagraf.MetaGraf, namespace string) {
Name: objname,
Labels: l,
Namespace: namespace,
Annotations: mg.Metadata.Annotations,
},
Spec: corev1.PodSpec{
Containers: Containers,
Expand Down
2 changes: 2 additions & 0 deletions pkg/modules/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func GenStatefulSet(mg *metagraf.MetaGraf, namespace string) {
Name: objname,
Labels: l,
Namespace: namespace,
Annotations: mg.Metadata.Annotations,
},
Spec: appsv1.StatefulSetSpec{
Replicas: &params.Replicas,
Expand All @@ -185,6 +186,7 @@ func GenStatefulSet(mg *metagraf.MetaGraf, namespace string) {
Name: objname,
Labels: l,
Namespace: namespace,
Annotations: mg.Metadata.Annotations,
},
Spec: corev1.PodSpec{
Containers: Containers,
Expand Down

0 comments on commit 2214ea0

Please sign in to comment.