-
Notifications
You must be signed in to change notification settings - Fork 49
Add labels to kube-system and components namespaces #646
Commits on Aug 11, 2020
-
k8sutil: Namespace struct for storing namespace metadata
This commit adds a new Namespace struct that holds metadata regarding the Name, Labels and Annotatations specific to the Lokomotive installation or components installation. Signed-off-by: Imran Pochi <imran@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for f288aac - Browse repository at this point
Copy the full SHA f288aacView commit details -
internal: add function to append name label to a given map
Signed-off-by: Imran Pochi <imran@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for 46ce909 - Browse repository at this point
Copy the full SHA 46ce909View commit details -
components: use k8sutil.Namespace struct for Metadata
To allow components specify metadata(labels, annotations) for release namespace. Adds the labels that are required to be present on the components release namespace. Updates references where needed due to this change. Signed-off-by: Imran Pochi <imran@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for acf1b5a - Browse repository at this point
Copy the full SHA acf1b5aView commit details -
k8sutil: Utility functions to create/update Namespace
Move function `ensureNamespaceExists` to k8sutil package with new name CreateOrUpdateNamespace. This function creates/updates the namespace. Components use this function to create/update the release namespace. This function is also used to update the `kube-system` namespace after cluster installation. Includes another helper function in the `internal` package that merges two given maps. This is done to ensure that existing labels and annotations are retained and the new set of Labels/annotations overrides any existing ones. Signed-off-by: Imran Pochi <imran@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for 81117d6 - Browse repository at this point
Copy the full SHA 81117d6View commit details -
components: add namespace label to release namespace.
This commit adds the namespace label `lokomotive.kinvolk.io/name : <namespace_name>` to the release namespace. Signed-off-by: Imran Pochi <imran@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for ea36299 - Browse repository at this point
Copy the full SHA ea36299View commit details -
cluster: update pre installed namespaces with labels
This commit updates the pre-installed namespaces in the cluster to include the labels provided. Signed-off-by: Imran Pochi <imran@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for 667571d - Browse repository at this point
Copy the full SHA 667571dView commit details -
Add functionality to test namespace
Signed-off-by: knrt10 <tripathi.kautilya@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b512bae - Browse repository at this point
Copy the full SHA b512baeView commit details -
test: use a consistent way to create test namespaces
Signed-off-by: Imran Pochi <imran@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for e187820 - Browse repository at this point
Copy the full SHA e187820View commit details -
e2etest: Add e2e test to check if labels were added correctly
Signed-off-by: Imran Pochi <imran@kinvolk.io>
Configuration menu - View commit details
-
Copy full SHA for a51b143 - Browse repository at this point
Copy the full SHA a51b143View commit details