Skip to content

Commit

Permalink
refactor: removing unused code about port allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
nettoclaudio committed May 17, 2023
1 parent 8fc0653 commit 1cb7a44
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 610 deletions.
7 changes: 0 additions & 7 deletions api/v1alpha1/rpaasinstance_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ type RpaasInstanceSpec struct {
// +optional
PodTemplate nginxv1alpha1.NginxPodTemplateSpec `json:"podTemplate,omitempty"`

// AllocateContainerPorts enabled causes the operator to allocate a random
// port to be used as container ports for nginx containers. This is useful
// when combined with HostNetwork config to avoid conflicts between
// multiple nginx instances.
// +optional
AllocateContainerPorts *bool `json:"allocateContainerPorts,omitempty"`

// Autoscale holds the infos used to configure the HorizontalPodAutoscaler
// for this instance.
// +optional
Expand Down
5 changes: 0 additions & 5 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions config/crd/bases/extensions.tsuru.io_rpaasflavors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ spec:
description: InstanceTemplate defines a template which allows to override
the associated RpaasInstance.
properties:
allocateContainerPorts:
description: AllocateContainerPorts enabled causes the operator
to allocate a random port to be used as container ports for
nginx containers. This is useful when combined with HostNetwork
config to avoid conflicts between multiple nginx instances.
type: boolean
allowedUpstreams:
description: AllowedUpstreams holds the endpoints to which the
RpaasInstance should be able to access
Expand Down
6 changes: 0 additions & 6 deletions config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ spec:
spec:
description: RpaasInstanceSpec defines the desired state of RpaasInstance
properties:
allocateContainerPorts:
description: AllocateContainerPorts enabled causes the operator to
allocate a random port to be used as container ports for nginx containers.
This is useful when combined with HostNetwork config to avoid conflicts
between multiple nginx instances.
type: boolean
allowedUpstreams:
description: AllowedUpstreams holds the endpoints to which the RpaasInstance
should be able to access
Expand Down
Loading

0 comments on commit 1cb7a44

Please sign in to comment.