From eb54c78f96bb0309dd57df8b758b974ee1049c7a Mon Sep 17 00:00:00 2001 From: hasheddan Date: Wed, 21 Aug 2019 10:05:00 -0500 Subject: [PATCH] runtime migration: add resrource credentials secrets Signed-off-by: hasheddan --- apis/core/v1alpha1/resource.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apis/core/v1alpha1/resource.go b/apis/core/v1alpha1/resource.go index c5eba0b..64f5097 100644 --- a/apis/core/v1alpha1/resource.go +++ b/apis/core/v1alpha1/resource.go @@ -20,6 +20,23 @@ import ( corev1 "k8s.io/api/core/v1" ) +const ( + // ResourceCredentialsSecretEndpointKey is the key inside a connection secret for the connection endpoint + ResourceCredentialsSecretEndpointKey = "endpoint" + // ResourceCredentialsSecretUserKey is the key inside a connection secret for the connection user + ResourceCredentialsSecretUserKey = "username" + // ResourceCredentialsSecretPasswordKey is the key inside a connection secret for the connection password + ResourceCredentialsSecretPasswordKey = "password" + // ResourceCredentialsSecretCAKey is the key inside a connection secret for the server CA certificate + ResourceCredentialsSecretCAKey = "clusterCA" + // ResourceCredentialsSecretClientCertKey is the key inside a connection secret for the client certificate + ResourceCredentialsSecretClientCertKey = "clientCert" + // ResourceCredentialsSecretClientKeyKey is the key inside a connection secret for the client key + ResourceCredentialsSecretClientKeyKey = "clientKey" + // ResourceCredentialsTokenKey is the key inside a connection secret for the bearer token value + ResourceCredentialsTokenKey = "token" +) + // ResourceClaimSpec contains standard fields that all resource claims should // include in their spec. Unlike ResourceClaimStatus, ResourceClaimSpec should // typically be embedded in a claim specific struct.