Created
February 26, 2024 12:45
-
-
Save erdii/c5b3417a3df25191ea7e2036340add47 to your computer and use it in GitHub Desktop.
PKO reproducer example for external object which get's torn down accidentally on objectset-deletion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: package-operator.run/v1alpha1 | |
kind: Package | |
metadata: | |
name: my-nginx | |
spec: | |
image: quay.io/erdii-test/nginx-package:e9e4e0e | |
--- | |
apiVersion: package-operator.run/v1alpha1 | |
kind: ObjectSet | |
metadata: | |
name: external | |
spec: | |
availabilityProbes: | |
- probes: | |
- condition: | |
status: "True" | |
type: Available | |
- fieldsEqual: | |
fieldA: .status.updatedReplicas | |
fieldB: .status.replicas | |
selector: | |
kind: | |
group: apps | |
kind: Deployment | |
lifecycleState: Active | |
phases: | |
- name: deploy | |
externalObjects: | |
- object: | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: my-nginx-v1 | |
conditionMappings: | |
- sourceType: Available | |
destinationType: a/DeploymentAvailable | |
- sourceType: Progressing | |
destinationType: a/DeploymentProgressing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment