Make COMMON/ETCD compatible with Kubernetes v1.17 95/109895/1
authormilaszki <daniel.milaszkiewicz@nokia.com>
Tue, 7 Jul 2020 12:13:44 +0000 (12:13 +0000)
committermilaszki <daniel.milaszkiewicz@nokia.com>
Tue, 7 Jul 2020 12:13:44 +0000 (12:13 +0000)
Issue-ID: OOM-2481

Signed-off-by: Daniel Milaszkiewicz <daniel.milaszkiewicz@nokia.com>
Change-Id: I3d2e249bfd158575c67eaf5600cdae1921bd3b2e

kubernetes/common/etcd/templates/statefulset.yaml

index 96cda89..fcab51c 100644 (file)
@@ -11,7 +11,7 @@
 # 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: apps/v1beta1
+apiVersion: apps/v1
 kind: StatefulSet
 metadata:
   name: {{ include "common.fullname" .  }}
@@ -23,6 +23,9 @@ metadata:
 spec:
   serviceName: {{ include "common.servicename" .}}
   replicas: {{ .Values.replicaCount }}
+  selector:
+    matchLabels:
+      app: {{ include "common.name" .  }}
   template:
     metadata:
       labels: