diff --git a/VERSION b/VERSION index 429d94a..b0a1227 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.9 \ No newline at end of file +0.0.10 \ No newline at end of file diff --git a/cmd/webhook.go b/cmd/webhook.go index 2b21ae8..f0c309a 100644 --- a/cmd/webhook.go +++ b/cmd/webhook.go @@ -157,6 +157,11 @@ func (whsvr *WebhookServer) ensureSecrets(ar *v1beta1.AdmissionReview) error { glog.Errorf("Could not fetch source secret %s in namespace %s: %v", whsvr.config.sourceImagePullSecretName, currentNamespace, err) return err } + if sourceSecret.Type != corev1.SecretTypeDockerConfigJson { + err := fmt.Errorf("source secret %s in namespace %s exists, but has incorrect type (is %s, should be %s)", whsvr.config.sourceImagePullSecretName, currentNamespace, sourceSecret.Type, corev1.SecretTypeDockerConfigJson) + glog.Errorf("%v", err) + return err + } glog.Infof("Source secret found") glog.Infof("Looking for the existing target secret") diff --git a/helm/imagepullsecret-injector/Chart.yaml b/helm/imagepullsecret-injector/Chart.yaml index 5a3f3ee..24d8928 100644 --- a/helm/imagepullsecret-injector/Chart.yaml +++ b/helm/imagepullsecret-injector/Chart.yaml @@ -20,4 +20,4 @@ version: 0.0.18 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: 0.0.9 +appVersion: 0.0.10