Skip to content

Commit 82240de

Browse files
committed
Add HTTP01ChallengeProxy types
1 parent b7d0ca2 commit 82240de

File tree

2 files changed

+83
-1
lines changed

2 files changed

+83
-1
lines changed

features/features.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,12 +819,20 @@ var (
819819
enhancementPR("https://github.com/openshift/enhancements/pull/1779").
820820
enableIn(configv1.DevPreviewNoUpgrade, configv1.TechPreviewNoUpgrade).
821821
mustRegister()
822-
822+
823823
FeatureGateAWSDedicatedHosts = newFeatureGate("AWSDedicatedHosts").
824824
reportProblemsToJiraComponent("Installer").
825825
contactPerson("faermanj").
826826
productScope(ocpSpecific).
827827
enhancementPR("https://github.com/openshift/enhancements/pull/1781").
828828
enableIn(configv1.DevPreviewNoUpgrade, configv1.TechPreviewNoUpgrade).
829829
mustRegister()
830+
831+
FeatureGateHTTP01ChallengeProxy = newFeatureGate("HTTP01ChallengeProxy").
832+
reportProblemsToJiraComponent("Networking/ingress").
833+
contactPerson("sebrandon1").
834+
productScope(ocpSpecific).
835+
enhancementPR("github.com/testing/in/progress").
836+
enableIn(configv1.DevPreviewNoUpgrade, configv1.TechPreviewNoUpgrade).
837+
mustRegister()
830838
)
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
package v1alpha1
2+
3+
import (
4+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
5+
)
6+
7+
// +genclient
8+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
9+
// +kubebuilder:object:root=true
10+
// +kubebuilder:subresource:status
11+
// +kubebuilder:resource:path=http01challengeproxies,scope=Namespaced
12+
// +openshift:api-approved.openshift.io=true
13+
// +openshift:file-pattern=cvoRunLevel=0000_70,operatorName=network,operatorOrdering=00
14+
// +openshift:compatibility-gen:level=4
15+
// +openshift:enable:FeatureGate=HTTP01ChallengeProxy
16+
17+
// HTTP01ChallengeProxy is the schema for the HTTP01ChallengeProxy API.
18+
type HTTP01ChallengeProxy struct {
19+
metav1.TypeMeta `json:",inline"`
20+
metav1.ObjectMeta `json:"metadata,omitempty"`
21+
22+
// Spec is the specification of the desired behavior of the HTTP01ChallengeProxy.
23+
// +required
24+
Spec HTTP01ChallengeProxySpec `json:"spec"`
25+
// Status is the most recently observed status of the HTTP01ChallengeProxy.
26+
// +optional
27+
Status HTTP01ChallengeProxyStatus `json:"status,omitempty"`
28+
}
29+
30+
// HTTP01ChallengeProxySpec is a desired state description of HTTP01ChallengeProxy.
31+
type HTTP01ChallengeProxySpec struct {
32+
}
33+
34+
// HTTP01ChallengeProxyStatus defines the observed status of HTTP01ChallengeProxy.
35+
type HTTP01ChallengeProxyStatus struct {
36+
// Conditions is a list of conditions and their status.
37+
// +listType=map
38+
// +listMapKey=type
39+
Conditions []HTTP01ChallengeProxyCondition `json:"conditions"`
40+
}
41+
42+
// HTTP01ChallengeProxyCondition describes the state of the HTTP01ChallengeProxy.
43+
type HTTP01ChallengeProxyCondition struct {
44+
// Type is the type of the condition.
45+
// +required
46+
Type string `json:"type"`
47+
// Status is the status of the condition.
48+
// +required
49+
Status metav1.ConditionStatus `json:"status"`
50+
// LastTransitionTime is the time of the last transition of the condition.
51+
// +required
52+
LastTransitionTime metav1.Time `json:"lastTransitionTime"`
53+
// Reason is the reason for the condition's last transition.
54+
// +required
55+
Reason string `json:"reason"`
56+
// Message is a human-readable message indicating details about the last transition.
57+
// +required
58+
Message string `json:"message"`
59+
}
60+
61+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
62+
63+
// HTTP01ChallengeProxyList contains a list of HTTP01ChallengeProxy.
64+
type HTTP01ChallengeProxyList struct {
65+
metav1.TypeMeta `json:",inline"`
66+
67+
// metadata is the standard list metadata.
68+
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
69+
metav1.ListMeta `json:"metadata,omitempty"`
70+
71+
// items is a list of HTTP01ChallengeProxy.
72+
// +listType=map
73+
Items []HTTP01ChallengeProxy `json:"items"`
74+
}

0 commit comments

Comments
 (0)