Skip to content

Commit

Permalink
PackageVariant controller: implement pruning, deletionPolicy, and ado…
Browse files Browse the repository at this point in the history
…ptionPolicy (#3701)
  • Loading branch information
natasha41575 committed Jan 18, 2023
1 parent bb2725f commit af926a0
Show file tree
Hide file tree
Showing 13 changed files with 1,516 additions and 406 deletions.
2 changes: 1 addition & 1 deletion porch/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TEST_GIT_SERVER_IMAGE ?= test-git-server
# Only enable a subset of reconcilers in porch controllers by default. Use the RECONCILERS
# env variable to specify a specific list of reconcilers or use
# RECONCILERS=* to enable all known reconcilers.
ALL_RECONCILERS="rootsyncsets,remoterootsyncsets,workloadidentitybindings,rootsyncdeployments,functiondiscovery,downstreampackages,rootsyncrollouts"
ALL_RECONCILERS="rootsyncsets,remoterootsyncsets,workloadidentitybindings,rootsyncdeployments,functiondiscovery,packagevariants,rootsyncrollouts"
ifndef RECONCILERS
ENABLED_RECONCILERS="rootsyncsets,remoterootsyncsets,workloadidentitybindings,functiondiscovery"
else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Google LLC
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -19,23 +19,23 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null
name: downstreampackages.config.porch.kpt.dev
name: packagevariants.config.porch.kpt.dev
spec:
group: config.porch.kpt.dev
names:
kind: DownstreamPackage
listKind: DownstreamPackageList
plural: downstreampackages
singular: downstreampackage
kind: PackageVariant
listKind: PackageVariantList
plural: packagevariants
singular: packagevariant
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: DownstreamPackage represents an upstream and downstream porch
package pair. The upstream package should already exist. The DownstreamPackage
controller is responsible for creating the downstream package revisions
based on the spec.
description: PackageVariant represents an upstream and downstream porch package
pair. The upstream package should already exist. The PackageVariant controller
is responsible for creating the downstream package revisions based on the
spec.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand All @@ -50,7 +50,7 @@ spec:
metadata:
type: object
spec:
description: DownstreamPackageSpec defines the desired state of DownstreamPackage
description: PackageVariantSpec defines the desired state of PackageVariant
properties:
adoptionPolicy:
type: string
Expand All @@ -74,7 +74,12 @@ spec:
type: object
type: object
status:
description: DownstreamPackageStatus defines the observed state of DownstreamPackage
description: PackageVariantStatus defines the observed state of PackageVariant
properties:
validationErrors:
items:
type: string
type: array
type: object
type: object
served: true
Expand Down

0 comments on commit af926a0

Please sign in to comment.