Skip to content

Introduce a reclaim policy for ephemerally created Virtual IP resources #1115

@balpert89

Description

@balpert89

Summary

Similar to #1114 the same Reclaim Policy should be available for Virtual IP resources.

Basic example

apiVersion: compute.ironcore.dev/v1alpha1
kind: Machine
metadata:
  name: machine
spec:
  networkInterfaces:
  - ephemeral:
      networkInterfaceTemplate:
        metadata:
          creationTimestamp: null
        spec:
          ipFamilies:
          - IPv4
          ips:
          - ephemeral:
              prefixTemplate:
                metadata:
                  creationTimestamp: null
                spec:
                  ipFamily: IPv4
                  parentRef:
                    name: prefix
                  prefixLength: 32
          networkRef:
            name: network
          virtualIP:
             ephemeral:
               virtualIPTemplate:
                 metadata:
                   creationTimestamp: null
                 spec:
                   reclaimPolicy: Retain # this is the new field defining the "Retain" strategy for the corresponding `virtualIP` resource
                   ipFamily: IPv4
                   type: Public
    name: primary

Edit: updated the .spec.virtualIP structure to be in line with #1114

This instructs the controller to not remove the Virtual IP resource. When the managing Machine / NetworkInterface resource is deleted, the OwnerReference as well as the .spec.targetRef should be cleared.

Motivation

Resource saving for consuming teams, such as VPN configuration.

Metadata

Metadata

Assignees

Labels

api-changearea/iaasIssues related to IronCore IaaS development.enhancementNew feature or request

Type

No type

Projects

Status

✅ Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions