diff --git a/dns-helper/Chart.yaml b/dns-helper/Chart.yaml deleted file mode 100644 index 88a31a6bbc..0000000000 --- a/dns-helper/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2017 The Openstack-Helm Authors. -# -# 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. - -apiVersion: v1 -description: OpenStack-Helm DNS Helper -name: dns-helper -version: 0.1.0 -home: https://docs.openstack.org/openstack-helm -sources: - - https://git.openstack.org/cgit/openstack/openstack-helm -maintainers: - - name: OpenStack-Helm Authors diff --git a/dns-helper/requirements.yaml b/dns-helper/requirements.yaml deleted file mode 100644 index 53782e69b2..0000000000 --- a/dns-helper/requirements.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 2017 The Openstack-Helm Authors. -# -# 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. - -dependencies: - - name: helm-toolkit - repository: http://localhost:8879/charts - version: 0.1.0 diff --git a/dns-helper/templates/bin/_dns-helper.sh.tpl b/dns-helper/templates/bin/_dns-helper.sh.tpl deleted file mode 100644 index 427835c7f4..0000000000 --- a/dns-helper/templates/bin/_dns-helper.sh.tpl +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -{{/* -Copyright 2017 The Openstack-Helm Authors. - -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. -*/}} - -set -ex - -cat /etc/resolv.conf > /host/etc/resolv.conf -sleep infinity diff --git a/dns-helper/templates/configmap-bin.yaml b/dns-helper/templates/configmap-bin.yaml deleted file mode 100644 index c8b8294fc5..0000000000 --- a/dns-helper/templates/configmap-bin.yaml +++ /dev/null @@ -1,25 +0,0 @@ -{{/* -Copyright 2017 The Openstack-Helm Authors. - -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. -*/}} - -{{- $envAll := . }} ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: dns-helper-bin -data: - dns-helper.sh: | -{{ tuple "bin/_dns-helper.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} diff --git a/dns-helper/templates/daemonset-dns-helper.yaml b/dns-helper/templates/daemonset-dns-helper.yaml deleted file mode 100644 index b90136a3a3..0000000000 --- a/dns-helper/templates/daemonset-dns-helper.yaml +++ /dev/null @@ -1,51 +0,0 @@ -{{/* -Copyright 2017 The Openstack-Helm Authors. - -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. -*/}} - -{{- $envAll := . }} ---- -apiVersion: extensions/v1beta1 -kind: DaemonSet -metadata: - name: dns-helper -spec: - template: - metadata: - labels: -{{ tuple $envAll "dns" "helper" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} - spec: - nodeSelector: - {{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }} - containers: - - name: dns-helper - image: {{ .Values.images.tags.dns_helper }} - imagePullPolicy: {{ .Values.images.pull_policy }} - command: - - /tmp/dns-helper.sh - volumeMounts: - - mountPath: /host/etc/resolv.conf - name: host-resolv-conf - - name: dns-helper-bin - mountPath: /tmp/dns-helper.sh - subPath: dns-helper.sh - readOnly: true - volumes: - - name: host-resolv-conf - hostPath: - path: /etc/resolv.conf - - name: dns-helper-bin - configMap: - name: dns-helper-bin - defaultMode: 0555 diff --git a/dns-helper/values.yaml b/dns-helper/values.yaml deleted file mode 100644 index 041810ca77..0000000000 --- a/dns-helper/values.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2017 The Openstack-Helm Authors. -# -# 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. - -# Default values for dns-helper. -# This is a YAML-formatted file. -# Declare name/value pairs to be passed into your templates. -# name: value - -labels: - node_selector_key: openstack-control-plane - node_selector_value: enabled - -images: - tags: - dns_helper: docker.io/ubuntu:16.04 - pull_policy: "IfNotPresent"