Skip to content

Commit

Permalink
feat(kubernetes_platform): Update kubernetes_platform go package to i…
Browse files Browse the repository at this point in the history
…nclude pod labels and annotations (kubeflow#10357)

e pod metadata
  • Loading branch information
Tomcli authored and petethegreat committed Mar 27, 2024
1 parent 430be79 commit d3645c1
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 25 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions kubernetes_platform/proto/kubernetes_executor_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ message KubernetesExecutorConfig {
repeated SecretAsEnv secret_as_env = 2;
repeated PvcMount pvc_mount = 3;
NodeSelector node_selector = 4;
PodMetadata pod_metadata = 5;
}

message SecretAsVolume {
Expand Down Expand Up @@ -114,3 +115,10 @@ message NodeSelector {
// corresponds to Pod.spec.nodeSelector field https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling
map<string, string> labels = 1;
}

message PodMetadata {
// values of metadata spec such as labels and annotations for the pod object
// corresponds to Pod.metadata field https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Pod
map<string, string> labels = 1;
map<string, string> annotations = 2;
}

0 comments on commit d3645c1

Please sign in to comment.