Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ if len(env_set_overrides) > 0:
else:
print("=== No CORTEX_ environment variables found ===")

region = os.getenv('OS_REGION_NAME')
if region:
print("=== Deriving region-scoped URLs from OS_REGION_NAME=" + region + " ===")
env_set_overrides.append('openstack.url=https://identity-3.' + region + '.cloud.sap/v3')
env_set_overrides.append('prometheus.url=https://metrics-internal.scaleout.' + region + '.cloud.sap/')

load('ext://helm_resource', 'helm_resource', 'helm_repo')
helm_repo(
'Prometheus Community Helm Repo',
Expand Down
10 changes: 8 additions & 2 deletions api/v1alpha1/flavor_group_capacity_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,17 @@ type FlavorGroupCapacityStatus struct {
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:printcolumn:name="FlavorGroup",type="string",JSONPath=".spec.flavorGroup"
// +kubebuilder:printcolumn:name="Group",type="string",JSONPath=".spec.flavorGroup"
// +kubebuilder:printcolumn:name="AZ",type="string",JSONPath=".spec.availabilityZone"
// +kubebuilder:printcolumn:name="Running",type="integer",JSONPath=".status.runningInstances"
// +kubebuilder:printcolumn:name="LastReconcile",type="date",JSONPath=".status.lastReconcileAt"
// +kubebuilder:printcolumn:name="Avail",type="integer",JSONPath=".status.exclusivelyFreeSlots"
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="Reconciled",type="date",JSONPath=".status.lastReconcileAt"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",priority=1
// +kubebuilder:printcolumn:name="Free_Mem",type="string",JSONPath=".status.freeCapacity.memory",priority=1
// +kubebuilder:printcolumn:name="Excl_Mem",type="string",JSONPath=".status.exclusivelyFreeCapacity.memory",priority=1
// +kubebuilder:printcolumn:name="Free_CPU",type="string",JSONPath=".status.freeCapacity.cores",priority=1
// +kubebuilder:printcolumn:name="Excl_CPU",type="string",JSONPath=".status.exclusivelyFreeCapacity.cores",priority=1

// FlavorGroupCapacity caches pre-computed capacity data for one flavor group in one AZ.
// One CRD exists per (flavor group × AZ) pair, updated by the capacity controller on a fixed interval.
Expand Down
371 changes: 152 additions & 219 deletions docs/reservations/committed-resource-reservations.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,43 @@ spec:
versions:
- additionalPrinterColumns:
- jsonPath: .spec.flavorGroup
name: FlavorGroup
name: Group
type: string
- jsonPath: .spec.availabilityZone
name: AZ
type: string
- jsonPath: .status.runningInstances
name: Running
type: integer
- jsonPath: .status.lastReconcileAt
name: LastReconcile
type: date
- jsonPath: .status.exclusivelyFreeSlots
name: Avail
type: integer
- jsonPath: .status.conditions[?(@.type=='Ready')].status
name: Ready
type: string
- jsonPath: .status.lastReconcileAt
name: Reconciled
type: date
- jsonPath: .metadata.creationTimestamp
name: Age
priority: 1
type: date
- jsonPath: .status.freeCapacity.memory
name: Free_Mem
priority: 1
type: string
- jsonPath: .status.exclusivelyFreeCapacity.memory
name: Excl_Mem
priority: 1
type: string
- jsonPath: .status.freeCapacity.cores
name: Free_CPU
priority: 1
type: string
- jsonPath: .status.exclusivelyFreeCapacity.cores
name: Excl_CPU
priority: 1
type: string
name: v1alpha1
schema:
openAPIV3Schema:
Expand Down
Loading
Loading