14d66afb01
As part of ongoing effort to update the "application" and "component" labels for the UCP components, there is a need to align with the convention. We will update the label for the shipyard API pod in this case. Also updated helm_tk.sh to point to openstack-helm-infra for reference to helm-toolkit as helm-toolkit has been removed from the openstack-helm repo [0] [0] https://review.openstack.org/#/c/558065/ Change-Id: I0b2acda47d87f8dda35fbf054e1c8d906b495061
45 lines
1.7 KiB
YAML
45 lines
1.7 KiB
YAML
{{/*
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- if .Values.manifests.service_shipyard }}
|
|
{{- $envAll := . }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ tuple "shipyard" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
|
spec:
|
|
ports:
|
|
{{ if .Values.network.shipyard.enable_node_port }}
|
|
- name: api
|
|
protocol: TCP
|
|
nodePort: {{ .Values.network.shipyard.node_port }}
|
|
port: {{ tuple "shipyard" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
|
targetPort: {{ tuple "shipyard" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
|
{{ else }}
|
|
- name: api
|
|
protocol: TCP
|
|
port: {{ tuple "shipyard" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
|
targetPort: {{ tuple "shipyard" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
|
{{ end }}
|
|
selector:
|
|
{{ tuple $envAll "shipyard" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
|
{{ if .Values.network.shipyard.enable_node_port }}
|
|
type: NodePort
|
|
{{ end }}
|
|
{{- end }}
|