diff --git a/cmd/server/internal/handler.go b/cmd/server/internal/handler.go
index af361760..8c018af6 100644
--- a/cmd/server/internal/handler.go
+++ b/cmd/server/internal/handler.go
@@ -510,7 +510,6 @@ func (s *SubscriptionHandler) DeleteTenant(reqInfo *RequestInfo) *Result {
}
func (s *SubscriptionHandler) authorizationCheck(headerDetails *requestHeaderDetails, ca *v1alpha1.CAPApplication, subscription subscriptionType, step string) (saasData *util.SaasRegistryCredentials, smsData *util.SmsCredentials, err error) {
- uaaData := &util.XSUAACredentials{}
switch subscription {
case SMS:
// fetch SMS information
@@ -523,6 +522,7 @@ func (s *SubscriptionHandler) authorizationCheck(headerDetails *requestHeaderDet
err = s.checkCertIssuerAndSubject(headerDetails.xForwardedClientCert, smsData, step)
default:
+ uaaData := &util.XSUAACredentials{}
// fetch SaaS Registry and XSUAA information
saasData, uaaData = s.getServiceDetails(ca, step)
if saasData == nil || uaaData == nil {
diff --git a/internal/controller/reconcile-captenant.go b/internal/controller/reconcile-captenant.go
index cf5371c6..be677df8 100644
--- a/internal/controller/reconcile-captenant.go
+++ b/internal/controller/reconcile-captenant.go
@@ -580,7 +580,7 @@ func (c *Controller) getCAPApplicationVersionForTenantOperationType(ctx context.
case v1alpha1.CAPTenantOperationTypeDeprovisioning: // for deletion - use the current CAPApplicationVersion (from status)
if cat.Status.CurrentCAPApplicationVersionInstance == "" {
err := fmt.Errorf("cannot identify %s for %s %s.%s", v1alpha1.CAPApplicationVersionKind, v1alpha1.CAPTenantKind, cat.Namespace, cat.Name)
- util.LogError(err, "Cannot identify applicaion version", string(Deprovisioning), cat, nil, "tenantId", cat.Spec.TenantId)
+ util.LogError(err, "Cannot identify application version", string(Deprovisioning), cat, nil, "tenantId", cat.Spec.TenantId)
return nil, err
}
cav, err := c.crdClient.SmeV1alpha1().CAPApplicationVersions(cat.Namespace).Get(ctx, cat.Status.CurrentCAPApplicationVersionInstance, metav1.GetOptions{})
diff --git a/pkg/apis/sme.sap.com/v1alpha1/types.go b/pkg/apis/sme.sap.com/v1alpha1/types.go
index 0e174bcc..2f0998e2 100644
--- a/pkg/apis/sme.sap.com/v1alpha1/types.go
+++ b/pkg/apis/sme.sap.com/v1alpha1/types.go
@@ -24,7 +24,7 @@ const (
CAPTenantOperationKind = "CAPTenantOperation"
CAPTenantOperationResource = "captenantoperations"
CAPTenantOutputKind = "CAPTenantOutput"
- CAPTenantOutputResource = "captenantouputs"
+ CAPTenantOutputResource = "captenantoutputs"
DomainKind = "Domain"
DomainResource = "domains"
ClusterDomainKind = "ClusterDomain"
@@ -92,7 +92,7 @@ type CAPApplicationSpec struct {
DomainRefs []DomainRef `json:"domainRefs,omitempty"`
// [DEPRECATED] Domains used by the application // Will be removed in future versions
Domains ApplicationDomains `json:"domains,omitempty"`
- // SAP BTP Global Account Identifier where services are entitles for the current application
+ // SAP BTP Global Account Identifier where services are entitled for the current application
// Will soon be deprecated, use ProviderSubaccountId instead
GlobalAccountId string `json:"globalAccountId"`
// The subaccount ID in which the application is provided (will soon replace GlobalAccountId)
@@ -393,11 +393,11 @@ type DeletionRules struct {
//
// Rule evaluation for Gauge type metric: The time series data of the metric (restricted to the current workload by setting `job` label as workload service name) is calculated as an average over the specified period.
// A sum of the calculated average from different time series is then compared to the provided threshold value to determine whether the rule has been satisfied.
-// Evaluation: `sum(avg_over_time( SAP BTP Global Account Identifier where services are entitles for the current application
+ SAP BTP Global Account Identifier where services are entitled for the current application
Will soon be deprecated, use ProviderSubaccountId instead SAP BTP Global Account Identifier where services are entitles for the current application
+ SAP BTP Global Account Identifier where services are entitled for the current application
Will soon be deprecated, use ProviderSubaccountId instead Target of the DNS reord Target of the DNS record Specifies the duration in sections for which the job may be continuously active. Specifies the duration in seconds for which the job may be continuously active. MetricRule specifies a Prometheus metric and rule which represents a cleanup condition. Metrics of type Gauge and Counter are supported. Rule evaluation for Gauge type metric: The time series data of the metric (restricted to the current workload by setting CAPApplication
-
@@ -1179,7 +1179,7 @@ CAPApplicationSpec
-
@@ -2349,7 +2349,7 @@ DNSTemplate
-
@@ -3081,7 +3081,7 @@ JobDetails
-
@@ -3121,10 +3121,10 @@ MetricRule
job label as workload service name) is calculated as an average over the specified period.
A sum of the calculated average from different time series is then compared to the provided threshold value to determine whether the rule has been satisfied.
-Evaluation: sum(avg_over_time(<gauge-metric>{job=<workload-service-name>}[<lookback-duration>])) <= <lower0threshold-value>sum(avg_over_time(<gauge-metric>{job=<workload-service-name>}[<lookback-duration>])) <= <lower-threshold-value>
Rule evaluation for Counter type metric: The time series data of the metric (restricted to the current workload by setting job label as workload service name) is calculated as rate of increase over the specified period.
The sum of the calculated rates from different time series is then compared to the provided threshold value to determine whether the rule has been satisfied.
-Evaluation: sum(rate(<counter-metric>{job=<workload-service-name>}[<lookback-duration>])) <= <lower0threshold-value>
sum(rate(<counter-metric>{job=<workload-service-name>}[<lookback-duration>])) <= <lower-threshold-value>