Skip to content

Commit

Permalink
ran make ctrl-manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes committed Aug 28, 2023
1 parent 926063d commit a528860
Show file tree
Hide file tree
Showing 19 changed files with 88 additions and 32 deletions.
3 changes: 3 additions & 0 deletions acceptance/tests/fixtures/bases/job-client/job.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

apiVersion: batch/v1
kind: Job
metadata:
Expand Down
3 changes: 3 additions & 0 deletions acceptance/tests/fixtures/bases/job-client/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


resources:
- ../../../bases/job-client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

apiVersion: batch/v1
kind: Job
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


resources:
- ../../../bases/job-client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

apiVersion: batch/v1
kind: Job
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

apiVersion: batch/v1
kind: Job
metadata:
Expand Down
19 changes: 10 additions & 9 deletions charts/consul/templates/crd-proxydefaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,6 @@ spec:
type: string
type: array
type: object
prioritizeByLocality:
description: PrioritizeByLocality contains the configuration for
locality aware routing.
properties:
mode:
description: Mode specifies the behavior of PrioritizeByLocality
routing. Valid values are "", "none", and "failover".
type: string
type: object
meshGateway:
description: MeshGateway controls the default mesh gateway configuration
for this service.
Expand Down Expand Up @@ -204,6 +195,16 @@ spec:
your services secure, we recommend using "strict" mode whenever
possible and enabling "permissive" mode only when necessary.'
type: string
prioritizeByLocality:
description: PrioritizeByLocality controls whether the locality of
services within the local partition will be used to prioritize connectivity.
properties:
mode:
description: 'Mode specifies the type of prioritization that will
be performed when selecting nodes in the local partition. Valid
values are: "" (default "none"), "none", and "failover".'
type: string
type: object
transparentProxy:
description: 'TransparentProxy controls configuration specific to
proxies in transparent mode. Note: This cannot be set using the
Expand Down
10 changes: 8 additions & 2 deletions charts/consul/templates/crd-routeretryfilters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null
name: routeretryfilters.consul.hashicorp.com
labels:
Expand Down Expand Up @@ -53,7 +53,7 @@ spec:
metadata:
type: object
spec:
description: RouteRetryFilterSpec defines the desired state of RouteRetryFilter
description: RouteRetryFilterSpec defines the desired state of RouteRetryFilter.
properties:
numRetries:
format: int32
Expand Down Expand Up @@ -114,4 +114,10 @@ spec:
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
{{- end }}
10 changes: 8 additions & 2 deletions charts/consul/templates/crd-routetimeoutfilters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null
name: routetimeoutfilters.consul.hashicorp.com
labels:
Expand Down Expand Up @@ -54,7 +54,7 @@ spec:
metadata:
type: object
spec:
description: RouteTimeoutFilterSpec defines the desired state of RouteTimeoutFilter
description: RouteTimeoutFilterSpec defines the desired state of RouteTimeoutFilter.
properties:
idleTimeout:
description: A Duration represents the elapsed time between two instants
Expand Down Expand Up @@ -112,4 +112,10 @@ spec:
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
{{- end }}
4 changes: 2 additions & 2 deletions charts/consul/templates/crd-servicedefaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ spec:
The real time is equal to the base time multiplied by
the number of times the host has been ejected and is
capped by max_ejection_time (Default 300s). Defaults
to 30000ms or 30s.
to 30s.
type: string
enforcingConsecutive5xx:
description: EnforcingConsecutive5xx is the % chance that
Expand Down Expand Up @@ -411,7 +411,7 @@ spec:
The real time is equal to the base time multiplied
by the number of times the host has been ejected and
is capped by max_ejection_time (Default 300s). Defaults
to 30000ms or 30s.
to 30s.
type: string
enforcingConsecutive5xx:
description: EnforcingConsecutive5xx is the % chance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
description: The base time that a host is ejected for. The
real time is equal to the base time multiplied by the number
of times the host has been ejected and is capped by max_ejection_time
(Default 300s). Defaults to 30000ms or 30s.
(Default 300s). Defaults to 30s.
type: string
enforcingConsecutive5xx:
description: EnforcingConsecutive5xx is the % chance that
Expand Down Expand Up @@ -197,7 +197,7 @@ spec:
for. The real time is equal to the base time multiplied
by the number of times the host has been ejected
and is capped by max_ejection_time (Default 300s).
Defaults to 30000ms or 30s.
Defaults to 30s.
type: string
enforcingConsecutive5xx:
description: EnforcingConsecutive5xx is the % chance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,6 @@ spec:
type: string
type: array
type: object
prioritizeByLocality:
description: PrioritizeByLocality contains the configuration for
locality aware routing.
properties:
mode:
description: Mode specifies the behavior of PrioritizeByLocality
routing. Valid values are "", "none", and "failover".
type: string
type: object
meshGateway:
description: MeshGateway controls the default mesh gateway configuration
for this service.
Expand Down Expand Up @@ -197,6 +188,16 @@ spec:
your services secure, we recommend using "strict" mode whenever
possible and enabling "permissive" mode only when necessary.'
type: string
prioritizeByLocality:
description: PrioritizeByLocality controls whether the locality of
services within the local partition will be used to prioritize connectivity.
properties:
mode:
description: 'Mode specifies the type of prioritization that will
be performed when selecting nodes in the local partition. Valid
values are: "" (default "none"), "none", and "failover".'
type: string
type: object
transparentProxy:
description: 'TransparentProxy controls configuration specific to
proxies in transparent mode. Note: This cannot be set using the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null
name: routeretryfilters.consul.hashicorp.com
spec:
Expand Down Expand Up @@ -49,7 +49,7 @@ spec:
metadata:
type: object
spec:
description: RouteRetryFilterSpec defines the desired state of RouteRetryFilter
description: RouteRetryFilterSpec defines the desired state of RouteRetryFilter.
properties:
numRetries:
format: int32
Expand Down Expand Up @@ -110,3 +110,9 @@ spec:
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
controller-gen.kubebuilder.io/version: v0.8.0
creationTimestamp: null
name: routetimeoutfilters.consul.hashicorp.com
spec:
Expand Down Expand Up @@ -50,7 +50,7 @@ spec:
metadata:
type: object
spec:
description: RouteTimeoutFilterSpec defines the desired state of RouteTimeoutFilter
description: RouteTimeoutFilterSpec defines the desired state of RouteTimeoutFilter.
properties:
idleTimeout:
description: A Duration represents the elapsed time between two instants
Expand Down Expand Up @@ -108,3 +108,9 @@ spec:
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ spec:
The real time is equal to the base time multiplied by
the number of times the host has been ejected and is
capped by max_ejection_time (Default 300s). Defaults
to 30000ms or 30s.
to 30s.
type: string
enforcingConsecutive5xx:
description: EnforcingConsecutive5xx is the % chance that
Expand Down Expand Up @@ -404,7 +404,7 @@ spec:
The real time is equal to the base time multiplied
by the number of times the host has been ejected and
is capped by max_ejection_time (Default 300s). Defaults
to 30000ms or 30s.
to 30s.
type: string
enforcingConsecutive5xx:
description: EnforcingConsecutive5xx is the % chance
Expand Down
3 changes: 3 additions & 0 deletions control-plane/consul/resource_client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package consul

import (
Expand Down
3 changes: 3 additions & 0 deletions control-plane/consul/resource_client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package consul

import (
Expand Down

0 comments on commit a528860

Please sign in to comment.